Kaku Doorbell Blockly

Moderator: leecollings

Post Reply
Cletus
Posts: 54
Joined: Wednesday 17 August 2016 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Purmerend, Netherlands
Contact:

Kaku Doorbell Blockly

Post by Cletus »

Hello,

I've searched high and low for the answer but i can't find the answer on it, maybe you guys are able to help out.

I have a KaKu doorbell ACDB-6600AC which is linked to the default doorbutton outside. I learned the system it's button and it sees it in Domoticz, i can press the button on the webgui and the chime goes off (I use RFLink). Now here is the difficult part.

I want to get the doorbell to send a notification to my phone when its pressed at all times, this i did thru the notifications section of the switch. All good.

Then i want to turn on my hall lights and outside light when people are pressing the doorbell. Normally this should not be an issue i guess but this doorbell uses the Group On command and this is all it is using. No Group Off or On/Off state. The only state it gives even when pressed is the Group On state.

Now i can't build a blockly based on do the lights after sunset because the lights will go on and off every 30 seconds or so because the event is constantly triggered.

This is what i build:

A scene called Dur (names are subject to change :P) Where my outside lights and hall lights go on.

Blockly (Please note that i'm testing during the day so hence the fact that sunset is equal or smaller than):

Image

Does anyone know what to do?

Thanks! Regards Paul
This is our world now... the world of the electron and the switch, the beauty of the baud.
User avatar
blackdog65
Posts: 311
Joined: Tuesday 17 June 2014 18:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Norfolk, UK
Contact:

Re: Kaku Doorbell Blockly

Post by blackdog65 »

Hi Paul,
I don't use KaKu but I have LightwaveRF/Siemens doorbells (4 of) and my blockly scripts use "On" instead of "Group On". Maybe that will work for you too? Worth a try :)

Sean
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
gennapium
Posts: 54
Joined: Thursday 18 August 2016 10:06
Target OS: Linux
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Kaku Doorbell Blockly

Post by gennapium »

I agree, you should use "On" instead of "Group On"
Ubuntu server, Raspberry Pi, PiFace 2, RFXCom, Z-wave Stick, Kaku, Sensor
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Kaku Doorbell Blockly

Post by Egregius »

Look at the history log of 'Deurbel' to see what is used.
Also, the light will only go on in the evening after sunset. You should use time < sunrise OR time > sunset
Btw, the command 'group on' or just 'On' is a setting...
Cletus
Posts: 54
Joined: Wednesday 17 August 2016 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Purmerend, Netherlands
Contact:

Re: Kaku Doorbell Blockly

Post by Cletus »

The state of the doorbell in the log is "Group On" and this doesnt change when pressed in the Log, or should i connect the doorbell chime instead of the button on the front door? If I use On will this work? Because the state only is "On" and not "Group On"

Thanks! :)
This is our world now... the world of the electron and the switch, the beauty of the baud.
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Kaku Doorbell Blockly

Post by Egregius »

You could try change the setting in settings -> other
Or alter your if statement to have IF deurbel != Off
Cletus
Posts: 54
Joined: Wednesday 17 August 2016 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Purmerend, Netherlands
Contact:

Re: Kaku Doorbell Blockly

Post by Cletus »

I tried that in the settings, changed it from Group On to On but the doorbell stays on Group On or do i need to delete the Device and relink it in that case?
This is our world now... the world of the electron and the switch, the beauty of the baud.
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Kaku Doorbell Blockly

Post by Egregius »

Have you tried changing your IF? That should also do it.
Cletus
Posts: 54
Joined: Wednesday 17 August 2016 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Purmerend, Netherlands
Contact:

Re: Kaku Doorbell Blockly

Post by Cletus »

Sorry quite new here and also with the Blockly stuff, can you elaborate how to exactly do that?

MAny thanks!
This is our world now... the world of the electron and the switch, the beauty of the baud.
Cletus
Posts: 54
Joined: Wednesday 17 August 2016 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Purmerend, Netherlands
Contact:

Re: Kaku Doorbell Blockly

Post by Cletus »

Just tested out to change the Blockly to On but this doesnt seem to trigger the event system:

