Enphase Solar monitoring

Assuming you're logged in, then consumption is via

https://{device ip}/api/v1/consumption
ex:

{
  "wattHoursToday": 0,
  "wattHoursSevenDays": 89059,
  "wattHoursLifetime": 51313,
  "wattsNow": 1092
}

Perhaps @vpsupun could add it to the production driver?

Edit There's also /api/v1/energy:

[
  {
    "type": "Production",
    "wattHoursToday": 2758,
    "wattHoursSevenDays": 55803,
    "wattHoursLifetime": 58561,
    "wattsNow": 0
  },
  {
    "type": "Consumption",
    "wattHoursToday": 0,
    "wattHoursSevenDays": 89059,
    "wattHoursLifetime": 51367,
    "wattsNow": 683
  }
]

Sure thing.
Thanks a lot for the suggestion. I'll add it as a new driver ( to avoid overlapping the variable names ).

1 Like

Any chance you can use this to poll the status of what the Enphase system is pulling from?

I'm hoping that there is a way we can poll the Envoy S, to know if we are running on grid, off grid, on battery or etc or battery charge level.

Then I could set a rules engine to do something, IE, if running on Battery with Grid Down, set Ecobee Temp to 78 Degree's. If battery charge level is below 15% turn Ecobee's off.

This token based driver has been great. I was wondering if anyone with more coding knowledge than me would be able to update the app that nh.schottfam made with the new token based driver so that we could get some cool production graphs out of it.

Thanks again for your expertise.

1 Like

I've been using vpsupun's driver with the hubigraphs app to get graphs. Setting up the graphs is a bit painful and it's not nearly as pretty as the other app, but it does work.

Is there any way to adjust the driver to not show the consumption down to the decimal point i'm using hd+ and the consumption output is like 621.123468468549846984984 i would it to just stop at the decimal point like just 621 which is what you see when you log into the enphase envoy-s

Screenshot 2023-10-08 183825

Screenshot 2023-10-08 184025

which driver are you using? and what attribute?

the driver from post 60 from spratz84

attribute = current_ACT_consumption

thank you in advance for any help you can give

Hello everyone, Iยดm trying to update my driver with the provided code, but I get an error:

Any help?

that code appears to be the application for creating a graph (so it is not a driver).