Use cloud cover when arriving at home for lighting decision

This commit is contained in:
2023-02-20 17:04:04 -05:00
parent e2e2aaa6e1
commit 1d1e636f6f

View File

@ -577,13 +577,7 @@ script:
- switch.master_bedroom_echo_dot_do_not_disturb_switch - switch.master_bedroom_echo_dot_do_not_disturb_switch
- if: - if:
- condition: template - condition: template
value_template: > value_template: "{{ states('sensor.pirateweather_cloud_coverage') | int > 50 }}"
{% set weather = states('weather.iron_nerd_weather_station') %}
{% if weather in ['cloudy','partlycloudy','rainy','snowy','hail','lightning','lightning-rainy','pouring','snowy-rainy'] %}
true
{% else %}
false
{% endif %}
then: then:
- service: light.turn_on - service: light.turn_on
target: target: