How to refer to sensor value in notification when creating automation in UI?

I’m relatively new to HA automations as I was using Node Red for a long time. But the added dependency of Node Red and improving automation capabilities of HA are bringing me back to native automations.

This may be sacrilegious, but I want to use primarily the automation UI vs hacking around the YAML files, since it’s more approachable and easier mess with. I’m trying to setup an automation to turn on and off a small space heater in my kids room at night as it’s more efficient than trying to heat/cool my entire house for that one room.

I have this automation trigger for when it’s too hot:

In my Actions section, I want to turn the the heater off and send a notification to myself during this adjustment period so I’m more aware of how often it’s happening. However, what’s the right way to get the sensor’s value (the temp) within the telegram notification text?

Change the text in the service box to include a template that results in the reading of the sensor…

message: "Kids room is {{ states('sensor.kids_room_heater') }} degrees...

Although I feel obliged to point out that it’s pointless in this case as the temperature will always be 78 (or 77.x depending on the accuracy of the reporting sensor) because that’s what is triggering the automation.

2 Likes

But if I have a delay of 1 min (see the For value of 00:01:00). Will the value be the sensor value when it was initially triggered or the current sensor reading which may be higher?

Oh yeah, I didn’t clock the for: - so yeah it will be higher :slightly_smiling_face:

1 Like