Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated update at 2018-10-08 12:03
- Loading branch information
Showing
18 changed files
with
472 additions
and
312 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
initial_state: 'on' | ||
alias: 'Family room not occupied' | ||
trigger: | ||
- platform: state | ||
entity_id: device_tracker.family_tv | ||
to: 'not_home' | ||
- platform: state | ||
entity_id: media_player.family_room | ||
to: 'paused' | ||
- platform: state | ||
entity_id: media_player.family_room | ||
to: 'off' | ||
- platform: state | ||
entity_id: media_player.cast_kitchen_speaker | ||
to: 'off' | ||
- platform: state | ||
entity_id: media_player.cast_kitchen_speaker | ||
to: 'idle' | ||
condition: | ||
# TV and music off | ||
- condition: state | ||
entity_id: device_tracker.family_tv | ||
state: 'not_home' | ||
- condition: or | ||
conditions: | ||
- condition: state | ||
entity_id: media_player.family_room | ||
state: 'playing' | ||
- condition: state | ||
entity_id: media_player.family_room | ||
state: 'off' | ||
- condition: or | ||
conditions: | ||
- condition: state | ||
entity_id: media_player.cast_kitchen_speaker | ||
state: 'playing' | ||
- condition: state | ||
entity_id: media_player.cast_kitchen_speaker | ||
state: 'idle' | ||
action: | ||
- service: input_boolean.turn_off | ||
entity_id: input_boolean.family_room_occupied |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
initial_state: 'on' | ||
alias: 'Family room occupied' | ||
trigger: | ||
- platform: state | ||
entity_id: device_tracker.family_tv | ||
to: 'home' | ||
- platform: state | ||
entity_id: media_player.family_room | ||
to: 'playing' | ||
- platform: state | ||
entity_id: media_player.cast_kitchen_speaker | ||
to: 'playing' | ||
condition: | ||
# TV or music on | ||
- condition: or | ||
conditions: | ||
- condition: state | ||
entity_id: device_tracker.family_tv | ||
state: 'home' | ||
- condition: state | ||
entity_id: media_player.family_room | ||
state: 'playing' | ||
- condition: state | ||
entity_id: media_player.cast_kitchen_speaker | ||
state: 'playing' | ||
- condition: or | ||
conditions: | ||
# Somebody is home, or guest mode is on | ||
- condition: state | ||
entity_id: input_boolean.all_away | ||
state: 'off' | ||
- condition: state | ||
entity_id: input_boolean.adults_away | ||
state: 'off' | ||
- condition: state | ||
entity_id: input_boolean.guest_mode | ||
state: 'on' | ||
action: | ||
- service: input_boolean.turn_on | ||
entity_id: input_boolean.family_room_occupied |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
initial_state: 'off' | ||
alias: 'Living room lights day on' | ||
trigger: | ||
- platform: state | ||
entity_id: input_select.living_room | ||
to: Day on | ||
condition: | ||
condition: and | ||
conditions: | ||
# Lighting automations are enabled | ||
- condition: state | ||
entity_id: input_boolean.lighting_automations | ||
state: 'on' | ||
action: | ||
- service: homeassistant.turn_off | ||
entity_id: input_boolean.livingroom_lights_auto | ||
- service: switch.turn_on | ||
entity_id: switch.tv_light_switch | ||
- service: switch.turn_on | ||
entity_id: switch.livingroom_socket_switch |
Oops, something went wrong.