1
0

Turn off 3d printer light when timelapse is not running

This commit is contained in:
Przemek Grondek 2022-04-28 18:56:24 +02:00
parent 25d5022813
commit 8b8a6f07aa
2 changed files with 21 additions and 0 deletions

View File

@ -19,6 +19,9 @@ http:
login_attempts_threshold: 5
image:
input_boolean:
3d_printer_timelapse:
name: "3D printer timelapse"
icon: "mdi:camera-burst"
input_datetime:
input_number:
input_select:

View File

@ -25,6 +25,15 @@ good_night:
- light.hallway_lightstrip
- light.balcony
- light.table_lamp_lights
- choose:
- conditions:
- condition: state
entity_id: input_boolean.3d_printer_timelapse
state: 'off'
sequence:
- service: light.turn_off
entity_id:
- light.3d_printer_light
- service: switch.turn_off
entity_id:
- switch.printer_switch
@ -100,6 +109,15 @@ leave_home:
- light.hallway_lightstrip
- light.balcony
- light.table_lamp_lights
- choose:
- conditions:
- condition: state
entity_id: input_boolean.3d_printer_timelapse
state: 'off'
sequence:
- service: light.turn_off
entity_id:
- light.3d_printer_light
- service: switch.turn_on
entity_id:
- switch.kitchen_camera_outlet_on_off