I finally purchased my power monitor, created a RESTful sensor to get the data and parsed it into the individual values with templates.
You can imagine my disappointment when the values don’t show up in the integrated energy monitoring. I obviously made a series of assumptions here but WTH!!!.
Sensors for energy monitoring require “state_class: measurement” so they will be retained long term.
I see this as a limitation to adding devices into energy monitoring and hope it can be rectified. I’m currently having to use the integral to sum my consumption and some history graphs.
I hope we’ll eventually see an integration for it. [Eyedro, I selected it because they are local]
Thanks, the progress with HA is amazing, I suspect I’ll have to just start fresh. Between all the bluetooth updates and general improvement I have a crap ton of work to do to get caught back up!!
Be aware, unless it has changed, refactoring legacy format template sensors to the new format raises some issues with entity naming. You’ll get new entities with template_* in the name.
(To me this should be a WTH itself. but maybe I’m out of date.)
The “issue” only arises when you want a different name for your entity_id and name. If you omit the name, it uses the unique_id to create the entity_id.
You only wind up with template_ when you only specify a unique_id. The entity_id is first taken from name, and as a backup, it’s taken from unqiue_id with template_ appended to the front. There’s nothing else to the rule. This is actually how all integrations (non-platform) that provide both name and unique_id handle the entity_id.