Active notification count not triggering

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.

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

no like to: "Appel entrant..."

can you share the state you see for the sensor?

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! :sweat_smile:

This is the code that worked for me. Thank you for help :slightly_smiling_face:

platform: state
entity_id:
  - sensor.fabio_s20_ha_last_notification
attribute: android.text
id: Sonnette
enabled: true
to: Appel entrant...

1 Like