dingo35 / ha-SmartEVSEv3

Integrate SmartEVSEv3 with HomeAssistant through custom component
13 stars 8 forks source link

More controls, particularly smartevse_override_current #11

Closed calamarain closed 1 year ago

calamarain commented 1 year ago

Would it be possible to add more Home Assistant controls? According to the Serkri documentation, 11 POST attributes are available in the REST API. Particularly override_current, the maximum available current, would be useful to control from Home Assistant , for instance based on the available solar power, or the power used by other devices connected to the mains.

dingo35 commented 1 year ago

Currently override_ current is only usable in Normal Mode. So this would not only concern the integration, but would need big changes in the core of SmartEVSE firmware.

That firmware regulates the current dynamically on the mains (taking into account other power users) in Smart Mode, or the available power when generating with solar panels (in Solar Mode). You wouldnt need HomeAssistant to do that... Why wouldnt you use those modes?

calamarain commented 1 year ago

I don't understand the problem with making override_current writable in any mode, even if it only has an effect in Normal Mode. That's also how the GUI works.

image

As I understand it, additional hardware is required to measure mains and solar power directly. But I have that information available in Home Assistant already. Or am I missing something?

dingo35 commented 1 year ago

You can feed your HA MainsMeter info into the SmartEVSEv3 via the REST API: https://swagger-ui.serkri.be/

Just configure your MainsMeter to EM_API.

calamarain commented 1 year ago

Thanks. I don't understand though why using the REST API directely is preferable to using a Home Assitant control?

dingo35 commented 1 year ago

If you test the latest main branch you will find a slider that will set override_current in Normal Mode.

calamarain commented 1 year ago

Thanks!