This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Push telegram not working on every object
#1
Hi, I am trying to get push notifications with Telegram and for some objects it is working just fine.
But now I get this error on one specific object.

This script work just fine with another object.

What could be the problem?

Attached Files Thumbnail(s)
       
Reply
#2
event.getvalue() returns Boolean for 1 bit object, not a number. So your comparison does not work and message is empty (nil). Use this instead:
Code:
value = event.getvalue()

if value then
  message = 'something is on'
else
  message = 'something is off'
end
Reply
#3
That was it.. Thank you for the quick reply!
Reply


Forum Jump: