initial commit

This commit is contained in:
2025-02-07 12:46:24 -05:00
commit 8dfb36a3f1
183 changed files with 9212 additions and 0 deletions

View File

@ -0,0 +1,54 @@
---
####################################################################################################
### AISLE LIGHTS ###############################################################################
####################################################################################################
- alias: '[Aisle] Night Lights On'
initial_state: 'true'
trigger:
platform: state
entity_id:
- binary_sensor.presence_stairwell_sensor_1
from: 'off'
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: light.aisle_ceiling_all
state: 'off'
- condition: or
conditions:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: template
value_template: '{{ ( states.sensor.presence_stairwell_light_level.state | int ) < ( states.input_number.app_light_light_lux_mininum.state | int ) }}'
action:
- service: light.turn_on
entity_id:
- light.aisle_ceiling_all
data_template:
rgb_color: [51, 46, 255]
brightness: 20
transition: "{{ states.input_number.app_light_light_transition_time.state | int }}"
- alias: '[Aisle] Night Lights Off'
initial_state: 'true'
trigger:
platform: state
entity_id:
- binary_sensor.presence_stairwell_sensor_1
from: 'on'
to: 'off'
for:
seconds: 5
condition:
condition: state
entity_id: light.aisle_ceiling_all
state: 'on'
action:
- service: light.turn_off
entity_id:
- light.aisle_ceiling_all
data_template:
transition: "{{ states.input_number.app_light_light_transition_time.state | int }}"