#Triggername in Notify?

1 messages · Page 1 of 1 (latest)

languid plaza
#

How can I write here in the notification which device no longer has a battery, i.e. which device has triggered the automation?

description: ""
triggers:
  - type: battery_level
    device_id: xxx
    entity_id: xxx
    domain: sensor
    trigger: device
    below: 15
  - type: battery_level
    device_id: xxx
    entity_id: xxx
    domain: sensor
    trigger: device
    below: 15
conditions: []
actions:
  - action: notify.mobile_app_xxx_handy
    metadata: {}
    data:
      title: Battery empty
      message: <Friendly Device Name> must be loaded!!
mode: single
boreal sky
languid plaza
boreal sky
#

can you post your new automation code and also the trace?

cloud shuttle
#

You could also label the triggers (give them an id that corresponds to the entity id)

#

Or use a numeric state trigger instead, and then the trigger solution definitely does work