Files
fresh-home/lovelace/cameras/view-camera-08.yaml
T
CeeWeasel 4e0e55ac3c 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.
2025-07-19 13:37:45 -04:00

205 lines
5.2 KiB
YAML

type: conditional
conditions:
- condition: state
entity: sensor.frigate_cam08_camera_fps
state_not: "0"
card:
type: vertical-stack
cards:
- type: custom:advanced-camera-card
cameras_global:
dimensions:
layout:
fit: fill
status_bar:
style: none
cameras:
- camera_entity: camera.frigate_cam08
live_provider: go2rtc
go2rtc:
modes:
- webrtc
stream: rtsp_cam08_sub
live:
preload: true
draggable: true
show_image_during_load: false
lazy_load: false
controls:
title:
mode: none
timeline:
mode: none
thumbnails:
mode: none
menu:
buttons:
frigate:
enabled: false
style: none
media_viewer:
draggable: false
lazy_load: false
dimensions:
aspect_ratio_mode: static
aspect_ratio: "16:9"
elements:
- type: image
image: /local/title-dark-double.png
style:
transform: initial
top: 90%
left: 0px
width: 100%
height: 10%
opacity: 70%
- type: image
entity: camera.frigate_cam08
image: /local/title-dark-double.png
aspect_ratio: 100%
# tap_action:
# action: navigate
# navigation_path: /ai-yml/ai-cam08
style:
transform: initial
top: 0px
left: 0px
width: 100%
height: 100%
opacity: 0%
- type: state-icon
entity: group.nursery_motion
style:
left: 8%
top: 95%
- type: state-icon
entity: binary_sensor.black_bed_occupied
style:
left: 40%
top: 95%
- type: state-icon
entity: input_boolean.white_bed_occupied
style:
left: 60%
top: 95%
transform: scaleX(-1) translate(50%, -50%)
- type: state-icon
entity: input_boolean.nursery_occupied
tap_action:
action: toggle
style:
left: 76%
top: 95%
- type: state-icon
entity: binary_sensor.nursery_occupied
style:
top: 95%
left: 92%
- type: conditional
conditions:
- entity: binary_sensor.black_bed_person_occupancy
state: "on"
elements:
- type: state-icon
entity: binary_sensor.black_bed_person_occupancy
style:
top: 30%
left: 23%
- type: conditional
conditions:
- entity: binary_sensor.black_bed_occupied
state: "on"
elements:
- type: state-icon
entity: binary_sensor.black_bed_occupied
style:
top: 30%
left: 18%
- type: conditional
conditions:
- entity: binary_sensor.white_bed_person_occupancy
state: "on"
elements:
- type: state-icon
entity: binary_sensor.white_bed_person_occupancy
style:
top: 65%
left: 85%
- type: conditional
conditions:
- entity: input_boolean.white_bed_occupied
state: "on"
elements:
- type: state-icon
entity: input_boolean.white_bed_occupied
style:
top: 65%
left: 80%
- type: conditional
conditions:
- entity: binary_sensor.nursery_person_occupancy
state: "on"
elements:
- type: state-icon
entity: binary_sensor.nursery_person_occupancy
style:
top: 50%
left: 50%
- type: state-icon
entity: media_player.nursery_hub
style:
left: 45%
top: 16%
- type: state-icon
entity: light.nursery_ceiling_hue
style:
left: 50%
top: 3%
tap_action:
action: toggle
hold_action:
action: more-info
- type: state-icon
entity: light.nursery_closet
style:
left: 80%
top: 7%
tap_action:
action: toggle
hold_action:
action: more-info
- type: state-icon
entity: light.black_bed_wled
style:
left: 8%
top: 7%
- type: state-icon
entity: select.black_bed_wled_preset
style:
left: 8%
top: 12%
- type: state-icon
entity: light.white_bed_wled
style:
left: 98%
top: 65%
- type: state-icon
entity: select.white_bed_wled_preset
style:
left: 98%
top: 70%
- type: state-icon
entity: binary_sensor.nursery_closet_motion_switch_home_security_motion_detection
style:
left: 84%
top: 22%