mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
Changing camera names to ensure frigate, go2rtc, and home assistant all match
This commit is contained in:
@@ -4,12 +4,10 @@ input_select:
|
||||
options:
|
||||
- Boys Room
|
||||
- Kitchen
|
||||
- Front Room
|
||||
- Computer Area
|
||||
- Upstairs
|
||||
- Garage
|
||||
- Girls Room
|
||||
- Back Yard
|
||||
- Front Yard
|
||||
- Downstairs
|
||||
- Front Door
|
||||
- Master Bedroom
|
||||
initial: Girls Room
|
||||
@@ -38,183 +36,52 @@ script:
|
||||
{% endif %}
|
||||
camera: >
|
||||
{% if is_state('input_select.camera_dropdown', 'Boys Room') %}
|
||||
media-source://camera/camera.frigate_cam01
|
||||
media-source://camera/camera.boys_room_cam
|
||||
{% 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
|
||||
media-source://camera/camera.kitchen_cam
|
||||
{% elif is_state('input_select.camera_dropdown', 'Downstairs') %}
|
||||
media-source://camera/camera.downstairs_cam
|
||||
{% elif is_state('input_select.camera_dropdown', 'Garage') %}
|
||||
media-source://camera/camera.frigate_cam04
|
||||
media-source://camera/camera.garage_cam
|
||||
{% elif is_state('input_select.camera_dropdown', 'Master Bedroom') %}
|
||||
media-source://camera/camera.frigate_cam06
|
||||
media-source://camera/camera.bedroom_cam
|
||||
{% elif is_state('input_select.camera_dropdown', 'Girls Room') %}
|
||||
media-source://camera/camera.frigate_cam08
|
||||
{% elif is_state('input_select.camera_dropdown', 'Back Yard') %}
|
||||
media-source://camera/camera.frigate_cam12
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Yard') %}
|
||||
media-source://camera/camera.frigate_cam18
|
||||
media-source://camera/camera.girls_room_cam
|
||||
{% elif is_state('input_select.camera_dropdown', 'Upstairs') %}
|
||||
media-source://camera/camera.upstairs_cam
|
||||
{% 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_cam14
|
||||
media-source://camera/camera.doorbell_cam
|
||||
{% endif %}
|
||||
url: >
|
||||
{% if is_state('input_select.camera_dropdown', 'Boys Room') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam01_sub
|
||||
http://192.168.1.7:1984/stream.html?src=boys_room_cam
|
||||
{% 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
|
||||
http://192.168.1.7:1984/stream.html?src=kitchen_cam
|
||||
{% elif is_state('input_select.camera_dropdown', 'Downstairs') %}
|
||||
http://192.168.1.7:1984/stream.html?src=downstairs_cam
|
||||
{% elif is_state('input_select.camera_dropdown', 'Garage') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam04_sub
|
||||
http://192.168.1.7:1984/stream.html?src=garage_cam
|
||||
{% elif is_state('input_select.camera_dropdown', 'Master Bedroom') %}
|
||||
http://192.168.1.7:1984/stream.html?src=cam06_sub
|
||||
http://192.168.1.7:1984/stream.html?src=bedroom_cam
|
||||
{% 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
|
||||
http://192.168.1.7:1984/stream.html?src=girls_room_cam
|
||||
{% elif is_state('input_select.camera_dropdown', 'Upstairs') %}
|
||||
http://192.168.1.7:1984/stream.html?src=upstairs_cam
|
||||
{% 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
|
||||
http://192.168.1.7:1984/stream.html?src=doorbell_cam
|
||||
{% endif %}
|
||||
|
||||
|
||||
- action: media_player.volume_set
|
||||
data:
|
||||
entity_id: "{{ media_player }}"
|
||||
volume_level: 0.100
|
||||
|
||||
# - 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:
|
||||
entity_id: "{{ media_player }}"
|
||||
force: true
|
||||
url: "{{ url }}"
|
||||
|
||||
|
||||
# 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: 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', 'Girls Room Hub') %}
|
||||
# media_player.bedroom_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', 'Boys 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', 'Girls Room') %}
|
||||
# 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'
|
||||
|
||||
# - 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', 'Girls Room Hub') %}
|
||||
# media_player.bedroom_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', 'Boys Room') %}
|
||||
# rtsp://192.168.1.11:8554/cam01_sub
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
|
||||
# rtsp://192.168.1.11:8554/cam12_sub
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Computer Area') %}
|
||||
# rtsp://192.168.1.11:8554/cam03_sub
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Garage') %}
|
||||
# rtsp://192.168.1.11:8554/cam04_sub
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Master Bedroom') %}
|
||||
# rtsp://192.168.1.11:8554/cam06_sub
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Girls Room') %}
|
||||
# rtsp://192.168.1.11:8554/cam08_sub
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Back Yard') %}
|
||||
# rtsp://192.168.1.11:8554/cam14_sub
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Front Yard') %}
|
||||
# rtsp://192.168.1.11:8554/cam18_sub
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Front Door') %}
|
||||
# rtsp://192.168.1.11:8554/cam19_sub
|
||||
# {% elif is_state('input_select.camera_dropdown', 'Front Room') %}
|
||||
# rtsp://192.168.1.11:8554/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', 'Girls Room Hub') %}
|
||||
# media_player.bedroom_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
# media_player.computer_area_hub
|
||||
# {% endif %}
|
||||
# dashboard_path: casting-yml
|
||||
# view_path: >
|
||||
# {% 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') %}
|
||||
# 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', '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') %}
|
||||
# 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 %}
|
||||
url:
|
||||
"{{ url }}"
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
@@ -224,4 +91,4 @@ script:
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: "{{ media_player }}"
|
||||
data: {}
|
||||
data: {}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
# authentication: basic
|
||||
|
||||
# - platform: generic
|
||||
# mjpeg_url: rtmp://192.168.1.7/live/frigate_cam12
|
||||
# mjpeg_url: rtmp://192.168.1.7/live/kitchen_cam
|
||||
# name: Camera12 MJjpeg
|
||||
# username: !secret bi_username
|
||||
# password: !secret bi_password
|
||||
|
||||
@@ -38,7 +38,7 @@ google_assistant:
|
||||
# aliases:
|
||||
# - Sliding Glass Door
|
||||
|
||||
camera.frigate_cam03:
|
||||
camera.computer_area_cam:
|
||||
name: Desk Camera
|
||||
expose: true
|
||||
aliases:
|
||||
@@ -52,14 +52,14 @@ google_assistant:
|
||||
- Computer Camera
|
||||
room: Computer Area
|
||||
|
||||
camera.frigate_cam12:
|
||||
camera.kitchen_cam:
|
||||
name: Kitchen Camera
|
||||
expose: true
|
||||
aliases:
|
||||
- Kitchen Cam
|
||||
room: Kitchen
|
||||
|
||||
camera.frigate_cam08:
|
||||
camera.girls_room_cam:
|
||||
name: Girls Room Camera
|
||||
expose: true
|
||||
aliases:
|
||||
@@ -68,7 +68,7 @@ google_assistant:
|
||||
- Baby Monitor Camera
|
||||
room: Girls Room
|
||||
|
||||
camera.frigate_cam01:
|
||||
camera.boys_room_cam:
|
||||
name: Boys Room Camera
|
||||
expose: true
|
||||
aliases:
|
||||
@@ -76,14 +76,6 @@ google_assistant:
|
||||
- Emmetts Cam
|
||||
room: Boys Room
|
||||
|
||||
camera.frigate_cam18:
|
||||
name: Front Yard Camera
|
||||
expose: true
|
||||
aliases:
|
||||
- Driveway Camera
|
||||
- Out Front Cam
|
||||
room: Front Yard
|
||||
|
||||
input_boolean.kids_bedtime:
|
||||
name: Kids Bedtime
|
||||
expose: true
|
||||
|
||||
Reference in New Issue
Block a user