Fix 3D Printer automations
This commit is contained in:
parent
98660e33ab
commit
df41af6dd1
1 changed files with 12 additions and 9 deletions
|
@ -18,9 +18,10 @@
|
|||
state: 'off'
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.3d_printer_switch
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.3d_printer_enclosure_fan_on_off
|
||||
target:
|
||||
entity_id:
|
||||
- switch.3d_printer
|
||||
- switch.3d_printer_enclosure_fan_on_off
|
||||
- service: light.turn_off
|
||||
entity_id: light.3d_printer_light
|
||||
|
||||
|
@ -29,7 +30,7 @@
|
|||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: switch.3d_printer_switch
|
||||
entity_id: switch.3d_printer
|
||||
to: 'on'
|
||||
for: '00:00:05'
|
||||
action:
|
||||
|
@ -60,17 +61,17 @@
|
|||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: switch.3d_printer_switch
|
||||
entity_id: switch.3d_printer
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.3d_printer_switch
|
||||
entity_id: switch.3d_printer
|
||||
- service: light.turn_on
|
||||
entity_id: light.3d_printer_light
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: switch.3d_printer_switch
|
||||
entity_id: switch.3d_printer
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.octoprint_printing
|
||||
|
@ -81,7 +82,9 @@
|
|||
sequence:
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.3d_printer_switch
|
||||
entity_id:
|
||||
- switch.3d_printer
|
||||
- switch.3d_printer_enclosure_fan_on_off
|
||||
- service: light.turn_off
|
||||
entity_id: light.3d_printer_light
|
||||
|
||||
|
@ -96,7 +99,7 @@
|
|||
- service: switch.turn_on
|
||||
target:
|
||||
entity_id:
|
||||
- switch.3d_printer_switch
|
||||
- switch.3d_printer
|
||||
- switch.3d_printer_enclosure_fan_on_off
|
||||
- service: light.turn_off
|
||||
entity_id: light.3d_printer_light
|
||||
|
|
Loading…
Reference in a new issue