Created
August 1, 2019 14:51
-
-
Save Snipercaine/d568075d7fe9585438f2b602a3d18436 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- alias: lower mountian room shades in the morning | |
id: lowermountainroomshadesinthemorning | |
trigger: | |
- platform: numeric_state | |
entity_id: sun.sun | |
value_template: "{{ state.attributes.elevation }}" | |
above: 8.0 | |
# - platform: time | |
# at: "21:00:00" | |
# the shades have to NOT be closed, in order for the "close" automation to run | |
condition: | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.right_upper_shade_closed' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.middle_upper_shade_closed' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.left_upper_shade_closed' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.right_lower_shade_closed' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.middle_lower_shade_closed' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.left_lower_shade_closed' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.kitchen_shade_closed' | |
action: | |
- service: cover.close_cover | |
entity_id: | |
- cover.kitchen_window_full | |
- cover.mw_middle_lower | |
- cover.mw_middle_upper | |
- cover.mw_right_lower | |
- cover.mw_right_upper | |
- cover.mw_left_lower | |
- cover.mw_left_upper | |
- alias: raise mountian room shades in the afternoon | |
id: raisemountainroomshadesintheafternoon | |
trigger: | |
- platform: numeric_state | |
entity_id: sun.sun | |
value_template: "{{ state.attributes.elevation }}" | |
above: 60.0 | |
# the shades have to NOT be open, in order for the "open" automation to run | |
condition: | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.right_upper_shade_open' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.middle_upper_shade_open' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.left_upper_shade_open' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.right_lower_shade_open' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.middle_lower_shade_open' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.left_lower_shade_open' | |
- condition: state | |
state: 'off' | |
entity_id: 'binary_sensor.kitchen_shade_open' | |
action: | |
- service: cover.open_cover | |
entity_id: | |
- cover.kitchen_window_full | |
- cover.mw_middle_lower | |
- cover.mw_middle_upper | |
- cover.mw_right_lower | |
- cover.mw_right_upper | |
- cover.mw_left_lower | |
- cover.mw_left_upper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment