I’m creating a blueprint to trigger when a brightness level matches the blueprint number selector
level: name: Trigger level description: Brightness of the light to trigger automation default: 0 selector: number: min: 0.0 max: 100.0 mode: box step: 1.0
Im using this in a condition
condition: condition: state entity_id: !input "vbulb" attribute: brightness state: !input "level"
Its not working when I checked the automation
- id: '1608393746645' alias: Alexa description: '' use_blueprint: path: homeassistant/alexa_blueprint.yaml input: level: '20' vbulb: light.alexa_virtual
The number selector (level) is text , if i remove the quotes ’ the blueprint works. If this correct ? should a number selector be saved as text ? If so how can I convert the text to a number so my condition works