Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- blueprint:
- name: Scheduled switch
- description: Trun something on and turn the same thing off later
- domain: automation
- author: bbkbarbar
- input:
- myswitch:
- name: "Thing(s) to turn on and off later"
- description: "you can select multiple switch here :)"
- selector:
- entity:
- domain:
- - switch
- multiple: true
- turn_on_time:
- name: Turn on time
- description: Time when the thing should turn on
- selector:
- time:
- default: "06:00:00"
- turn_off_time:
- name: Turn off time
- description: Time when the thing should turn off
- selector:
- time:
- default: "08:00:00"
- mode: single
- trigger:
- - platform: time
- at: !input turn_on_time
- id: Bekapcs
- - platform: time
- at: !input turn_off_time
- id: Kikapcs
- condition: []
- action:
- - if:
- - condition: trigger
- id:
- - Bekapcs
- then:
- - service: switch.turn_on
- metadata: {}
- data: {}
- target:
- entity_id: !input myswitch
- alias: Be
- - alias: Ki
- if:
- - condition: trigger
- id:
- - Kikapcs
- then:
- - service: switch.turn_off
- metadata: {}
- data: {}
- target:
- entity_id: !input myswitch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement