I am trying to get my two smoke alarms to turn light on and send notification to my phone.
I have created a Block that sets a user variable to 'On' if either the heat or smoke devices on either detector is activated
I then have a blocky that turns my lights on if the user variable 'Smoke_Alarm' is set to 'On'
Another blocky that sends a notification if the variable 'Smoke_Alarm' is 'On'
Finally I put a fail safe in my normal light control to not turn the lights off if the user variable 'Smoke_Alarm' is set to 'On'
If I manually update the user variable 'Smoke_Alarm' to 'On' all the block scripts work correctly.
However If I trigger my one of my smoke detectors with smoke. The detector goes off and the user variable 'Smoke_Alarm' is automatically set to 'On' but neither the notification blocky or the lights on blocky runs.
The fail safe in my normal light control block does work and stops the lights turning off when the variable 'Smoke_Alarm' is set to 'On'.
Can anyone tell my why everything works if the variable is set manually but not when set automatically?
Strange Blocky Behavior
Moderator: leecollings
Who is online
Users browsing this forum: No registered users and 1 guest