Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| ################################################################# | |
| ## Blinds Automations | |
| ################################################################# | |
| ########################################################## | |
| ## Open USER1's Office Blinds When Motion Detected | |
| ########################################################## | |
| - alias: Blinds - USER1's Office Blinds When Motion Detected | |
| id: 'blinds_USER1_office_blinds_when_motion_detected' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.USER1s_office_motion | |
| from: 'off' | |
| to: 'on' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_blinds | |
| state: 'off' | |
| - condition: state | |
| entity_id: person.USER1 | |
| state: 'home' | |
| - condition: state | |
| entity_id: cover.USER1_s_office_blinds | |
| state: 'closed' | |
| - condition: state | |
| entity_id: sun.sun | |
| state: 'above_horizon' | |
| - condition: state | |
| entity_id: vacuum.upstairs_roomba | |
| state: 'docked' | |
| action: | |
| - service: cover.open_cover | |
| entity_id: | |
| - cover.USER1_s_office_blinds | |
| ########################################################## | |
| ## Close USER1's Office Blinds When No Motion Detected | |
| ########################################################## | |
| - alias: Blinds - Close USER1's Office Blinds When No Motion Detected | |
| id: 'blinds_close_USER1_office_blinds_when_no_motion_detected' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.USER1s_office_motion | |
| from: 'on' | |
| to: 'off' | |
| for: | |
| hours: 0 | |
| minutes: 30 | |
| seconds: 0 | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_blinds | |
| state: 'off' | |
| - condition: state | |
| entity_id: cover.USER1_s_office_blinds | |
| state: 'open' | |
| action: | |
| - service: cover.close_cover | |
| entity_id: | |
| - cover.USER1_s_office_blinds | |
| ########################################################## | |
| ## Close USER1's Office Blinds Halfway Before Sunset | |
| ########################################################## | |
| - alias: Blinds - Close USER1's Office Blinds Halfway Before Sunset | |
| id: 'blinds_close_USER1_office_blinds_halfway_before_sunset' | |
| trigger: | |
| - platform: sun | |
| event: 'sunset' | |
| offset: '-00:45:00' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_blinds | |
| state: 'off' | |
| - condition: state | |
| entity_id: cover.USER1_s_office_blinds | |
| state: 'open' | |
| action: | |
| - service: cover.set_cover_position | |
| data: | |
| entity_id: cover.USER1_s_office_blinds | |
| position: 50 | |
| ########################################################## | |
| ## Close USER1's Office Blinds to 25 Before Sunset | |
| ########################################################## | |
| - alias: Blinds - Close USER1's Office Blinds to 25 Before Sunset | |
| id: 'blinds_close_USER1_office_blinds_to_25_before_sunset' | |
| trigger: | |
| - platform: sun | |
| event: 'sunset' | |
| offset: '-00:17:00' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_blinds | |
| state: 'off' | |
| - condition: state | |
| entity_id: cover.USER1_s_office_blinds | |
| state: 'open' | |
| action: | |
| - service: cover.set_cover_position | |
| data: | |
| entity_id: cover.USER1_s_office_blinds | |
| position: 25 | |
| ########################################################## | |
| ## Close USER1's Office Blinds to 1 at Sunset | |
| ########################################################## | |
| - alias: Blinds - Close USER1's Office Blinds to 1 at Sunset | |
| id: 'blinds_close_USER1_office_blinds_to_1_at_sunset' | |
| trigger: | |
| - platform: sun | |
| event: 'sunset' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_blinds | |
| state: 'off' | |
| - condition: state | |
| entity_id: cover.USER1_s_office_blinds | |
| state: 'open' | |
| action: | |
| - service: cover.set_cover_position | |
| data: | |
| entity_id: cover.USER1_s_office_blinds | |
| position: 1 | |
| ########################################################## | |
| ## Close USER1's Office Blinds when Sun Below Horizon | |
| ########################################################## | |
| - alias: Blinds - Close USER1's Office Blinds when Sun Below Horizon | |
| id: 'blinds_close_USER1_office_blinds_when_sun_below_horizon' | |
| trigger: | |
| - platform: state | |
| entity_id: sun.sun | |
| from: 'above_horizon' | |
| to: 'below_horizon' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_blinds | |
| state: 'off' | |
| - condition: state | |
| entity_id: cover.USER1_s_office_blinds | |
| state: 'open' | |
| action: | |
| - service: cover.close_cover | |
| entity_id: | |
| - cover.USER1_s_office_blinds | |
| ########################################################## | |
| ## Turn Off USER1's Office Lights when Blinds are Open | |
| ########################################################## | |
| - alias: Blinds - Turn Off USER1's Office Lights when Blinds are Open | |
| id: 'blinds_turn_off_USER1_office_lights_when_blinds_are_open' | |
| trigger: | |
| - platform: state | |
| entity_id: cover.USER1_s_office_blinds | |
| from: 'closed' | |
| to: 'open' | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_blinds | |
| state: 'off' | |
| - condition: state | |
| entity_id: light.USER1_office_lights | |
| state: 'on' | |
| action: | |
| - service: light.turn_off | |
| entity_id: | |
| - light.USER1_office_lights |