Added in some choose statements to push the video around the house depending on sensors : #955

This commit is contained in:
ccostan 2020-12-19 20:52:14 -05:00
parent a59edc9f65
commit 63712a9b67
2 changed files with 24 additions and 5 deletions

View File

@ -24,17 +24,35 @@ automation:
from: 'closed'
to: 'open'
action:
- platform: state
entity_id: binary_sensor.mcu1_gpio12 #interior Garage Doors
from: 'off'
to: 'on'
action:
- service: media_player.play_media
data:
entity_id: media_player.kitchen_show
media_content_id: 'show garage camera'
media_content_type: custom
- choose:
- conditions: "{{ binary_sensor.sleepnumber_carlo_stacey_is_in_bed == 'on' }}"
sequence:
- service: media_player.play_media
data:
entity_id:
- media_player.kitchen_show
- media_player.upstairs
- media_player.stacey_bedroom
media_content_id: 'show garage camera'
media_content_type: custom
default:
- service: media_player.play_media
data:
entity_id: media_player.alarm_panel_1
media_content_id: 'show garage camera'
media_content_type: custom
- delay: '00:20:00'
- service: media_player.play_media
@ -43,5 +61,6 @@ automation:
- media_player.kitchen_show
- media_player.upstairs
- media_player.stacey_bedroom
- media_player.alarm_panel_1
media_content_id: 'hide garage camera'
media_content_type: custom

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB