Files
2026-08-10 19:42:19 +00:00

30 lines
951 B
YAML

light_control_hall:
module: lightcontrol_hall
class: LightControlHall
motion_sensors:
- binary_sensor.motion_hall_1_occupancy
- binary_sensor.motion_hall_2_occupancy
door_sensors:
- binary_sensor.door_locker_hall_right_contact
- binary_sensor.door_locker_hall_left_contact
- binary_sensor.door_locker2_hall_left_contact
- binary_sensor.door_locker2_hall_right_contact
control_entity: light.light_hall_long
timeout: 120
constraint: input_boolean.locker_light_control
global_dependencies:
- globals
light_control_hall_small:
module: lightcontrol_hall
class: LightControlHall
motion_sensors:
- binary_sensor.motion_hall_small_occupancy
door_sensors:
- binary_sensor.door_locker3_hall_left_contact
- binary_sensor.door_locker3_hall_right_contact
control_entity: light.light_hall_small
timeout: 120
constraint: input_boolean.locker_light_control
global_dependencies:
- globals