22 lines
562 B
YAML
22 lines
562 B
YAML
# This is a normal automtion. Just change the enitiy of the Smart Plug for the printer and the the delay, Home Assistant waits,
|
|
# until it sends the connect command to Octo Print over the API
|
|
|
|
alias: OctoPrinterConnect
|
|
description: ""
|
|
triggers:
|
|
- type: changed_states
|
|
device_id: b4c1dcda2235312fd75b1163d4f7e208
|
|
entity_id: 757b7b6ac5a088d13d6019232e80c95d
|
|
domain: switch
|
|
trigger: device
|
|
conditions: []
|
|
actions:
|
|
- delay:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 5
|
|
- action: rest_command.octoprint_connect
|
|
data: {}
|
|
mode: single
|
|
|