I’m having trouble getting this automation to work right and I keep scratching my head on what to change.
The purpose of the automation is to turn on the patio outlet when the temperature drops below 34F. It’s then set up with a portable water heater and diaphragm pump. The outlet turns on the pump which keeps everything from freezing but running warm water through it every 1 hour.
The problem I’m having is it either doesn’t turn on when the temperature drops below 34F or it keeps turning on every hour after the temperature is above 34 degress Fahrenheit.
Here is the configuration:
alias: Below freezing
description: ""
trigger:
- platform: numeric_state
entity_id: weather.openweathermap
for:
hours: 0
minutes: 0
seconds: 0
attribute: temperature
below: 34
- platform: state
entity_id:
- switch.patio_outlet
from: "on"
to: "off"
for:
hours: 1
minutes: 0
seconds: 0
condition: []
action:
- service: notify.mobile_app_pixel_5a
data:
message: It's below 34 outside
- type: turn_on
device_id: b4609255d54c473a2ee6ce231e603129
entity_id: switch.patio_outlet
domain: switch
mode: single