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:
@@ -24,6 +24,8 @@ input_select:
|
||||
script:
|
||||
execute_cast_dropdown:
|
||||
alias: Press to execute
|
||||
mode: parallel
|
||||
max: 10
|
||||
sequence:
|
||||
- variables:
|
||||
media_player: >
|
||||
@@ -54,7 +56,29 @@ script:
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Door') %}
|
||||
media-source://camera/camera.frigate_cam19
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Room') %}
|
||||
media-source://camera/camera.frigate_cam12
|
||||
media-source://camera/camera.frigate_cam14
|
||||
{% endif %}
|
||||
url: >
|
||||
{% if is_state('input_select.camera_dropdown', 'Boys Room') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam01_sub
|
||||
{% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam12_sub
|
||||
{% elif is_state('input_select.camera_dropdown', 'Computer Area') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam03_sub
|
||||
{% elif is_state('input_select.camera_dropdown', 'Garage') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam04_sub
|
||||
{% elif is_state('input_select.camera_dropdown', 'Master Bedroom') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam06_sub
|
||||
{% elif is_state('input_select.camera_dropdown', 'Girls Room') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam08_sub
|
||||
{% elif is_state('input_select.camera_dropdown', 'Back Yard') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam14_sub
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Yard') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam18_sub
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Door') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam19_sub
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Room') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam14_sub
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -63,13 +87,21 @@ script:
|
||||
entity_id: "{{ media_player }}"
|
||||
volume_level: 0.100
|
||||
|
||||
- action: media_player.play_media
|
||||
target:
|
||||
entity_id: "{{ media_player }}"
|
||||
# - action: media_player.play_media
|
||||
# target:
|
||||
# entity_id: "{{ media_player }}"
|
||||
# data:
|
||||
# media:
|
||||
# media_content_id: "{{ camera }}"
|
||||
# media_content_type: image/jpeg
|
||||
|
||||
- action: dash_cast.load_url
|
||||
data:
|
||||
media:
|
||||
media_content_id: "{{ camera }}"
|
||||
media_content_type: image/jpeg
|
||||
entity_id: "{{ media_player }}"
|
||||
force: true
|
||||
url: "{{ url }}"
|
||||
|
||||
|
||||
# metadata:
|
||||
# title: Frigate Cam01
|
||||
# thumbnail: /api/camera_proxy/camera.frigate_cam01
|
||||
@@ -183,3 +215,13 @@ script:
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Front Room') %}
|
||||
# front-room-camera
|
||||
# {% endif %}
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
milliseconds: 0
|
||||
- action: media_player.turn_off
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: "{{ media_player }}"
|
||||
data: {}
|
||||
Reference in New Issue
Block a user