mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Refactor bed occupancy sensors and related automations
- Updated nursery automation to use input booleans for bed occupancy instead of binary sensors. - Changed conditions in nursery automation to improve readability and consistency. - Modified binary sensor configurations for master bedroom and nursery to use input booleans. - Removed unused input number configurations related to master bed load cells. - Updated UI configurations to reflect changes in entity types from binary sensors to input booleans. - Cleaned up camera view configurations and adjusted styles for better layout. - Removed deprecated master bed YAML configuration and archived it for future reference. - Enhanced ESPHome configurations for white and black beds, including improved logging and diagnostics.
This commit is contained in:
@@ -4,66 +4,66 @@ id: automation_baby_monitor_on_hub
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
to: 'off'
|
||||
for: '00:00:03'
|
||||
to: "off"
|
||||
for: "00:00:03"
|
||||
|
||||
- platform: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
to: 'off'
|
||||
for: '00:00:03'
|
||||
entity_id: input_boolean.white_bed_occupied
|
||||
to: "off"
|
||||
for: "00:00:03"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.kids_at_home
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: group.kids_in_bed
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.front_room_person_occupancy
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_hub
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_hub
|
||||
state: 'idle'
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_hub
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_hub
|
||||
state: "idle"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: timer.nursery_camera_on_hub
|
||||
state: 'idle'
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
entity_id: media_player.front_room_hub
|
||||
volume_level: 0.1
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: timer.nursery_camera_on_hub
|
||||
state: "idle"
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
entity_id: media_player.front_room_hub
|
||||
volume_level: 0.1
|
||||
|
||||
- service: media_player.play_media
|
||||
target:
|
||||
entity_id: media_player.front_room_hub
|
||||
data:
|
||||
media_content_id: camera-casting-yml/nursery-camera
|
||||
media_content_type: lovelace
|
||||
metadata:
|
||||
title: Nursery Camera
|
||||
thumbnail: https://brands.home-assistant.io/_/lovelace/logo.png
|
||||
media_class: app
|
||||
children_media_class: null
|
||||
navigateIds:
|
||||
- {}
|
||||
- media_content_type: lovelace
|
||||
media_content_id: ''
|
||||
- media_content_type: lovelace
|
||||
media_content_id: camera-casting-yml
|
||||
- service: media_player.play_media
|
||||
target:
|
||||
entity_id: media_player.front_room_hub
|
||||
data:
|
||||
media_content_id: camera-casting-yml/nursery-camera
|
||||
media_content_type: lovelace
|
||||
metadata:
|
||||
title: Nursery Camera
|
||||
thumbnail: https://brands.home-assistant.io/_/lovelace/logo.png
|
||||
media_class: app
|
||||
children_media_class: null
|
||||
navigateIds:
|
||||
- {}
|
||||
- media_content_type: lovelace
|
||||
media_content_id: ""
|
||||
- media_content_type: lovelace
|
||||
media_content_id: camera-casting-yml
|
||||
|
||||
- service: timer.start
|
||||
data:
|
||||
entity_id: timer.nursery_camera_on_hub
|
||||
- service: timer.start
|
||||
data:
|
||||
entity_id: timer.nursery_camera_on_hub
|
||||
|
||||
@@ -4,69 +4,69 @@ id: automation_baby_monitor_on_tv
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
to: 'off'
|
||||
for: '00:00:03'
|
||||
to: "off"
|
||||
for: "00:00:03"
|
||||
- platform: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
to: 'off'
|
||||
for: '00:00:03'
|
||||
entity_id: input_boolean.white_bed_occupied
|
||||
to: "off"
|
||||
for: "00:00:03"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.front_room_occupied
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_tv
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_tv
|
||||
state: 'standby'
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_tv
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_tv
|
||||
state: "standby"
|
||||
- condition: state
|
||||
entity_id: input_boolean.computer_area_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.master_bed_right_occupied
|
||||
state: 'off'
|
||||
entity_id: input_boolean.master_bed_occupied
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.master_bedroom_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
state: "on"
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
state: "on"
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
state: "on"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
@@ -78,17 +78,17 @@ condition:
|
||||
- condition: state
|
||||
entity_id: media_player.front_room_tv
|
||||
attribute: source
|
||||
state: 'IP Camera Viewer - Pro'
|
||||
state: "IP Camera Viewer - Pro"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: timer.nursery_camera_on_hub
|
||||
state: 'idle'
|
||||
sequence:
|
||||
- service: rest_command.nursery_on_roku_1
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: timer.nursery_camera_on_hub
|
||||
state: "idle"
|
||||
sequence:
|
||||
- service: rest_command.nursery_on_roku_1
|
||||
|
||||
- service: timer.start
|
||||
data:
|
||||
entity_id: timer.nursery_camera_on_tv
|
||||
- service: timer.start
|
||||
data:
|
||||
entity_id: timer.nursery_camera_on_tv
|
||||
|
||||
Reference in New Issue
Block a user