You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Home-AssistantConfig/automation/ifttt_printer.yaml

27 lines
658 B

###################################
## Turn on/off Printer via ALexa/IFTTT event. Turn off automatically after 20 minutes
###################################
- alias: 'IFTTT Turn Printer on'
trigger:
- platform: event
event_type: printer_on
action:
- service: switch.turn_on
entity_id: switch.printer_outlet
- delay: 00:20:00
- service: switch.turn_off
entity_id: switch.printer_outlet
- alias: 'IFTTT Turn Printer off'
trigger:
- platform: event
event_type: printer_off
action:
- service: switch.turn_off
entity_id: switch.printer_outlet

Powered by TurnKey Linux.