Strange Blocky Behavior

Moderator: leecollings

Post Reply
Padster
Posts: 21
Joined: Friday 26 May 2017 20:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Strange Blocky Behavior

Post by Padster »

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
detection.JPG
detection.JPG (30.8 KiB) Viewed 570 times
I then have a blocky that turns my lights on if the user variable 'Smoke_Alarm' is set to 'On'
smoke lights.JPG
smoke lights.JPG (13.16 KiB) Viewed 570 times
Another blocky that sends a notification if the variable 'Smoke_Alarm' is 'On'
notification.JPG
notification.JPG (17.17 KiB) Viewed 570 times
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest