mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
A whole bunch of cleanup
This commit is contained in:
@@ -23,7 +23,7 @@ observations:
|
||||
platform: state
|
||||
to_state: 'on'
|
||||
|
||||
- entity_id: binary_sensor.inner_garage_door
|
||||
- entity_id: binary_sensor.inner_garage_door_contact
|
||||
prob_given_true: 0.02
|
||||
prob_given_false: 0.0
|
||||
platform: state
|
||||
|
||||
@@ -30,25 +30,25 @@ observations:
|
||||
platform: state
|
||||
to_state: 'closed'
|
||||
|
||||
- entity_id: binary_sensor.inner_garage_door
|
||||
- entity_id: binary_sensor.inner_garage_door_contact
|
||||
prob_given_true: .75
|
||||
prob_given_false: 0.01
|
||||
platform: state
|
||||
to_state: 'on'
|
||||
|
||||
- entity_id: binary_sensor.inner_garage_door
|
||||
- entity_id: binary_sensor.inner_garage_door_contact
|
||||
prob_given_true: .5
|
||||
prob_given_false: 0.5
|
||||
platform: state
|
||||
to_state: 'off'
|
||||
|
||||
- entity_id: binary_sensor.outer_garage_door
|
||||
- entity_id: binary_sensor.outer_garage_door_contact
|
||||
prob_given_true: .75
|
||||
prob_given_false: 0.5
|
||||
platform: state
|
||||
to_state: 'on'
|
||||
|
||||
- entity_id: binary_sensor.outer_garage_door
|
||||
- entity_id: binary_sensor.outer_garage_door_contact
|
||||
prob_given_true: 0.5
|
||||
prob_given_false: 0.5
|
||||
platform: state
|
||||
|
||||
@@ -70,7 +70,44 @@ script:
|
||||
{% endif %}
|
||||
volume_level: 0.100
|
||||
|
||||
- service: webrtc.dash_cast
|
||||
# - 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') %}
|
||||
@@ -80,28 +117,26 @@ script:
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
media_player.computer_area_hub
|
||||
{% endif %}
|
||||
url: >
|
||||
dashboard_path: camera-casting-yml
|
||||
view_path: >
|
||||
{% if is_state('input_select.camera_dropdown', 'Blue Room') %}
|
||||
rtsp://192.168.1.11:8554/rtsp_cam01_sub
|
||||
blue-room-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Kitchen') %}
|
||||
rtsp://192.168.1.11:8554/rtsp_cam12_sub
|
||||
kitchen-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Computer Area') %}
|
||||
rtsp://192.168.1.11:8554/rtsp_cam03_sub
|
||||
computer-area-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Garage') %}
|
||||
rtsp://192.168.1.11:8554/rtsp_cam04_sub
|
||||
garage-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Master Bedroom') %}
|
||||
rtsp://192.168.1.11:8554/rtsp_cam06_sub
|
||||
mbr-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Nursery') %}
|
||||
rtsp://192.168.1.11:8554/rtsp_cam08_sub
|
||||
nursery-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Back Yard') %}
|
||||
rtsp://192.168.1.11:8554/rtsp_cam14_sub
|
||||
back-yard-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Yard') %}
|
||||
rtsp://192.168.1.11:8554/rtsp_cam18_sub
|
||||
front-yard-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Door') %}
|
||||
rtsp://192.168.1.11:8554/rtsp_cam19_sub
|
||||
front-porch-camera
|
||||
{% elif is_state('input_select.camera_dropdown', 'Front Room') %}
|
||||
rtsp://192.168.1.11:8554/rtsp_cam13_sub
|
||||
{% endif %}
|
||||
force: true
|
||||
extra:
|
||||
mode: webrtc
|
||||
front-room-camera
|
||||
{% endif %}
|
||||
@@ -1,2 +0,0 @@
|
||||
ecobee:
|
||||
api_key: !secret ecobee_api_key
|
||||
@@ -105,10 +105,10 @@ template:
|
||||
- name: Inner Garage Door Open to Outside
|
||||
unique_id: templatebinarysensor.inner_garage_door_open_to_outside
|
||||
device_class: door
|
||||
availability: "{{ (states('binary_sensor.inner_garage_door') not in ['unknown', 'unavailable']) and (states('binary_sensor.garage_door') not in ['unknown', 'unavailable']) and (states('binary_sensor.outer_garage_door') not in ['unknown', 'unavailable']) }}"
|
||||
availability: "{{ (states('binary_sensor.inner_garage_door_contact') not in ['unknown', 'unavailable']) and (states('binary_sensor.garage_door') not in ['unknown', 'unavailable']) and (states('binary_sensor.outer_garage_door_contact') not in ['unknown', 'unavailable']) }}"
|
||||
state: >-
|
||||
{% if is_state('binary_sensor.inner_garage_door', 'on') %}
|
||||
{% if is_state('binary_sensor.garage_door', 'on') or is_state('binary_sensor.outer_garage_door', 'on') %}
|
||||
{% if is_state('binary_sensor.inner_garage_door_contact', 'on') %}
|
||||
{% if is_state('binary_sensor.garage_door', 'on') or is_state('binary_sensor.outer_garage_door_contact', 'on') %}
|
||||
{{'true'}}
|
||||
{% else %}
|
||||
{{'false'}}
|
||||
|
||||
Reference in New Issue
Block a user