busettif
(Busettif)
October 1, 2024, 9:01pm
1
Hello, can someone help me to get an automation triggered when my doorbell is ringing?
My trigger :
platform: state
entity_id:
- sensor.fabio_s20_ha_active_notification_count
attribute: android.text_com.fermax.blue.app_1
id: Sonnette
to: Appel entrant
This trigger is only fired when the notification stop ringing and change to “appel manqué” (missed call)
The exact text when ringing is “Appel entrant…”. If I put the 3 dots, the result is the same.
Thx
instead of using the active notification sensor use the last notification sensor so you can read the text directly, also try wrapping the text in quotes in case the ...
is being removed.
busettif
(Busettif)
October 1, 2024, 9:34pm
3
Do you mean like this?
platform: state
entity_id:
- sensor.fabio_s20_ha_last_notification
attribute: android.text
id: Sonnette
enabled: true
to: "\"Appel entrant\""
I have this one working but with same behavior - > triggered only when the bell stops ringing
platform: state
entity_id:
- sensor.fabio_s20_ha_last_notification
attribute: android.text
from: Appel entrant...
id: Sonnette
enabled: true
busettif:
to: "\"Appel entrant\""
no like to: "Appel entrant..."
can you share the state you see for the sensor?
busettif
(Busettif)
October 1, 2024, 10:23pm
5
If I put this in yaml editor, when switching to ui editor, the quotes just disappear… And only the text with the 3 dots stays.
I will make a simulation tomorrow, as now children’s are sleeping!
busettif
(Busettif)
October 2, 2024, 7:41pm
6
This is the code that worked for me. Thank you for help
platform: state
entity_id:
- sensor.fabio_s20_ha_last_notification
attribute: android.text
id: Sonnette
enabled: true
to: Appel entrant...
1 Like