This 'Device' event gets fired if one of my PIR sensors changes state to 'On' and security status is 'Armed Away'. I set a delay so i have time to disarm the system when entering home:
(The attachment handling of this forum is badly screwed...)
The problem is that the following script (script type: 'Time') does not get fired after the value of 'disarm_delay_expired' changes to '1':
What is the problem?Blockly event does not get fired.
Moderator: leecollings
-
- Posts: 18
- Joined: Wednesday 29 November 2017 11:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Blockly event does not get fired.
- Attachments
-
- Alarm_.jpg (22.55 KiB) Viewed 997 times
-
- PIR_On_Device.jpg (28.98 KiB) Viewed 997 times
Re: Blockly event does not get fired.
As far as I know, the changing state of a variable does not trigger an event. Try making it an On/Off dummy switch and have that sending a message when it is turned on.
-
- Posts: 18
- Joined: Wednesday 29 November 2017 11:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Blockly event does not get fired.
Yes but as its a timed event (script type: 'Time'), the state of the variable should be checked in every minute. Or did i miss something? Thank You.
- jvdz
- Posts: 2333
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Blockly event does not get fired.
I think it needs a Time test to fire as time script like I also mentioned in this thread:
http://www.domoticz.com/forum/viewtopic ... 85#p166122
Jos
http://www.domoticz.com/forum/viewtopic ... 85#p166122
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 18
- Joined: Wednesday 29 November 2017 11:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Blockly event does not get fired.
Indeed it helped. Thank you!jvdz wrote: ↑Sunday 21 January 2018 10:43 I think it needs a Time test to fire as time script like I also mentioned in this thread:
http://www.domoticz.com/forum/viewtopic ... 85#p166122
Jos
Who is online
Users browsing this forum: No registered users and 1 guest