tomquist / solix2mqtt

CLI tool to poll the Solix API for the latest sample data from all devices and publish them to an MQTT broker.
MIT License
28 stars 8 forks source link

Solarbank 2 reports 0 values very frequently #12

Open oemich opened 1 week ago

oemich commented 1 week ago
          @oemich Thank you for looking into this matter. Yes, that's correct – everything works perfectly with the E1600 system. The values are reliably transmitted after 60 or even after 10 seconds.

Recently, I started using the newest model, Solix E1600 Plus with an integrated inverter. Here too, the values can be queried via MQTT, but only if the Anker iPhone app is open or kept open. If you close the app, after about 3-4 minutes, only values of "0" are transmitted. Once you open the Anker app again, the transmission runs smoothly.

log file looks normal: [2024-07-01T22:24:45.946Z] {"site_id":"xxxxx"} [2024-07-01T22:24:46.058Z] Published. [2024-07-01T22:24:46.059Z] Sleeping for 9740ms... [2024-07-01T22:24:55.801Z] Fetching data [2024-07-01T22:24:55.802Z] Using cached auth data [2024-07-01T22:24:55.802Z] 0fedbd64e48d9fdeb4029a054358d74487efc932 [2024-07-01T22:24:55.802Z] {} [2024-07-01T22:24:55.854Z] {} [2024-07-01T22:24:55.892Z] {"site_id":"xxxxx"} [2024-07-01T22:24:55.965Z] Published. [2024-07-01T22:24:55.965Z] Sleeping for 9836ms... [2024-07-01T22:25:05.803Z] Fetching data [2024-07-01T22:25:05.804Z] Using cached auth data [2024-07-01T22:25:05.804Z] 0fedbd64e48d9fdeb4029a054358d74487efc932 [2024-07-01T22:25:05.805Z] {} [2024-07-01T22:25:05.876Z] {} [2024-07-01T22:25:05.937Z] {"site_id":"xxxxx"} [2024-07-01T22:25:06.031Z] Published. [2024-07-01T22:25:06.031Z] Sleeping for 9772ms... [2024-07-01T22:25:15.809Z] Fetching data [2024-07-01T22:25:15.809Z] Using cached auth data [2024-07-01T22:25:15.810Z] 0fedbd64e48d9fdeb4029a054358d74487efc932 [2024-07-01T22:25:15.810Z] {} [2024-07-01T22:25:15.873Z] {} [2024-07-01T22:25:15.937Z] {"site_id":"xxxxx"} [2024-07-01T22:25:16.021Z] Published. [2024-07-01T22:25:16.021Z] Sleeping for 9788ms...

However, I don't want to keep the Anker iPhone app open all the time to be able to read the values every minute. Is there another solution for this – or perhaps this behavior is intentional by Anker?

If you would like, I can give you access to the new system through a specially created read-only account. SvG

Originally posted by @SvG-sys in https://github.com/tomquist/solix2mqtt/issues/9#issuecomment-2201207603

oemich commented 1 week ago

Also other integrations face the same issue and are currently investigating. I seems like the new Solarbank introduces a different behaviour and the APP triggers somehow the Solarbank to more often update the data. I'll try to implement a retry similar to the one discussed in thomluther/anker-solix-api/issues/114.

SvG-sys commented 1 week ago

Thank you - I will check #144 too. SvG