mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -2,42 +2,42 @@ input_select:
|
||||
camera_dropdown:
|
||||
name: Cast Camera
|
||||
options:
|
||||
- Blue Room
|
||||
- Boys Room
|
||||
- Kitchen
|
||||
- Front Room
|
||||
- Computer Area
|
||||
- Garage
|
||||
- Nursery
|
||||
- Girls Room
|
||||
- Back Yard
|
||||
- Front Yard
|
||||
- Front Door
|
||||
- Master Bedroom
|
||||
initial: Nursery
|
||||
initial: Girls Room
|
||||
icon: mdi:camera
|
||||
cast_to_screen_dropdown:
|
||||
name: To Screen
|
||||
options:
|
||||
- Front Room Display
|
||||
- Nursery Hub
|
||||
- Girls Room Hub
|
||||
- Computer Area Hub
|
||||
|
||||
script:
|
||||
execute_cast_dropdown:
|
||||
alias: Press to execute
|
||||
sequence:
|
||||
# - service: media_player.play_media
|
||||
# - action: media_player.play_media
|
||||
# target:
|
||||
# entity_id: >
|
||||
# {% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
# media_player.front_room_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
|
||||
# media_player.nursery_hub
|
||||
# media_player.girls_room_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
# media_player.computer_area_hub
|
||||
# {% endif %}
|
||||
# data:
|
||||
# media_content_id: >
|
||||
# {% if is_state('input_select.camera_dropdown', 'Blue Room') %}
|
||||
# {% if is_state('input_select.camera_dropdown', 'Boys Room') %}
|
||||
# media-source://camera/camera.frigate_cam01
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
|
||||
# media-source://camera/camera.frigate_cam12
|
||||
@@ -58,30 +58,30 @@ script:
|
||||
# {% endif %}
|
||||
# media_content_type: 'image/jpeg'
|
||||
|
||||
- service: media_player.volume_set
|
||||
- action: media_player.volume_set
|
||||
data:
|
||||
entity_id: >
|
||||
{% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
media_player.front_room_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
|
||||
media_player.nursery_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Girls Room Hub') %}
|
||||
media_player.girls_room_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
media_player.computer_area_hub
|
||||
{% endif %}
|
||||
volume_level: 0.100
|
||||
|
||||
# - service: webrtc.dash_cast
|
||||
# - action: webrtc.dash_cast
|
||||
# data:
|
||||
# entity_id: >
|
||||
# {% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
# media_player.front_room_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
|
||||
# media_player.nursery_hub
|
||||
# media_player.girls_room_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
# media_player.computer_area_hub
|
||||
# {% endif %}
|
||||
# url: >
|
||||
# {% if is_state('input_select.camera_dropdown', 'Blue Room') %}
|
||||
# {% if is_state('input_select.camera_dropdown', 'Boys Room') %}
|
||||
# rtsp://192.168.1.11:8554/rtsp_cam01_sub
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
|
||||
# rtsp://192.168.1.11:8554/rtsp_cam12_sub
|
||||
@@ -106,21 +106,20 @@ script:
|
||||
# extra:
|
||||
# mode: webrtc
|
||||
|
||||
|
||||
- action: cast.show_lovelace_view
|
||||
data:
|
||||
entity_id: >
|
||||
{% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
media_player.front_room_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Nursery Hub') %}
|
||||
media_player.nursery_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Girls Room Hub') %}
|
||||
media_player.girls_room_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
media_player.computer_area_hub
|
||||
{% endif %}
|
||||
dashboard_path: camera-casting-yml
|
||||
view_path: >
|
||||
{% if is_state('input_select.camera_dropdown', 'Blue Room') %}
|
||||
blue-room-camera
|
||||
{% if is_state('input_select.camera_dropdown', 'Boys Room') %}
|
||||
boys-room-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
|
||||
kitchen-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Computer Area') %}
|
||||
@@ -129,8 +128,8 @@ script:
|
||||
garage-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Master Bedroom') %}
|
||||
mbr-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Nursery') %}
|
||||
nursery-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Girls Room') %}
|
||||
girls-room-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Back Yard') %}
|
||||
back-yard-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Yard') %}
|
||||
@@ -139,4 +138,4 @@ script:
|
||||
front-porch-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Room') %}
|
||||
front-room-camera
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user