Below is the Doorbell pressed with the Blockly with the On switch.
2016-08-30 10:24:05.794 User: Admin initiated a switch command
2016-08-30 10:24:05.795 RFLink Sending: 10;NewKaku;1473c5a;1;ALLON (Doorbell)
2016-08-30 10:24:06.742 Notification sent (email) => Success
2016-08-30 10:24:12.383 Kodi Notification (192.168.2.20:9777, TTL 5): Deurbel, Deurbel!, Icon /home/pi/domoticz/www/images/doorbell48.png
2016-08-30 10:24:12.384 Notification sent (kodi) => Success
2016-08-30 10:24:06.740 (RFLink 433MHz) Light/Switch (Deurbel)
Below is the Doorbell pressed with the Blockly with the Group On switch.
2016-08-30 10:25:01.896 User: Admin initiated a switch command
2016-08-30 10:25:01.897 RFLink Sending: 10;NewKaku;1473c5a;1;ALLON (Doorbell)
2016-08-30 10:25:02.865 Notification sent (email) => Success
2016-08-30 10:25:03.010 Kodi Notification (192.168.2.20:9777, TTL 5): Deurbel, Deurbel!, Icon /home/pi/domoticz/www/images/doorbell48.png
2016-08-30 10:25:03.011 Notification sent (kodi) => Success
2016-08-30 10:25:03.015 EventSystem: Event triggered: Deurbell_1
2016-08-30 10:25:02.862 (RFLink 433MHz) Light/Switch (Deurbel)
2016-08-30 10:25:03.243 Activating Scene/Group: [$Deurbel]
2016-08-30 10:25:03.244 Activating Scene/Group Device: Buitenlamp (On)
2016-08-30 10:25:03.245 RFLink Sending: 10;NewKaku;13d6ffa;9;ON
2016-08-30 10:25:04.160 (RFLink 433MHz) Light/Switch (Buitenlamp)
2016-08-30 10:25:04.168 Delaying switch [Buitenlamp] action (Off) for 120 seconds
2016-08-30 10:25:04.219 Activating Scene/Group Device: Ganglicht (On)
2016-08-30 10:25:04.219 RFLink Sending: 10;NewKaku;13d6ffa;a;ON
2016-08-30 10:25:05.156 (RFLink 433MHz) Light/Switch (Ganglicht)
2016-08-30 10:25:05.167 Delaying switch [Ganglicht] action (Off) for 120 seconds
This is our world now... the world of the electron and the switch, the beauty of the baud.
Cletus
Posts: 54
Joined: Wednesday 17 August 2016 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Purmerend, Netherlands
Contact:

Re: Kaku Doorbell Blockly

Post by Cletus »

I changed the blockly to: Please note that the statement is equal or less because i'm testing now :) Will change that to equal or more when working.

Image

