mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
alias: Master Bedroom Asleep
|
||||
id: automation_master_bedroom_asleep
|
||||
initial_state: 'off'
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.pixel_7_charger_type
|
||||
to: "wireless"
|
||||
|
||||
- platform: state
|
||||
entity_id: binary_sensor.master_bedroom_person_occupancy
|
||||
to: 'on'
|
||||
for: '00:00:30'
|
||||
|
||||
- platform: state
|
||||
entity_id: binary_sensor.master_bed_occupied
|
||||
to: 'on'
|
||||
for: '00:00:05'
|
||||
|
||||
condition:
|
||||
- alias: "Adult Home"
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.kristy_home
|
||||
state: 'on'
|
||||
|
||||
- alias: "After 10:00PM and before 4:00AM"
|
||||
condition: time
|
||||
after: '21:00:00'
|
||||
before: '04:00:00'
|
||||
|
||||
- alias: "Clint's phone charging or someone on master bed"
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_charger_type
|
||||
state: 'wireless'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.master_bed_occupied
|
||||
state: 'on'
|
||||
|
||||
|
||||
- alias: "The room is currently awake"
|
||||
condition: state
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
state: 'off'
|
||||
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
|
||||
Reference in New Issue
Block a user