diff --git a/packages/presence.yaml b/packages/presence.yaml index 8d76144..488f6f8 100644 --- a/packages/presence.yaml +++ b/packages/presence.yaml @@ -577,13 +577,7 @@ script: - switch.master_bedroom_echo_dot_do_not_disturb_switch - if: - condition: template - 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 %} + value_template: "{{ states('sensor.pirateweather_cloud_coverage') | int > 50 }}" then: - service: light.turn_on target: