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:
@@ -111,26 +111,14 @@ cards:
|
||||
secondary_info: none
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:mushroom-template-card
|
||||
entity: binary_sensor.master_bed_right_occupied
|
||||
- type: custom:mushroom-entity-card
|
||||
entity: input_boolean.master_bed_occupied
|
||||
name: Bed
|
||||
icon: mdi:bed-king
|
||||
icon_color: >-
|
||||
{{
|
||||
iif(is_state('binary_sensor.master_bed_right_occupied','on'),'yellow')}}
|
||||
primary: Bed
|
||||
double_tap_action:
|
||||
action: call-service
|
||||
service: homeassistant.toggle
|
||||
service_data: {}
|
||||
target:
|
||||
entity_id: switch.master_bed_force_occupancy
|
||||
hold_action:
|
||||
action: call-service
|
||||
service: button.press
|
||||
service_data: {}
|
||||
target:
|
||||
entity_id: button.master_bed_manual_tare
|
||||
layout: vertical
|
||||
secondary_info: none
|
||||
tap_action:
|
||||
action: toggle
|
||||
- type: custom:mushroom-entity-card
|
||||
entity: binary_sensor.master_bedroom_window_contact
|
||||
name: Window
|
||||
|
||||
@@ -177,10 +177,10 @@ cards:
|
||||
cards:
|
||||
- type: custom:mushroom-template-card
|
||||
primary: Emmett
|
||||
secondary: '{{states(''select.black_bed_wled_preset'')}}'
|
||||
secondary: "{{states('select.black_bed_wled_preset')}}"
|
||||
entity: select.black_bed_wled_preset
|
||||
icon: mdi:led-strip-variant
|
||||
icon_color: '{{ iif(is_state(''light.black_bed_wled'', ''on''), ''yellow'') }}'
|
||||
icon_color: "{{ iif(is_state('light.black_bed_wled', 'on'), 'yellow') }}"
|
||||
tap_action:
|
||||
action: more-info
|
||||
hold_action:
|
||||
@@ -195,10 +195,10 @@ cards:
|
||||
layout: vertical
|
||||
- type: custom:mushroom-template-card
|
||||
primary: Bridget
|
||||
secondary: '{{states(''select.white_bed_wled_preset'')}}'
|
||||
secondary: "{{states('select.white_bed_wled_preset')}}"
|
||||
entity: select.white_bed_wled_preset
|
||||
icon: mdi:led-strip-variant
|
||||
icon_color: '{{ iif(is_state(''light.white_bed_wled'', ''on''), ''yellow'') }}'
|
||||
icon_color: "{{ iif(is_state('light.white_bed_wled', 'on'), 'yellow') }}"
|
||||
tap_action:
|
||||
action: more-info
|
||||
hold_action:
|
||||
@@ -286,7 +286,7 @@ cards:
|
||||
icon: mdi:sleep
|
||||
- type: custom:mushroom-entity-card
|
||||
entity: media_player.ytube_music_player
|
||||
name: 'Off'
|
||||
name: "Off"
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: homeassistant.turn_off
|
||||
@@ -332,10 +332,10 @@ cards:
|
||||
entity_id: button.black_bed_manual_tare
|
||||
layout: vertical
|
||||
# - type: custom:mushroom-template-card
|
||||
# entity: binary_sensor.white_bed_occupied
|
||||
# entity: input_boolean.white_bed_occupied
|
||||
# icon: mdi:bed
|
||||
# icon_color: >-
|
||||
# {% if(is_state('binary_sensor.white_bed_occupied','on')) %}
|
||||
# {% if(is_state('input_boolean.white_bed_occupied','on')) %}
|
||||
# yellow
|
||||
# {% elif(is_state('binary_sensor.white_bed_hx711_error','on')) %}
|
||||
# red
|
||||
@@ -411,4 +411,4 @@ cards:
|
||||
cards:
|
||||
- type: custom:mushroom-title-card
|
||||
subtitle: Cameras
|
||||
- !include /config/lovelace/cameras/view-camera-08.yaml
|
||||
- !include /config/lovelace/cameras/view-camera-08.yaml
|
||||
|
||||
Reference in New Issue
Block a user