Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Cancer Lamp
- description: ""
- trigger:
- - platform: state
- entity_id:
- - schedule.cancer_lamp
- condition:
- - condition: template
- value_template: "{{ trigger.to_state.state in ['on', 'off'] }}"
- action:
- - service: switch.turn_{{ trigger.to_state.state }}
- target:
- entity_id: switch.outlet_13_switch
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement