I want to start the automation if the blinds have a special position, i.e. below 50%.
At present I have problems with the below code: condition entity_id: cover.storeroom
There is no action if the blinds is below 50%
How can I solve this issue, has anybody some ideas?
What is the state of cover.storeroom when the blinds are below 50%? Specifically, what is shown for that entity on the STATES tab of the Developer Tools page?
You haven’t answered my question. I suspect the state is not “15%”, but probably open, and there is an attribute (such as current_position) that indicates the percentage it is open.
Please find the state (including attributes) for the entity on the STATES tab of the Developer Tools page and report back what you find.
I can’t help if you won’t provide the details I’m asking for. I’m pretty sure I know why your automation isn’t working, and how to fix it, but I need these details.
Have you gone to the STATES tab of the Developer Tools page? If you can’t find that page then you probably need to turn on Advanced Mode.
Ok, thank you. That is what I needed (although you only showed the values from the attributes column.) It confirms what I suspected.
The state of the entity is not 15, or even 15%. Although you didn’t say what you saw in the State column, I’m guessing it is as I said before, i.e., open.
You’re using a numeric_state condition in your automation. So it is trying to interpret the state – i.e., open – as a number, which it is not. Therefore the condition is always false.
You need to use the current_position attribute instead. The way you do that is: