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