Hi. I am trying to check if a light is on or off in a blueprint using !input
This code dont word, think the problem is:
entity_id: !input “light”
- choose:
- conditions:
- condition: state
entity_id: !input "light"
state: "off"
sequence:
- service: light.turn_on
data: {}
target: !input "light"
- conditions:
- condition: state
entity_id: !input "light"
state: "on"
sequence:
- service: light.turn_off
data: {}
target: !input "light"