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

Add "Zero Export" for ECU-C devices? #273

Open
hautamik opened this issue Oct 6, 2024 · 0 comments
Open

Add "Zero Export" for ECU-C devices? #273

hautamik opened this issue Oct 6, 2024 · 0 comments

Comments

@hautamik
Copy link

hautamik commented Oct 6, 2024

I have recently installed solar panel system using APSystems' ECU-C. Most of my smallish home automation is done with Node Red, but I'm keen to start using Home Assistant. I found this ECU-related component which seems to be usable with my system, but I am hoping I could use HA to set my ECU-C's Zero Export when electricity price goes below zero.

Unfortunately my experience in programming dates from 1980's coding (in COBOL), so I'm not easily able to fork and start adding my own code. I was able to find out that ECU-C can be controlled with certain URL and HTTP POST method to set and unset Zero Export.

Using curl:

curl --location 'http://[ECU-C IP ADDRESS]/index.php/meter/set_meter_display_funcs' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'meter_func=1' \
--data-urlencode 'this_func=1' \
--data-urlencode 'power_limit=0'

'meter_func=1' sets Zero Export on, and 'meter_func=0' sets it off. Power_limit takes the power in Watts, so to restrict outbound energy to 1 kW, one should 'use power_limit=1000'.

From the web page source I could find out that 0 (zero) as response means success. I guess some other response is a failure.

Does this make any sense, could it be possible to implement this feature with given information?

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

1 participant