#Send a notification with sensor name and value when threshold is breached

1 messages · Page 1 of 1 (latest)

sudden violet
#

I have a 3 temp sensors and I want to send a notification with the name and temp when it gets too high

#
description: ""
mode: single
triggers:
  - type: temperature
    device_id: 2be8c1dc98514010840758dd7aa3bfe8
    entity_id: 7500b9a3a95ad83b1fb097ed30be1d24
    domain: sensor
    above: 78
    trigger: device
  - type: temperature
    device_id: 6782246d91594b67b72553d1b0b60153
    entity_id: 136de8e1ce26af34cbaafb0e443d85d4
    domain: sensor
    above: 78
    trigger: device
  - type: temperature
    device_id: dfb4d28ef0f34f7fa959d21022ab5f8d
    entity_id: d3ac959864359e7f1e50da2a45e714cd
    domain: sensor
    above: 78
    trigger: device
conditions: []
actions:
  - metadata: {}
    data:
      message: A room is too hot.
      title: Home temp alert
    action: notify.pushover

#

That is what I have right now but can't figure out how to get value and name of the sensor that triggered it

astral condor
#

I think the device triggers will work but I’d recommend replacing them in favor of entity triggers: in the ui for the trigger select “entity” -> “numeric state”

When an entity state trigger fires, it populates a trigger variable that you can refer to with templates (docs here)