But now the event system generates the following stuff in the log. Every minute the doorbell mechanism is triggered... Whilst not pressing anything, but when i press it the logfile generates that statement. :(
2016-08-30 10:30:25.406 EventSystem: reset all events...
2016-08-30 10:31:00.301 EventSystem: Event triggered: Deurbell_2
2016-08-30 10:31:01.093 Activating Scene/Group: [$Deurbel]
2016-08-30 10:31:01.094 Activating Scene/Group Device: Buitenlamp (On)
2016-08-30 10:31:01.095 RFLink Sending: 10;NewKaku;13d6ffa;9;ON
2016-08-30 10:31:02.008 (RFLink 433MHz) Light/Switch (Buitenlamp)
2016-08-30 10:31:02.015 Delaying switch [Buitenlamp] action (Off) for 120 seconds
2016-08-30 10:31:02.066 Activating Scene/Group Device: Ganglicht (On)
2016-08-30 10:31:02.066 RFLink Sending: 10;NewKaku;13d6ffa;a;ON
2016-08-30 10:31:03.003 (RFLink 433MHz) Light/Switch (Ganglicht)
2016-08-30 10:31:03.013 Delaying switch [Ganglicht] action (Off) for 120 seconds
2016-08-30 10:32:00.319 EventSystem: Event triggered: Deurbell_2
2016-08-30 10:32:01.069 Activating Scene/Group: [$Deurbel]
2016-08-30 10:32:01.070 Activating Scene/Group Device: Buitenlamp (On)
2016-08-30 10:32:01.071 RFLink Sending: 10;NewKaku;13d6ffa;9;ON
2016-08-30 10:32:01.977 (RFLink 433MHz) Light/Switch (Buitenlamp)
2016-08-30 10:32:01.984 Delaying switch [Buitenlamp] action (Off) for 120 seconds
2016-08-30 10:32:02.035 Activating Scene/Group Device: Ganglicht (On)
2016-08-30 10:32:02.035 RFLink Sending: 10;NewKaku;13d6ffa;a;ON
2016-08-30 10:32:02.977 (RFLink 433MHz) Light/Switch (Ganglicht)
2016-08-30 10:32:02.985 Delaying switch [Ganglicht] action (Off) for 120 seconds
2016-08-30 10:32:02.977 (RFLink 433MHz) Light/Switch (Ganglicht)
2016-08-30 10:32:02.985 Delaying switch [Ganglicht] action (Off) for 120 seconds
2016-08-30 10:33:00.337 EventSystem: Event triggered: Deurbell_2
2016-08-30 10:33:01.042 Activating Scene/Group: [$Deurbel]
2016-08-30 10:33:01.043 Activating Scene/Group Device: Buitenlamp (On)
2016-08-30 10:33:01.043 RFLink Sending: 10;NewKaku;13d6ffa;9;ON
2016-08-30 10:33:01.996 (RFLink 433MHz) Light/Switch (Buitenlamp)
2016-08-30 10:33:02.002 Delaying switch [Buitenlamp] action (Off) for 120 seconds
2016-08-30 10:33:02.053 Activating Scene/Group Device: Ganglicht (On)
2016-08-30 10:33:02.053 RFLink Sending: 10;NewKaku;13d6ffa;a;ON
2016-08-30 10:33:02.995 (RFLink 433MHz) Light/Switch (Ganglicht)
2016-08-30 10:33:03.004 Delaying switch [Ganglicht] action (Off) for 120 seconds
2016-08-30 10:33:07.055 RFLink Sending: 10;NewKaku;13d6ffa;9;OFF
2016-08-30 10:33:07.987 (RFLink 433MHz) Light/Switch (Buitenlamp)
2016-08-30 10:33:07.994 RFLink Sending: 10;NewKaku;13d6ffa;a;OFF
2016-08-30 10:33:08.901 (RFLink 433MHz) Light/Switch (Ganglicht)

2016-08-30 10:34:50.744 RFLink Sending: 10;NewKaku;1473c5a;1;ALLON
2016-08-30 10:34:51.663 Notification sent (email) => Success
2016-08-30 10:34:57.314 Kodi Notification (192.168.2.20:9777, TTL 5): Deurbel, Deurbel!, Icon /home/pi/domoticz/www/images/doorbell48.png
2016-08-30 10:34:57.315 Notification sent (kodi) => Success
2016-08-30 10:34:57.319 Deurbel Test Do and Else If
2016-08-30 10:34:57.319 EventSystem: Event triggered: Deurbell_1
2016-08-30 10:34:51.662 (RFLink 433MHz) Light/Switch (Deurbel)
2016-08-30 10:35:00.372 EventSystem: Event triggered: Deurbell_2
2016-08-30 10:35:00.748 Activating Scene/Group: [$Deurbel]
2016-08-30 10:35:00.749 Activating Scene/Group Device: Buitenlamp (On)
2016-08-30 10:35:00.749 RFLink Sending: 10;NewKaku;13d6ffa;9;ON
2016-08-30 10:35:01.655 (RFLink 433MHz) Light/Switch (Buitenlamp)
2016-08-30 10:35:01.663 Delaying switch [Buitenlamp] action (Off) for 120 seconds
2016-08-30 10:35:01.713 Activating Scene/Group Device: Ganglicht (On)
2016-08-30 10:35:01.714 RFLink Sending: 10;NewKaku;13d6ffa;a;ON
2016-08-30 10:35:02.654 (RFLink 433MHz) Light/Switch (Ganglicht)
2016-08-30 10:35:02.665 Delaying switch [Ganglicht] action (Off) for 120 seconds
This is our world now... the world of the electron and the switch, the beauty of the baud.
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Kaku Doorbell Blockly

Post by Egregius »

Every minute?
You have it as time script instead of device script.
Have you seen the ! in IF deurbel != Off? That means IF deurbel is different then Off
Cletus
Posts: 54
Joined: Wednesday 17 August 2016 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Purmerend, Netherlands
Contact:

Re: Kaku Doorbell Blockly

Post by Cletus »

Thanks again for your answer to a complete Blockly / Programming n00b :)

Not sure what you mean with the != because i can't see the ! anywhere, i only can choose:
=
(Couldnt find this one but its the one with the Equal sign with a slash thru it) Means Is not equal i think.
<

>
And what do you mean with changing it to a device script instead of a time script?
This is our world now... the world of the electron and the switch, the beauty of the baud.
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Kaku Doorbell Blockly

Post by Egregius »

I think you blockly is now created as time wich means it run's every minute.
It should be created as device so it only runs when a device is updated.
Read the wiki about the event system for explanation about that.
Could be that blockly uses the equal sign with a slash through it, I don't use blockly.
User avatar
blackdog65
Posts: 311
Joined: Tuesday 17 June 2014 18:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Norfolk, UK
Contact:

Re: Kaku Doorbell Blockly

Post by blackdog65 »

Hi again Paul,

I would say your script has 2 halves
"If X = a And Y = b"
"Do Z"
So you can break it down, I would (and I do) create some virtual switches to replace some of the devices in your script.

This way you can test your doorbell by getting it to turn on (or off) a virtual switch without the sunset parameter. If this works, you now know if your doorbell responds to "ON" "Group On" or "Off" or whatever. :D

Then you can add the "Real" devices into the script one at a time as you test.

I hope this helps, I know how frustrating it can be! But once it starts working for you there's a lot of fun to be had. ;)

Sean
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
Cletus
Posts: 54
Joined: Wednesday 17 August 2016 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Purmerend, Netherlands
Contact:

Re: Kaku Doorbell Blockly

Post by Cletus »

Wow, that simple... I checked egregius his option and changed the blockly type to device instead of type All where it checks the device state indeed but also runs it every minute. It seems to work perfectly now! Does anyone see anything that should not be?

Blockly:
Image

Thanks for all your answers!!!
This is our world now... the world of the electron and the switch, the beauty of the baud.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest