More improvements to Good Morning routine

This commit is contained in:
2023-03-07 16:19:14 -05:00
parent 3335db5490
commit 469c111e98
2 changed files with 11 additions and 4 deletions

Submodule node-red/projects/NerdFlows updated: c7f682d96a...e666ca4af9

View File

@ -1185,9 +1185,16 @@ script:
target: target:
entity_id: input_boolean.master_bedroom_sleeping entity_id: input_boolean.master_bedroom_sleeping
- if: - if:
- condition: numeric_state - condition: template
entity_id: sensor.pirateweather_cloud_coverage value_template: >
above: 50 {% set weather = states('weather.iron_nerd_weather_station') %}
{% if weather in ['cloudy','partlycloudy','rainy','snowy','hail','lightning','lightning-rainy','pouring','snowy-rainy'] %}
true
{% elif (states('sensor.pirateweather_cloud_coverage') | int) > 50 %}
true
{% else %}
false
{% endif %}
then: then:
- if: - if:
- condition: template - condition: template