I have a few temperature sensors that monitor our coolers. They need to be in a specific range.
In my configuration.yaml I added the following
homeassistant:
customize:
sensor.south_cooler_temperature:
upper: 21
lower: 6
My understanding is that if that sensor returns a value outside of the upper or lower range it will then fire an alert that I have configured in configurations.yaml like so:
alias: Temp out of range
variables:
t_max: "{{ state_attr(trigger.entity_id, 'upper') }}"
t_min: "{{ state_attr(trigger.entity_id, 'lower') }}"
val: "{{ trigger.to_state.state | float(0) }}"
trigger:
- platform: state
entity_id:
- sensor.south_cooler_temperature
condition:
- condition: template
value_template: "{{ not t_min < val < t_max }}"
action:
- service: notify.gmailsmtp
data:
title: Temp out of Range
message: Check the Temperature Sensors ASAP
Nothing seems to be firing at all. I know that my service notify.gmailsmtp works because I test it in the service gui and it sends and email fine.
I’ve been banging my head now for a couple days on this… help please