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

POST request to force discharge of battery #23

Open
chrisbeach opened this issue May 29, 2024 · 1 comment
Open

POST request to force discharge of battery #23

chrisbeach opened this issue May 29, 2024 · 1 comment

Comments

@chrisbeach
Copy link

I'd like to force my Enphase batteries to export to the grid when the export rate is high.

I notice a GET request to /ivp/sc/sched produces the following output, which contains a field Force Discharge

{'ACB_agg_energy': 0,
 'ACB_agg_soc': 0,
 'Agg Backup Energy': 0,
 'Agg VLS Energy': 500,
 'Charge From Grid Allowed': True,
 'ENC_agg_energy': 10000,
 'ENC_agg_soc': 100,
 'Force Discharge': False,
 'Num_of_acb': 0,
 'Num_of_enc': 2,
 'acb_current_mode': 1,
 'acb_debug_mode': -1,
 'agg_soc': 100,
 'max_energy': 10000,
 'sched_mode_key': ['ID - Idle',
                    'ZN - Zero Net',
                    'CG - Charge From Grid',
                    'DG - Discharge to Grid',
                    'ND - No Discharge',
                    'DL - Discharge to Load',
                    'CP - Charge From PV',
                    'HEMS Discharge',
                    'HEMS Charge']}

I have tried various forms of JSON POST request to the /ivp/sc/sched endpoint to try to set Force Discharge to True but all the requests have been rejected so far with { "err": "400 - Bad Request", "msg": "Unable to parse JSON request." }'

I'd really appreciate if someone could point me in the right direction with this. I reckon I could shave years off the payback time of my system if I could export excess energy from my battery.

@chrisbeach
Copy link
Author

Enphase recently introduced a new feature to their app to schedule a daily forced discharge of the battery.

I'd still prefer to control it from an API though...

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