Hello, I’m trying to display in a card only the entities that are currently drawing power, but as you can see from the screenshot, this is not working. Where is the error? Thank you everyone.
Everything is working fine. Your configuration is just incorrect for what you are trying to achieve.
Your state_filter section has two entries (two dashes): One that only specifies an operator and one that only specifies a value. As the docs state, having multiple filters is fine, but an entity will be shown as soon as one matches.
So your actual conditions are: Show entities if value is not equal to undefined/ blank string or if value is ‘0.0’.
What could be discussed is trying to provide better guidance to the user by enforcing the fact that we require a value element, since the docs state it is mandatory but the editor is not actually enforcing it.
I’ve followed the documentation, wasn’t trying to get creative…
What would be the correct way considering that I want only the entities that are not reporting a 0.0 value to show up? This way it can be consulted by someone else in my same shoes.
Lists are unordered. It makes no difference which one you put first. Your two examples result in exactly the same thing. Or they would if your indentation was correct.
Thank you for sharing this. If the device was previously turned on in the day before, the value would be > 0 right? How would we find out if the device is ‘Currently’ consuming power?
Please let me know how/if you figured that out.