Page 1 of 1

Trigger Blockly on specific device status change

Posted: Tuesday 19 January 2016 13:42
by markk
Sorry if this has been asked before but I couldn't find it in a search

I have a blockly that, If door sensor = ON and someone home = OFF send notification. The issue is, my door sensor is always ON. So, if the last person leaves the house, the someone home switch turns OFF and I get a notification because both are now true. However, I only want to be notified if the door sensor changes status when someone home = OFF. Is it possible to specify only one status change to trigger a Blockly event?

Re: Trigger Blockly on specific device status change

Posted: Sunday 06 December 2020 14:27
by imautohuttraeger
A quite old posting without any reply. I have a similar challenge: A Blockly script should trigger something only if a value has changed. In my case I want to change a user variable if the the energy meter (Watt) changes.

Re: Trigger Blockly on specific device status change

Posted: Sunday 06 December 2020 15:10
by waaren
imautohuttraeger wrote: Sunday 06 December 2020 14:27 A quite old posting without any reply. I have a similar challenge: A Blockly script should trigger something only if a value has changed. In my case I want to change a user variable if the the energy meter (Watt) changes.
This is not possible in Blockly. You wil have to script this in one of the other script alternatives.

Re: Trigger Blockly on specific device status change

Posted: Sunday 06 December 2020 15:17
by imautohuttraeger
OK, many thx for your quick reply!