Revert change using cloud cover for lighting decisions

This proved even more unreliable than the original solution.
This commit is contained in:
2023-03-02 16:01:54 -05:00
parent 34ff21d3ea
commit 4f59b6bb8c
2 changed files with 8 additions and 2 deletions

View File

@ -586,7 +586,13 @@ script:
- switch.master_bedroom_echo_dot_do_not_disturb_switch
- if:
- condition: template
value_template: "{{ states('sensor.pirateweather_cloud_coverage') | int > 50 }}"
value_template: >
{% 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:
- service: light.turn_on
target: