The API doesn't currently expose the ability to change the charge or discharge rate.
I'd like to be able to change these on demand.
There are two ways that we could go about this:
start* endpoints to accept a rate in the post bodyThe second way would allow independent changes, but would usually mean 2 API calls (which by extension means Soliscloud has to set registers twice).
I think the answer is probably to implement both
Activity
02-Jan-25 09:01
assigned to @btasker
02-Jan-25 09:01
mentioned in issue solar#38
02-Jan-25 12:11
mentioned in commit 53a0a80a3e86e33b4e0221b4bd0f99f4c90f86d4
Commit: 53a0a80a3e86e33b4e0221b4bd0f99f4c90f86d4 Author: B Tasker Date: 2025-01-02T12:10:14.000+00:00Message
feat: allow custom charge rates to be set (misc/soliscloud-inverter-control#9)
This allows new charge and discharge rates to be provided when triggering an immediate start or stop
02-Jan-25 12:14
The following functions now accept an optional argument
ratesimmediateStart()immediateStop()startCharge()stopCharge()startDischarge()stopDischarge()When supplied,
ratesis a dict which contains one or both ofcharge_currentanddischarge_currentThe
stop*functions support it so that current settings can be changed back if they were boosted when callingimmedateStart()02-Jan-25 12:45
mentioned in commit cd72add228c566841770a5fc8260ef61cf6df12b
Commit: cd72add228c566841770a5fc8260ef61cf6df12b Author: B Tasker Date: 2025-01-02T12:22:35.000+00:00Message
feat: control_server now allows rates to be set (misc/soliscloud-inverter-control#9)
02-Jan-25 12:45
mentioned in commit 33aa4f4fe42dd70cf94a0db49cae3140c915a9b1
Commit: 33aa4f4fe42dd70cf94a0db49cae3140c915a9b1 Author: B Tasker Date: 2025-01-02T12:45:35.000+00:00Message
feat: start/stop end points can accept charge rates (misc/soliscloud-inverter-control#9)
02-Jan-25 12:47
The start/stop endpoints can now accept charge and discharge rates.
This ticket can't be closed yet though, we also need to give the control server and API endpoint to only change the rate (so that rates can be put back without interrupting charging).
02-Jan-25 13:53
mentioned in commit a4acb63d70ed8e5b16988c51a75594fca2e1c4da
Commit: a4acb63d70ed8e5b16988c51a75594fca2e1c4da Author: B Tasker Date: 2025-01-02T13:53:09.000+00:00Message
feat: new endpoint to set current without changing timings (misc/soliscloud-inverter-control#9)
02-Jan-25 13:55
The commit above adds an API endpoint to the control server:
/api/v1/setCurrentThis accepts a JSON payload
In order to support this, the python library also has a new method
ratesis a dict:The function will read configuration from the inverter, overlay the provided currents and post back.
02-Jan-25 13:56
mentioned in issue solar#40