Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- automation:
- - alias: 'kitchen plug'
- initial_state: 'on'
- trigger:
- platform: state
- entity_id: light.kaffe
- to: 'on'
- action:
- - service: script.turn_on
- entity_id: script.coffee_on
- script:
- coffee_on:
- sequence:
- - service: light.turn_on
- data:
- entity_id: light.kaffe
- - service: timer.start
- data:
- entity_id: timer.timer_perka
- timer:
- timer_perka:
- duration: '00:35:00'
- automation:
- - alias: Turn off perkulator at end of timer
- initial_state: 'on'
- trigger:
- - platform: event
- event_type: timer.finished
- event_data:
- entity_id: timer.timer_perka
- action:
- - service: script.turn_on
- entity_id: script.coffee_off
- - delay:
- seconds: 2
- - service: script.turn_on
- entity_id: script.coffeedone
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement