I am trying to automate my family room ceiling fan since during the winter warm air gets trapped in the vaulted ceiling and leaves water spots on my ceiling (which the boss hates). This only occurs over night during the winter. My goal is to have the fan turn on to 15% if its over night and below freezing. I cant seem to save/complete my automation below since im getting an error so any help or suggestions would be much appreciated. Thanks in advance.
alias: Fan Control (FR Winter)
description: Turns plug on, if temperature is below 32°F, off otherwise
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.openweathermap_temperature
attribute: temperature
below: '32'
condition: []
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.openweathermap_temperature
attribute: temperature
below: '32'
- condition: time
after: '22:00:00'
before: '08:00:00'
sequence:
- service: fan.set_percentage
target:
entity_id: fan.red_series_fan_light_switch_2
data:
percentage: 15
default:
- service: fan.set_percentage
target:
entity_id: fan.red_series_fan_light_switch_2
data:
percentage: 0