Hello,
I have a automation when my Deolink doorbel is triggered, also two kaku ringers are triggered.
I use the automations gui.
Individual it all works. when i use the run command in the automation both actions are triggered.
When i ring my doorbell, only 1 acton is triggered?
I get a notification via Telegram, but the other doorbells are not triggered?
The Kaku is seen by HA as a light switch. manually it works so i guess no change is needed there. Also i would not know how
This is the YAML:
alias: Deurbel
description: Get Telegram message and let the KAKU ringers make noise when doorbell is ringed
trigger:
- platform: state
entity_id:
- binary_sensor.deurbel_visitor
from: "off"
to: "on"
condition: []
action:
- service: light.turn_on
data: {}
target:
entity_id: light.newkaku_01d5acca_c
- service: telegram_bot.send_message
data:
title: Deurbel
message: De deurbel gaat
mode: single
I also tried to toggle the the light switch, but then the kaku only works 1 out of two time, only when turned on. Keeping it on, and switching it on rings the bells. Only not when the automation is triggered by the doorbell??
@tom_l
That is a nice extra i will add that. Thank you.
For the trace see below:
Triggered by the state of binary_sensor.deurbel_visitor at September 1, 2023 at 08:24:07
Call a service 'Light: Turn on' on newkaku_01d5acca_c
1 second later
(light.newkaku_01d5acca_c) turned on
Call a service 'Telegram bot: Send message' on
Finished at September 1, 2023 at 08:24:09 (runtime: 2.19 seconds)
It looks like it works fine, But i did ot hear all the doorbells?
When i manually trigger it, the kaku bells are ringing?
Triggered manually at September 1, 2023 at 08:43:00
Call a service 'Light: Turn on' on newkaku_01d5acca_c
(light.newkaku_01d5acca_c) turned on
Call a service 'Telegram bot: Send message' on
Delay for 3
3 seconds later
Call a service 'Light: Turn off' on newkaku_01d5acca_c
(light.newkaku_01d5acca_c) turned off
Finished at September 1, 2023 at 08:43:06 (runtime: 6.08 seconds)
Beside the manual trigger i do not see a difference?
What i did was first send the telegram message, delay 1 second then send the kaku signal and now it works?
Sending the signal double also worked, so that is why i set the delay.
For some reason the manual trigger is different then the automated trigger because the response is not the same.
Anyway it works now.
see below the code, and below that the trace.
YAML
alias: Deurbel
description: Let the KAKU ringers make noise when doorbell is ringed
trigger:
- platform: state
entity_id:
- binary_sensor.deurbel_visitor
from: "off"
to: "on"
condition: []
action:
- service: telegram_bot.send_message
data:
title: Deurbel
message: De deurbel gaat
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: light.turn_on
data: {}
target:
entity_id: light.newkaku_01d5acca_c
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: light.turn_off
data: {}
target:
entity_id: light.newkaku_01d5acca_c
mode: single
TRACE
Triggered by the state of binary_sensor.deurbel_visitor at September 1, 2023 at 11:46:59
Call a service 'Telegram bot: Send message' on
Delay for 1 second
1 second later
Call a service 'Light: Turn on' on Kaku bel
(light.newkaku_01d5acca_c) turned on
Delay for 3 seconds
3 seconds later
Call a service 'Light: Turn off' on Kaku bel
(light.newkaku_01d5acca_c) turned off
Finished at September 1, 2023 at 11:47:05 (runtime: 6.91 seconds)