1
0
ansible-home-assistant/automations/files/3d-printer.yaml

24 lines
537 B
YAML

- id: 3dprinter-off
alias: '[3D Printer] Turn off'
description: ''
mode: single
trigger:
- type: value
platform: device
device_id: 58e9b8fc848631004a3c1e303ff25229
entity_id: sensor.3d_printer_power
domain: sensor
below: 10
for:
hours: 0
minutes: 30
seconds: 0
condition:
- condition: state
entity_id: binary_sensor.octoprint_printing
state: 'off'
action:
- service: switch.turn_off
data: { }
entity_id: switch.3d_printer_switch