From 4f59b6bb8c748ce1e5a4f005476fdfc09ca1f773 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 2 Mar 2023 16:01:54 -0500 Subject: [PATCH] Revert change using cloud cover for lighting decisions This proved even more unreliable than the original solution. --- node-red/projects/NerdFlows | 2 +- packages/presence.yaml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/node-red/projects/NerdFlows b/node-red/projects/NerdFlows index 86b4feb..d7ecf88 160000 --- a/node-red/projects/NerdFlows +++ b/node-red/projects/NerdFlows @@ -1 +1 @@ -Subproject commit 86b4feb43ea32e508e9292f9e5ae3a3d69ad19f7 +Subproject commit d7ecf887c01c6f228f876ca4ca497d0074c799ac diff --git a/packages/presence.yaml b/packages/presence.yaml index 64eb41d..366810a 100644 --- a/packages/presence.yaml +++ b/packages/presence.yaml @@ -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: