I want to turn off my 3d printer 20 minutes after a print has stopped, but not if I start a new print.
description: ""
triggers:
- type: turned_off
device_id:
entity_id:
domain: binary_sensor
trigger: device
for:
hours: 0
minutes: 20
seconds: 0
conditions:
- condition: not
conditions:
- type: is_on
condition: device
device_id:
entity_id:
domain: binary_sensor
actions:
- type: turn_off
device_id:
entity_id:
domain: light
mode: single
this is what it looks like now. Is this mode correct?