Blockly: Alarm function not working
Posted: Sunday 15 October 2017 12:02
I'm trying to get a simple 'alarm' function working with Blockly.
Hardware used:
Xiaomi Motion Sensors
Xiaomi Gateway 2
Switches (virtual) used:
Is Dark Switch (On= 1 minute after sunset, Off= 1 minute after sunrise)
Motion LR Detected (On when at least 1 motion detector detects movement, Off when no movement is reported by all motion sensors)
Usecase:
I want to get an alarm notification and switch the light on the Gateway on for 5 minutes, if motion is detected by either Motion Sensor and it is after dark.
Blockly's:
Motion detection: Alarm: The 'Is Dark Switch' and 'Motion Detected LR' are working fine and trigger on and off at the right times, but alarm isn't triggered.
I've chosen for the 'Device' setting for both blocklys, can't imagine that's not the right setting.
Any one that can help me?
Hardware used:
Xiaomi Motion Sensors
Xiaomi Gateway 2
Switches (virtual) used:
Is Dark Switch (On= 1 minute after sunset, Off= 1 minute after sunrise)
Motion LR Detected (On when at least 1 motion detector detects movement, Off when no movement is reported by all motion sensors)
Usecase:
I want to get an alarm notification and switch the light on the Gateway on for 5 minutes, if motion is detected by either Motion Sensor and it is after dark.
Blockly's:
Motion detection: Alarm: The 'Is Dark Switch' and 'Motion Detected LR' are working fine and trigger on and off at the right times, but alarm isn't triggered.
I've chosen for the 'Device' setting for both blocklys, can't imagine that's not the right setting.
Any one that can help me?