Hi
I have tried setting up an alarm similar to what is described here:
https://www.domoticz.com/wiki/Alarm_Setup
I have two lua script which correctly trigger a notification to my phone and set the AlarmDetected user variable to 1. I have then tried making a blockly similar to the one described except that my alarm is turned on/off via a "dummy" switch. My blockly looks like this:
I have tried saving as both a device, uservariable and "all" event but the blockly never seems to be triggered. I also tried changing the first if stamens to "AlarmDetected NOT = 0" in case it was something with string vs number.
Do you have any suggestions?
Thanks!
Alarm blockly not working
Moderator: leecollings
-
- Posts: 135
- Joined: Friday 02 January 2015 9:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands
- Contact:
Re: Alarm blockly not working
I think you're using the wrong On-block in the first line, you have to use the same On-block as in the last line
So not '[A-F Alarm] = ["On"]' but '[A-F Alarm] = [On]'
So not '[A-F Alarm] = ["On"]' but '[A-F Alarm] = [On]'
-
- Posts: 15
- Joined: Wednesday 18 May 2016 5:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm blockly not working
Thanks but I am pretty sure that works as Alarm is a custom switch with three values "On", "Off" and "On (home)". I have used the same logic in another script which now works see: viewtopic.php?t=12802
Actually I also tried the script without the Alarm = "On" bit and it still did not work
Actually I also tried the script without the Alarm = "On" bit and it still did not work
Who is online
Users browsing this forum: No registered users and 0 guests