homebridge-enphase-envoy icon indicating copy to clipboard operation
homebridge-enphase-envoy copied to clipboard

Is there a way to control the profile from an automation?

Open eric-chamberlain-ck opened this issue 1 year ago • 10 comments

Hello, is there a way to control the charge profile from an automation?

I want full charge mode in the morning, then self-sufficient during peak, as an example.

eric-chamberlain-ck avatar Aug 14 '23 21:08 eric-chamberlain-ck

Not now but can be integrated in feature.

grzegorz914 avatar Aug 15 '23 03:08 grzegorz914

Can you post some screenshots and profiles names how this looks in your app because I don't have battery in my system.

grzegorz914 avatar Aug 29 '23 07:08 grzegorz914

What do you want screenshots of? Enphase app or homebridge logs?

echamberlain avatar Aug 29 '23 22:08 echamberlain

Enphase app with profiles

grzegorz914 avatar Aug 30 '23 03:08 grzegorz914

Sorry for the delay. Here's what the app screenshots look like:

IMG_0250 IMG_0251 IMG_0252 IMG_0253

echamberlain avatar Jan 15 '24 21:01 echamberlain

A while ago I created a separate plugin to do this via the cloud api endpoints, but would rather do it via local endpoints using this plugin.

https://github.com/tylerbenson/homebridge-enphase-battery#readme

I'm not great at Javascript, but let me know if I can help.

tylerbenson avatar Jan 20 '24 17:01 tylerbenson

I will start to add this possibility but I will need some one for test because I do not have encharges.

grzegorz914 avatar Feb 11 '24 08:02 grzegorz914

Can you post 3 debugs logs, one with Full Bakup enabled , one with Savings and Reserve 30% and one wit Self Consumption and Reserve 75%.

grzegorz914 avatar Feb 11 '24 09:02 grzegorz914

I think the best way to have this work with homebridge is to have a toggle that changes the profile to full backup when enabled and back to one of the other options when disabled. In my plugin I implemented it as changing the reserve, but I've run into problems where it doesn't seem to work reliably.

tylerbenson avatar Feb 27 '24 22:02 tylerbenson

I ended up refactoring my plugin to switch profiles instead of adjusting the reserve amount. I think it's working better now. The main problem with my approach is I'm calling Enphase's web API, not communicating directly with the local hardware, so if you can implement it your solution would be superior.

tylerbenson avatar Mar 05 '24 19:03 tylerbenson

Right now I don't see possibility to control encharge profile over local api, if I found solution then will be added in future release. Technically is possible to read and control this data from Web API but I don want to mix this in current app. I will look into this in future.

grzegorz914 avatar Aug 08 '24 08:08 grzegorz914

I ended up switching over to home assistant. The enphase integration there does allow for profile switching and I believe it is all local. Might be worth looking at their code for comparison.

tylerbenson avatar Aug 08 '24 16:08 tylerbenson

testing in v9.0.0, please post result and problems here #144

grzegorz914 avatar Aug 09 '24 13:08 grzegorz914

Glad you were able to figure it out!

tylerbenson avatar Aug 10 '24 20:08 tylerbenson

Thanks. I'll test it out when I get back from traveling.

echamberlain avatar Aug 11 '24 01:08 echamberlain