thomluther / ha-anker-solix

Home Assistant integration for Anker Solix Power devices
MIT License
198 stars 5 forks source link

Does your Plugin Supprt the new Solix 2 Pro ? #60

Closed xsasx closed 1 month ago

xsasx commented 3 months ago

Checklist

Is your feature request related to a problem? Please describe.

I want to know if your plugin support the new Solix 2 Pro ?

Describe the solution you'd like

I want to know if your plugin support the new Solix 2 Pro ?

Describe alternatives you've considered

I want to know if your plugin support the new Solix 2 Pro ?

Additional context

I want to know if your plugin support the new Solix 2 Pro ?

TobTkyDev commented 1 month ago

Ok, sorry, then probably this was the reason when I saw 30s updates, because I had the App open on my mobile. Never mind.

kitokirisaki commented 1 month ago

Is there a special header the app sends for that?

Somehow they need to know its the app and not any other client so that they make the updates more frequently

thomluther commented 1 month ago

Is there a special header the app sends for that?

Somehow they need to know its the app and not any other client so that they make the updates more frequently

If someone if able to debug / reverse engineer the App communication you may find out, but the payload is typically EDHC encrypted and you have no chance to see the content. My assumption is that the App triggers frequent updates via the MQTT cloud, like it does for the Device Details real time data. But that could be wrong. If it uses an endpoint on the Api cloud, there might be a way to trigger it also by the library. If nobody is able to figure this out, its the way it is.

thomluther commented 1 month ago

Ok, sorry, then probably this was the reason when I saw 30s updates, because I had the App open on my mobile. Never mind.

Yeah, and then probably the updates are in about 3s interval (screen refresh rate of the App home screen). But I do not allow less than 30 sec Api query intervals for various reasons. But of course, on triggered data updates every 3 seconds, each Api query will provide new data...

Speedliner commented 1 month ago

@thomluther I installed version 2.0.0 of the plug-in and wondered whether there will also be switches in the future that will allow you to tell the Solarbank 2 Pro whether it should be charging or how much energy it should be feeding into the household grid, for example. So far, the options are largely limited to displaying the current values and changing the mode, could this change in the future?

thomluther commented 1 month ago

@Speedliner , I don't think there is a way to adjust how much the SB2 is charging. The only thing that can be adjusted is the usage mode (which is supported by the 2.0.0 release), and for the manual mode you can create/adjust time schedules with how much power to export to the house for defined intervals. This is something that will be supported on a future release in a couple of weeks, similar to how the SB1 output power can be adjusted (via direkt entity which adjust the current time slot in the schedule, as well as services to adjust other schedule intervals as needed).

Beside that, I don't know what other options can be changed via the Api. You can explore if there is more available with a new endpoint that still has to be explored by the community.

hypery2k commented 1 month ago

I had the issue with no update in the background also. Had to leave the app open to get updates. Also had no history in the Anker App.

The support told me to delete the device and re-add it. That helped. Everything now works.

HTH

Speedliner commented 1 month ago

@Speedliner , I don't think there is a way to adjust how much the SB2 is charging. The only thing that can be adjusted is the usage mode (which is supported by the 2.0.0 release), and for the manual mode you can create/adjust time schedules with how much power to export to the house for defined intervals. This is something that will be supported on a future release in a couple of weeks, similar to how the SB1 output power can be adjusted (via direkt entity which adjust the current time slot in the schedule, as well as services to adjust other schedule intervals as needed).

Beside that, I don't know what other options can be changed via the Api. You can explore if there is more available with a new endpoint that still has to be explored by the community.

Perhaps I have expressed myself badly - what I am actually looking for is the "System Output Preset" setting, which could at least tell Solarbank 1 how much it should currently be feeding in. I hope that I can also set this for Solarbank 2 so that I can map a zero feed-in.

thomluther commented 1 month ago

I had the issue with no update in the background also. Had to leave the app open to get updates. Also had no history in the Anker App.

The support told me to delete the device and re-add it. That helped. Everything now works.

HTH

Yeah, there seem to be a couple of people having such issues. I assume there is maybe an important configuration attribute (like timezone setting) that is synchronized and set ONLY during initial setup of the Solarbank. Since another user had a time lag of 2 hours (CET Summertime to GMT time), I assume that such time discrepancies between the Solarbank and the cloud may cause all this weird behavior (no statistics, no updates if main account not open in App etc). If for instance the timezone is just configured during initial setup (which may not be working correctly from time to time), a subset of users could be affected by it and have to do all setup steps from scratch... I think correct timezone setting is an essential part to make the solarbank work properly with the cloud. You can find a wrong timezone setup when you use the main account in the integration and query the System info via the service, or have a look to the SB data timestamp. If the last cloud timestamp is used by the Solarbank to calculate the 5 minute interval when next data to be sent, I'm not surprised that updates are not working when the cloud timestamp is completely offset from the local device time...

thomluther commented 1 month ago

Perhaps I have expressed myself badly - what I am actually looking for is the "System Output Preset" setting, which could at least tell Solarbank 1 how much it should currently be feeding in. I hope that I can also set this for Solarbank 2 so that I can map a zero feed-in.

This will come in a future release when the new SB2 schedule modifications are fully supported for individual changes as well as for services modifying the schedule...

Speedliner commented 1 month ago

Good news, glad to hear. many thanks!

thomluther commented 1 month ago

Output preset and schedule updates supported with pre release 2.0.2