A whole bunch of cleanup

This commit is contained in:
CeeWeasel
2025-02-10 15:08:18 -05:00
parent 4ee29d9a17
commit ad03f34254
78 changed files with 230 additions and 149 deletions
+42 -15
View File
@@ -15,16 +15,16 @@ trigger:
entity_id: binary_sensor.front_porch_motion, binary_sensor.front_porch_person_occupancy
to: "off"
for:
minutes: 1
minutes: 5
- platform: state
id: door_open
entity_id: binary_sensor.outer_garage_door, binary_sensor.garage_door
entity_id: binary_sensor.outer_garage_door, binary_sensor.garage_door, binary_sensor.outer_garage_door_contact
to: "on"
- platform: state
id: door_shut
entity_id: binary_sensor.outer_garage_door
entity_id: binary_sensor.outer_garage_door, binary_sensor.outer_garage_door_contact
to: "off"
for:
minutes: 1
@@ -40,17 +40,17 @@ trigger:
to: "on"
condition:
- condition: or
conditions:
- alias: "Front porch not naturally lit"
condition: state
entity_id: binary_sensor.front_porch_naturally_lit
state: 'off'
# - condition: or
# conditions:
# - alias: "Front porch not naturally lit"
# condition: state
# entity_id: binary_sensor.front_porch_naturally_lit
# state: 'off'
- alias: "Light is already on"
condition: state
entity_id: light.front_porch_overhead
state: 'on'
# - alias: "Light is already off"
# condition: state
# entity_id: light.front_porch_overhead
# state: 'off'
- alias: "It is not late evening"
condition: state
@@ -72,6 +72,11 @@ action:
entity_id: light.front_porch_overhead
state: 'off'
- alias: "Front porch not naturally lit"
condition: state
entity_id: binary_sensor.front_porch_naturally_lit
state: 'off'
sequence:
- service: light.turn_on
target:
@@ -85,20 +90,42 @@ action:
entity_id: light.front_porch_overhead
state: 'off'
- alias: "Front porch not naturally lit"
condition: state
entity_id: binary_sensor.front_porch_naturally_lit
state: 'off'
sequence:
- service: light.turn_on
target:
entity_id: light.front_porch_overhead
- conditions:
- condition: trigger
id: "too_bright"
- condition: state
entity_id: light.front_porch_overhead
state: 'on'
sequence:
- service: light.turn_off
target:
entity_id: light.front_porch_overhead
- conditions:
- condition: state
entity_id: binary_sensor.front_porch_motion
state: "off"
for:
minutes: 1
minutes: 5
# - condition: state
# entity_id: binary_sensor.outer_garage_door
# state: 'off'
- condition: state
entity_id: binary_sensor.outer_garage_door
entity_id: binary_sensor.outer_garage_door_contact
state: 'off'
- condition: state