Simple Doorbell Blockly event is not triggered

Moderator: leecollings

Post Reply
Bladerer
Posts: 21
Joined: Tuesday 12 December 2017 9:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Rotterdam
Contact:

Simple Doorbell Blockly event is not triggered

Post by Bladerer »

Hi All,

I'm not so sure what to do next and how to move on. Tried every possible angle but I simply can't seem to get a doorbell driven blockly event to run stable. Occasionally it is fired but most of the time it is not. In the log I see the below:

2018-01-25 20:15:59.547 RFLink: 20;6D;ElroDB;ID=141c85d3;SWITCH=1;CMD=ON;CHIME=01;
2018-01-25 20:15:59.558 EventSystem: Event triggered: Deurbel_1
2018-01-25 20:15:59.559 (RFLink_WiFi) Light/Switch (Deurbel)
2018-01-25 20:16:10.548 RFLink: 20;6E;ElroDB;ID=141c85d3;SWITCH=1;CMD=ON;CHIME=01;
2018-01-25 20:16:10.556 EventSystem: Event triggered: Deurbel_1
2018-01-25 20:16:10.558 (RFLink_WiFi) Light/Switch (Deurbel)
2018-01-25 20:16:15.549 RFLink: 20;6F;PONG;
2018-01-25 20:16:24.550 RFLink: 20;70;ElroDB;ID=de0ed593;SWITCH=1;CMD=ON;CHIME=01;
2018-01-25 20:16:24.560 EventSystem: Event triggered: Deurbel_1
2018-01-25 20:16:24.564 (RFLink_WiFi) Light/Switch (Deurbel2)
2018-01-25 20:16:30.551 RFLink: 20;71;ElroDB;ID=de0ed593;SWITCH=1;CMD=ON;CHIME=01;
2018-01-25 20:16:30.562 EventSystem: Event triggered: Deurbel_1
2018-01-25 20:16:30.564 (RFLink_WiFi) Light/Switch (Deurbel2)
2018-01-25 20:16:35.552 RFLink: 20;72;PONG;

Although it is the same doorbell that was pushed a number of times you can see in the log that sometimes it shows as ID 141c85d3 and on other occasions it shows as de0ed593. This seems weird to me, but none the less, I have added both ID's as a doorbell. And although the log states that both ID's trigger the event "EventSystem: Event triggered: Deurbel_1" nothing happens.

I have broken down the event to as little as:

if Deurbel1 != Off or Deurbel2 != Off DO --> Write a message on the log "There is someone at the door".

Image

First I started out with IF Deurbel1 = On but clearly, that did not work. So based on earlier posts I found on this forum I changed that to not equal Off which seemed to work for just one time. I don't know what is causing the event to trigger but does not seem to work.
Do any of you have some pointers on where to start looking?

I'm on Domoticz 3.8153 on Raspbian.
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Simple Doorbell Blockly event is not triggered

Post by StanHD »

Blockly (in Domoticz) does not work with nested "If" blocks. Try re-formatting without nesting using "Else If" conditions.
Also your nested "If" block is of the wrong type. When there are no "Else If" blocks you should use the one without the blue "gear" symbol.
(But even if you amended this the nested configuration will still not work)
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Bladerer
Posts: 21
Joined: Tuesday 12 December 2017 9:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Rotterdam
Contact:

Re: Simple Doorbell Blockly event is not triggered

Post by Bladerer »

Ah, right that explains it. I’ll have a look at rewriting the block and will post an update later if I do manage to get it working.

Thanks for your help so-far
cogliostrio
Posts: 77
Joined: Sunday 06 September 2015 11:58
Target OS: Linux
Domoticz version:
Contact:

Re: Simple Doorbell Blockly event is not triggered

Post by cogliostrio »

I might be misunderstanding Stan, but I dont think he is quite correct. To nest an if-block you have to use the if's with a gear on them. The other if-blocks cant be nested that way. I attaching one of my rules, where I had to add nested if-blocks to get it to work correctly. But I agree though, the else-if's blocks is a bit wonky at times.

Have you tried moving the send notification inside the nested if-block? Perhaps try changing the top if-block to the one with the gear as well?

Blockly turing on a light with different intensity, depending on time of day.
blocklysovgang.png
blocklysovgang.png (117.69 KiB) Viewed 1442 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest