mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
4e0e55ac3c
- 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.
70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
alias: 'Master Bedroom Not Occupied'
|
|
id: automation_master_bedroom_not_occupied
|
|
mode: restart
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.home_occupied
|
|
from: 'on'
|
|
to: 'off'
|
|
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.home_occupied
|
|
- binary_sensor.master_bedroom_occupied
|
|
to: 'off'
|
|
for: '00:05:00'
|
|
|
|
# - platform: time_pattern
|
|
# minutes: "/5"
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
entity_id: input_boolean.lights_off_manually
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id:
|
|
- input_boolean.master_bed_occupied
|
|
state:
|
|
- 'off'
|
|
- 'unavailable'
|
|
|
|
- condition: state
|
|
entity_id: input_boolean.master_bedroom_occupied
|
|
state: 'on'
|
|
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_occupied
|
|
state: 'off'
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.master_bedroom_person_occupancy
|
|
state: 'off'
|
|
for:
|
|
minutes: 5
|
|
- condition: state
|
|
entity_id: binary_sensor.master_bedroom_occupied
|
|
state: 'off'
|
|
for:
|
|
minutes: 5
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.home_occupied
|
|
state: 'off'
|
|
sequence:
|
|
- service: homeassistant.turn_off
|
|
entity_id: input_boolean.master_bedroom_occupied
|
|
- conditions:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_select.house
|
|
state: 'Manual'
|
|
sequence:
|
|
- service: homeassistant.turn_off
|
|
entity_id: input_boolean.master_bedroom_occupied |