25.10.2016, 21:38
Hi Jørn,
Use this:
BR,
Erwin
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