I am looking for an automation for my temperature sensor.
I need an idea how the trigger looks like, when I the temperature has changed for 5 degrees celsius in the last hour. I would like to use this to get informed, when I forgot to close the window e.g. in my bathroom in winter.
This automation might give you some ideas. The driver is a ‘temperature difference’ sensor that I create from two ‘real’ temperature sensors, but I think the concept should work for a straight up temperature sensor.
I should have expanded more, you might need a ‘rate of change’ sensor from your temperature sensor as is described in this thread:
Good hunting!
- alias: Stove temperature
trigger:
- platform: numeric_state
entity_id: sensor.stove_kitchen_temp_diff
above: 10
for:
minutes: 60
action:
- service: notify.pushover
data:
message: Stove temperature delta has been above 10ºF for 60 minutes.
data:
priority: 1
sound: vibrate
- service: tts.cloud_say
entity_id: media_player.living_room
data:
message: Stove temperature delta has been above 10ºF for 60 minutes.
language: en-US
options:
gender: female