mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
everything's gotta change
This commit is contained in:
@@ -95,31 +95,28 @@ action:
|
||||
entity_id: binary_sensor.computer_area_occupied
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: media_player.play_media
|
||||
target:
|
||||
entity_id: media_player.computer_area_hub
|
||||
- action: dash_cast.load_url
|
||||
data:
|
||||
media:
|
||||
media_content_id: media-source://camera/camera.frigate_cam01
|
||||
media_content_type: image/jpeg
|
||||
metadata:
|
||||
title: Frigate Cam01
|
||||
thumbnail: /api/camera_proxy/camera.frigate_cam01
|
||||
media_class: video
|
||||
children_media_class: null
|
||||
navigateIds:
|
||||
- {}
|
||||
- media_content_type: app
|
||||
media_content_id: media-source://camera
|
||||
browse_entity_id: media_player.computer_area_hub
|
||||
|
||||
# - action: webrtc.dash_cast
|
||||
# data:
|
||||
entity_id: media_player.computer_area_hub
|
||||
force: true
|
||||
url: http://192.168.1.7:1984/stream.html?src=cam01_sub
|
||||
# - action: media_player.play_media
|
||||
# target:
|
||||
# entity_id: media_player.computer_area_hub
|
||||
# url: cam01_sub
|
||||
# force: true
|
||||
# extra:
|
||||
# mode: webrtc
|
||||
# data:
|
||||
# media:
|
||||
# media_content_id: media-source://camera/camera.frigate_cam01
|
||||
# media_content_type: image/jpeg
|
||||
# metadata:
|
||||
# title: Frigate Cam01
|
||||
# thumbnail: /api/camera_proxy/camera.frigate_cam01
|
||||
# media_class: video
|
||||
# children_media_class: null
|
||||
# navigateIds:
|
||||
# - {}
|
||||
# - media_content_type: app
|
||||
# media_content_id: media-source://camera
|
||||
# browse_entity_id: media_player.computer_area_hub
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
@@ -127,67 +124,31 @@ action:
|
||||
entity_id: binary_sensor.front_room_occupied
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: media_player.play_media
|
||||
target:
|
||||
entity_id: media_player.front_room_hub
|
||||
- action: dash_cast.load_url
|
||||
data:
|
||||
media:
|
||||
media_content_id: media-source://camera/camera.frigate_cam01
|
||||
media_content_type: image/jpeg
|
||||
metadata:
|
||||
title: Frigate Cam01
|
||||
thumbnail: /api/camera_proxy/camera.frigate_cam01
|
||||
media_class: video
|
||||
children_media_class: null
|
||||
navigateIds:
|
||||
- {}
|
||||
- media_content_type: app
|
||||
media_content_id: media-source://camera
|
||||
browse_entity_id: media_player.front_room_hub
|
||||
|
||||
# - action: webrtc.dash_cast
|
||||
# data:
|
||||
entity_id: media_player.front_room_hub
|
||||
force: true
|
||||
url: http://192.168.1.7:1984/stream.html?src=cam01_sub
|
||||
# - action: media_player.play_media
|
||||
# target:
|
||||
# entity_id: media_player.front_room_hub
|
||||
# url: cam01_sub
|
||||
# force: true
|
||||
# extra:
|
||||
# mode: webrtc
|
||||
# data:
|
||||
# media:
|
||||
# media_content_id: media-source://camera/camera.frigate_cam01
|
||||
# media_content_type: image/jpeg
|
||||
# metadata:
|
||||
# title: Frigate Cam01
|
||||
# thumbnail: /api/camera_proxy/camera.frigate_cam01
|
||||
# media_class: video
|
||||
# children_media_class: null
|
||||
# navigateIds:
|
||||
# - {}
|
||||
# - media_content_type: app
|
||||
# media_content_id: media-source://camera
|
||||
# browse_entity_id: media_player.front_room_hub
|
||||
|
||||
- delay: "00:10:00"
|
||||
|
||||
- action: media_player.turn_off
|
||||
entity_id: media_player.front_room_hub, media_player.computer_area_hub
|
||||
|
||||
# - alias: "Flash some lights"
|
||||
# repeat:
|
||||
# count: 6
|
||||
# sequence:
|
||||
# - delay: 1
|
||||
# - action: light.toggle
|
||||
# target:
|
||||
# entity_id:
|
||||
# - light.entryway_hue
|
||||
# - light.computer_area_hue
|
||||
# - light.front_room_hue
|
||||
#- delay: '00:00:02'
|
||||
|
||||
# - alias: "Fix computer area lights"
|
||||
# action: automation.trigger
|
||||
# target:
|
||||
# entity_id: "automation.computer_area_lights_to_{{ computer_area }}"
|
||||
# data:
|
||||
# skip_condition: true
|
||||
|
||||
# - alias: "Fix front room lights"
|
||||
# action: automation.trigger
|
||||
# target:
|
||||
# entity_id: "automation.front_room_lights_to_{{ front_room }}"
|
||||
# data:
|
||||
# skip_condition: true
|
||||
|
||||
# - alias: "Fix entryway lights"
|
||||
# action: automation.trigger
|
||||
# target:
|
||||
# entity_id: "automation.entryway_lights_to_{{ entryway }}"
|
||||
# data:
|
||||
# skip_condition: true
|
||||
|
||||
@@ -10,11 +10,6 @@ trigger:
|
||||
from: "on"
|
||||
to: "off"
|
||||
for: "00:00:05"
|
||||
- trigger: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
from: "on"
|
||||
to: "off"
|
||||
for: "00:00:05"
|
||||
- trigger: state
|
||||
entity_id: binary_sensor.girls_room_door
|
||||
from: "off"
|
||||
@@ -100,13 +95,37 @@ action:
|
||||
entity_id: binary_sensor.computer_area_occupied
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: webrtc.dash_cast
|
||||
- action: dash_cast.load_url
|
||||
data:
|
||||
entity_id: media_player.computer_area_hub
|
||||
url: cam08_sub
|
||||
force: true
|
||||
extra:
|
||||
mode: webrtc
|
||||
url: http://192.168.1.7:1984/stream.html?src=cam03_sub
|
||||
|
||||
# - action: media_player.play_media
|
||||
# target:
|
||||
# entity_id: media_player.computer_area_hub
|
||||
# data:
|
||||
# media:
|
||||
# media_content_id: media-source://camera/camera.frigate_cam03
|
||||
# media_content_type: image/jpeg
|
||||
# metadata:
|
||||
# title: Frigate Cam03
|
||||
# thumbnail: /api/camera_proxy/camera.frigate_cam03
|
||||
# media_class: video
|
||||
# children_media_class: null
|
||||
# navigateIds:
|
||||
# - {}
|
||||
# - media_content_type: app
|
||||
# media_content_id: media-source://camera
|
||||
# browse_entity_id: media_player.computer_area_hub
|
||||
|
||||
# - action: webrtc.dash_cast
|
||||
# data:
|
||||
# entity_id: media_player.computer_area_hub
|
||||
# url: cam08_sub
|
||||
# force: true
|
||||
# extra:
|
||||
# mode: webrtc
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
@@ -114,13 +133,36 @@ action:
|
||||
entity_id: binary_sensor.front_room_occupied
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: webrtc.dash_cast
|
||||
- action: dash_cast.load_url
|
||||
data:
|
||||
entity_id: media_player.front_room_hub
|
||||
url: cam08_sub
|
||||
force: true
|
||||
extra:
|
||||
mode: webrtc
|
||||
url: http://192.168.1.7:1984/stream.html?src=cam03_sub
|
||||
# - action: media_player.play_media
|
||||
# target:
|
||||
# entity_id: media_player.front_room_hub
|
||||
# data:
|
||||
# media:
|
||||
# media_content_id: media-source://camera/camera.frigate_cam08
|
||||
# media_content_type: image/jpeg
|
||||
# metadata:
|
||||
# title: Frigate Cam08
|
||||
# thumbnail: /api/camera_proxy/camera.frigate_cam08
|
||||
# media_class: video
|
||||
# children_media_class: null
|
||||
# navigateIds:
|
||||
# - {}
|
||||
# - media_content_type: app
|
||||
# media_content_id: media-source://camera
|
||||
# browse_entity_id: media_player.front_room_hub
|
||||
|
||||
# - action: webrtc.dash_cast
|
||||
# data:
|
||||
# entity_id: media_player.front_room_hub
|
||||
# url: cam08_sub
|
||||
# force: true
|
||||
# extra:
|
||||
# mode: webrtc
|
||||
|
||||
- delay: "00:10:00"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user