mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
142 lines
6.4 KiB
YAML
142 lines
6.4 KiB
YAML
input_select:
|
|
camera_dropdown:
|
|
name: Cast Camera
|
|
options:
|
|
- Blue Room
|
|
- Kitchen
|
|
- Front Room
|
|
- Computer Area
|
|
- Garage
|
|
- Nursery
|
|
- Back Yard
|
|
- Front Yard
|
|
- Front Door
|
|
- Master Bedroom
|
|
initial: Nursery
|
|
icon: mdi:camera
|
|
cast_to_screen_dropdown:
|
|
name: To Screen
|
|
options:
|
|
- Front Room Display
|
|
- Nursery Hub
|
|
- Computer Area Hub
|
|
|
|
script:
|
|
execute_cast_dropdown:
|
|
alias: Press to execute
|
|
sequence:
|
|
# - service: 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
|
|
# {% 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') %}
|
|
# media-source://camera/camera.frigate_cam01
|
|
# {% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
|
|
# media-source://camera/camera.frigate_cam12
|
|
# {% elif is_state('input_select.camera_dropdown', 'Computer Area') %}
|
|
# media-source://camera/camera.frigate_cam03
|
|
# {% elif is_state('input_select.camera_dropdown', 'Garage') %}
|
|
# media-source://camera/camera.frigate_cam04
|
|
# {% elif is_state('input_select.camera_dropdown', 'Master Bedroom') %}
|
|
# media-source://camera/camera.frigate_cam06
|
|
# {% elif is_state('input_select.camera_dropdown', 'Nursery') %}
|
|
# media-source://camera/camera.frigate_cam08
|
|
# {% elif is_state('input_select.camera_dropdown', 'Back Yard') %}
|
|
# media-source://camera/camera.frigate_cam14
|
|
# {% elif is_state('input_select.camera_dropdown', 'Front Yard') %}
|
|
# media-source://camera/camera.frigate_cam19
|
|
# {% elif is_state('input_select.camera_dropdown', 'Front Room') %}
|
|
# media-source://camera/camera.frigate_cam13
|
|
# {% endif %}
|
|
# media_content_type: 'image/jpeg'
|
|
|
|
- service: 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', 'Computer Area Hub') %}
|
|
media_player.computer_area_hub
|
|
{% endif %}
|
|
volume_level: 0.100
|
|
|
|
# - service: 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
|
|
# {% 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') %}
|
|
# 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
|
|
# {% elif is_state('input_select.camera_dropdown', 'Computer Area') %}
|
|
# rtsp://192.168.1.11:8554/rtsp_cam03_sub
|
|
# {% elif is_state('input_select.camera_dropdown', 'Garage') %}
|
|
# rtsp://192.168.1.11:8554/rtsp_cam04_sub
|
|
# {% elif is_state('input_select.camera_dropdown', 'Master Bedroom') %}
|
|
# rtsp://192.168.1.11:8554/rtsp_cam06_sub
|
|
# {% elif is_state('input_select.camera_dropdown', 'Nursery') %}
|
|
# rtsp://192.168.1.11:8554/rtsp_cam08_sub
|
|
# {% elif is_state('input_select.camera_dropdown', 'Back Yard') %}
|
|
# rtsp://192.168.1.11:8554/rtsp_cam14_sub
|
|
# {% elif is_state('input_select.camera_dropdown', 'Front Yard') %}
|
|
# rtsp://192.168.1.11:8554/rtsp_cam18_sub
|
|
# {% elif is_state('input_select.camera_dropdown', 'Front Door') %}
|
|
# rtsp://192.168.1.11:8554/rtsp_cam19_sub
|
|
# {% elif is_state('input_select.camera_dropdown', 'Front Room') %}
|
|
# rtsp://192.168.1.11:8554/rtsp_cam13_sub
|
|
# {% endif %}
|
|
# force: true
|
|
# 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', '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
|
|
{% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
|
|
kitchen-camera
|
|
{% elif is_state('input_select.camera_dropdown', 'Computer Area') %}
|
|
computer-area-camera
|
|
{% elif is_state('input_select.camera_dropdown', 'Garage') %}
|
|
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', 'Back Yard') %}
|
|
back-yard-camera
|
|
{% elif is_state('input_select.camera_dropdown', 'Front Yard') %}
|
|
front-yard-camera
|
|
{% elif is_state('input_select.camera_dropdown', 'Front Door') %}
|
|
front-porch-camera
|
|
{% elif is_state('input_select.camera_dropdown', 'Front Room') %}
|
|
front-room-camera
|
|
{% endif %} |