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.

Pushover notification scripting
#5
Hi Jørn,

Use this:

Code:
value = event.getvalue()

previousvalue = storage.get('previous_value') -- name 'previous_value' must be unique in each script

if value ~= previousvalue then

 if value == true then -- or use =< 21

 -- put here your push command

 elseif value == false then -- or use => 22

 -- put here your action / command

 end
 
 storage.set('previous_value', value) -- name 'previous_value' must be unique in each script

end

BR,

Erwin
Reply


Messages In This Thread
Pushover notification scripting - by Jørn - 18.09.2016, 11:00
RE: Pushover notification scripting - by Erwin van der Zwart - 25.10.2016, 21:38

Forum Jump: