I am trying to set up an automation with only enables a device if it’s daily energy usage is below a certain threshold. I set up a utility meter to get the power user per day … now my issue that despite the utility meter resetting correctly and report 0 kWh used for today I can’t see to find a way to get this number into the automation. The only attributes I can call are „Last Period“ und „Last valid State“ which are both both reset to zero and still yesterdays values.
Just look in dev tools states page if you come across something like this again. The first column is the entity, the middle one is the actual state, and the last column is all the attributes.
To be honest i never considered „state“ to be an actual value, I always thought it was just the overall variable name for the entity. I know better now.