RE: Support for new Home Assistant Energy Managment and Stats #16 #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Makes sensors for Daily Usage KWH, Daily Received KWH, and Daily Delivered KWH hours in correct format (Class=Total + Energy) to use in energy dashboard. Added last_reset where not set. Not 100% certain if it works properly. My HA seems to add daily received and daily delivered each hour instead of each day. So, it skews my energy usage by several multiples.
I am attempting to use a utility meter helper with the daily received/delivered KWH. Created one for each. Looks promising. Energy dashboard sees it.
Also makes Net Received KWH and Net Delivered KWH usable to the energy dashboard also. These appear only to be updated monthly. Not sure how useful these will be.
EDIT:
The meter helpers do not work. There seems to be a short period when the data is being updated from FPL (each poll) that the values become unvavailable. This appears to cause the meter to add the value to previous when it is updated. Instead calcuating receieved/delivered at 10x or more of the actual usage.