Humidity sensors low battery notifications

Hello All,

I have nine humidity sensors and would like to receive a notification on my iPhone when the batteries fall below 10%.
I’d like the notification to include the name of the sensor(s) that triggered the notification.

I’ve done a test with this configuration, but without success:

alias: Test
description: ""
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.buanderie_batterie
    below: 95
conditions: []
actions:
  - action: notify.mobile_app_iphone_patrick
    metadata: {}
    data:
      title: Low battery
      message: "{{ state_attr(trigger.entity_id, 'friendly_name') }}"
mode: single

I’m sure my mistake is basic…

Thanks and regards,
Patrick

Your mistake was trying to do everything from scratch, when someone else has already done the hard work for you. Try this

Hello,
Oh yes, big mistake!
Thanks a lot!

1 Like