06.05.2017, 12:03
Hi,
I am trying to write a event-script that includes a check if a certain object has been changed/updated within the last 16 hours.
For example:
If a certain door has been opened/changed status within the last 16 hours, and someone sets the house in night mode, then a certain action should be performed.
value = event.getvalue
value1 = 1/1/1 (if door opened within 16 hours == true it not false)
if value == true and value1 == true then
grp.write('3/3/3', 50)
end
Thanks,
Mr.D
I am trying to write a event-script that includes a check if a certain object has been changed/updated within the last 16 hours.
For example:
If a certain door has been opened/changed status within the last 16 hours, and someone sets the house in night mode, then a certain action should be performed.
value = event.getvalue
value1 = 1/1/1 (if door opened within 16 hours == true it not false)
if value == true and value1 == true then
grp.write('3/3/3', 50)
end
Thanks,
Mr.D