Use cloud cover when arriving at home for lighting decision
This commit is contained in:
@ -577,13 +577,7 @@ script:
|
|||||||
- switch.master_bedroom_echo_dot_do_not_disturb_switch
|
- switch.master_bedroom_echo_dot_do_not_disturb_switch
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: "{{ states('sensor.pirateweather_cloud_coverage') | int > 50 }}"
|
||||||
{% 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:
|
then:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
|
Reference in New Issue
Block a user