Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: coffee
- description: ''
- mode: single
- trigger:
- - platform: time
- at: input_datetime.coffee_start
- - platform: time
- at: input_datetime.coffee_end
- condition:
- - condition: state
- entity_id: input_boolean.coffee_holiday
- state: 'off'
- action:
- - service: >-
- switch.turn_{{ 'on' if trigger.entity_id == 'input_datetime.coffee_start'
- else 'off' }}
- entity_id: switch.coffee
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement