From 1d1e636f6f2b0515ca6d304864edd926f6f23425 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 20 Feb 2023 17:04:04 -0500 Subject: [PATCH] Use cloud cover when arriving at home for lighting decision --- packages/presence.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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: