I’d like to include the sensor value in my message, but testing the data below just sends the string, any ideas?
{
“message”: “The temperature is set to sensor.thermostat_cool_setpoint”
}
I’d like to include the sensor value in my message, but testing the data below just sends the string, any ideas?
{
“message”: “The temperature is set to sensor.thermostat_cool_setpoint”
}
Found the solution thanks to https://github.com/home-assistant/home-assistant/issues/2058:
- alias: "Notify when AC setpoint changes"
trigger:
- platform: state
entity_id: sensor.thermostat_cool_setpoint
condition:
condition: and
conditions:
- condition: template
value_template: '{{ trigger.entity_id != None }}'
- condition: template
value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
action:
- service: notify.notify_push_android
data_template:
message: >
AC setpoint is now {{ trigger.to_state.state }}