Advertisement
JLindvig

Coffee_Swirch

Oct 25th, 2021
1,235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.41 KB | None | 0 0
  1. alias: coffee
  2. description: ''
  3. mode: single
  4. trigger:
  5.   - platform: time
  6.     at: input_datetime.coffee_start
  7.   - platform: time
  8.     at: input_datetime.coffee_end
  9. condition:
  10.   - condition: state
  11.     entity_id: input_boolean.coffee_holiday
  12.     state: 'off'
  13. action:
  14.   - service: >-
  15.       switch.turn_{{ 'on' if trigger.entity_id == 'input_datetime.coffee_start'
  16.       else 'off' }}
  17.     entity_id: switch.coffee
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement