Hi Edwin
Yes, added it and everything is working fine - all the sensors pick up the right data and the controls for Use Mode and Discharge Mode selection are present. Thanks very much for providing such a great app. Right now I continue to use your app alongside the other Modbus app I have been using because I need to convert all my flows. Once that is done your app will become the only one I use.
I stress again, there is absolutely no fundamental problem with the integration. However, in the last two years, Solax has added new Use Modes called Time of Use (TOU) and Peak Shaving.
This is what the Use Mode control shows me in Homey: (use the ⯈ to show the image)
As you can see Time of Use and Peak Shaving are both absent from the list. This means that if I use the Use Mode control in Homey to select a different Use Mode, the only way to get back to Time of Use is by using the Solax web interface (or the Inverter’s front panel controls).
As a note. When I first installed the app and displayed the Use Mode control, the “selection cursor” was not positioned in the list at all. Once I moved it with cursor keys (or mouse), it “entered” the list on Self Use Mode. I guess this was a symptom of the fact that the inverter was in TOU mode, but this is not available as a value to select in the list of available options, so Homey did the best it could in positioning the selection cursor.
You commented in a previous post that you had version 3.21 of the Modbus documentation. The TOU feature was first documented in version 3.29 (Peak Shaving in 3.23). I previously shared version 3.34 that I obtained direct from Solax - it documents both the new modes.
Version 3.34 documents SolarChargerUseMode as follows: (use the ⯈ to show the image)
ReadHoldingRegister:
WriteSingleRegister:
solarcharger_use_mode capability - from your git repository
I guess this is the core of the change that will be needed… I am happy to clone the repository make a change and test it if that would be helpful to you.
.homeycompose/capabilities/solarcharger_use_mode.json
{
"type": "enum",
"title": {
"en": "Use mode"
},
"getable": true,
"setable": true,
"uiComponent": "picker",
"uiQuickAction": false,
"values": [
{
"id": "0",
"title": {
"en": "Self use mode"
}
},
{
"id": "1",
"title": {
"en": "Feedin Priority"
}
},
{
"id": "2",
"title": {
"en": "Back up mode"
}
},
{
"id": "3",
"title": {
"en": "Manual mode"
}
}
]
}
I hope this clarifies my previous comments.