Blockly does not work with door contact and dummy Topic is solved

Moderator: leecollings

Post Reply
jellex87
Posts: 30
Joined: Tuesday 25 June 2019 13:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Blockly does not work with door contact and dummy

Post by jellex87 »

Hello,

why does this one doesn't work?

i"m trying to trigger a dummy that shows the window is open or closed. Trying that with a Kerui D026 which has a 'normal' and 'alarm' status.
The Raamsensor 1 does its work. The dummy does not change status.
Attachments
DSC05847%20-TIEL1%20kopie[1].jpg
DSC05847%20-TIEL1%20kopie[1].jpg (37.61 KiB) Viewed 972 times
jellex87
Posts: 30
Joined: Tuesday 25 June 2019 13:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Blockly does not work with door contact and dummy

Post by jellex87 »

Anyone?
Dave21w
Posts: 382
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: Blockly does not work with door contact and dummy

Post by Dave21w »

You probably need to change the alarm and normal values to text values, use the light green box option and type the status between the quotes like this:-
pic.jpg
pic.jpg (5.1 KiB) Viewed 927 times
jellex87
Posts: 30
Joined: Tuesday 25 June 2019 13:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Blockly does not work with door contact and dummy

Post by jellex87 »

Thanks for your advice. It works for 50%. See my script. The Dummy light goes on when the sensor says "Normal", but does not turn off when status is "Alarm". Is "Alarm" maybe the wrong key word?
Attachments
script raam.jpg
script raam.jpg (66.32 KiB) Viewed 914 times
jellex87
Posts: 30
Joined: Tuesday 25 June 2019 13:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Blockly does not work with door contact and dummy

Post by jellex87 »

Found the problem. The "alarm' status is wrong. instead it listens to 'Open' and 'Normal'.
Works like a charm.
Dave21w
Posts: 382
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: Blockly does not work with door contact and dummy

Post by Dave21w »

Glad to hear it :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest