Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- automation:
- - alias: Update fan when weather updates
- trigger:
- - platform: state
- entity_id: sensor.tazerface_weather
- action:
- - service_template: switch.turn_{{'on' if states('sensor.tazerface_weather')|float(0)>18 else 'off'}}
- entity_id: switch.my_fan_switch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement