grzegorz914 / homebridge-enphase-envoy

Homebridge plugin for Photovoltaic Energy System manufactured by Enphase. Supported Envoy-IQ, Envoy-S and all peripheral devices.
MIT License
49 stars 9 forks source link

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

Closed eric-chamberlain-ck closed 1 month ago

eric-chamberlain-ck commented 1 year ago

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.

grzegorz914 commented 1 year ago

Not now but can be integrated in feature.

grzegorz914 commented 1 year ago

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

echamberlain commented 1 year ago

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

grzegorz914 commented 1 year ago

Enphase app with profiles

echamberlain commented 8 months ago

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

IMG_0250 IMG_0251 IMG_0252 IMG_0253

tylerbenson commented 8 months ago

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.

grzegorz914 commented 7 months ago

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

grzegorz914 commented 7 months ago

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%.

tylerbenson commented 6 months ago

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 commented 6 months ago

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.

grzegorz914 commented 1 month ago

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.

tylerbenson commented 1 month ago

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.

grzegorz914 commented 1 month ago

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

tylerbenson commented 1 month ago

Glad you were able to figure it out!

echamberlain commented 1 month ago

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