Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose total grid production/consumption metrics #6

Open
wez opened this issue Sep 13, 2022 · 1 comment
Open

expose total grid production/consumption metrics #6

wez opened this issue Sep 13, 2022 · 1 comment

Comments

@wez
Copy link
Contributor

wez commented Sep 13, 2022

This data from /api/v1/panel seems like it would be good to expose as metrics that can be added to the energy dashboard for the grid consumption/return data:

{
  "mainRelayState": "CLOSED",
  "mainMeterEnergy": {
    "producedEnergyWh": 1172289.71875,
    "consumedEnergyWh": 860971.75
  },
  "instantGridPowerW": 1356.5203857421875,
  "feedthroughPowerW": 12.474345903843641,
  "feedthroughEnergy": {
    "producedEnergyWh": 6476087.607055664,
    "consumedEnergyWh": -7705796.045922002
  },

I think mainMeterEnergy.consumedEnergyWh is the grid consumption, while feedthroughEnergy.producedEnergyWh is the return.

I am running "firmwareVersion":"spanos2/r202223/04"

What do you think?

wez added a commit to wez/span-hacs that referenced this issue Sep 16, 2022
@tylas13
Copy link

tylas13 commented Sep 19, 2022

I have just added mainMeterEnergy.consumedEnergyWh and feedthroughEnergy.producedEnergyWh as the return on my Energy tab. I'll track over the next few days and see if they correlate with my other energy readings and report back.

Thanks wen for the update, so far everything is singing like it should!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants