solis-sensor: Cant get the plugin to work.

Hello,

First thank you to everybody working on this!! And second Sorry if this is not the place to ask questions. (I’m new to Github and HA) I have a Solis S6 3600 inverter and want to add it to my home Assistant. I installed this sensor trough HACS as mentioned in the readme and added the lines to the configuration.yaml but no sensor shows. In the log i get this: 2022-05-02 09:42:51 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration solis which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-05-02 09:42:55 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548264696608] Received invalid command: energy/info 2022-05-02 09:42:55 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548264696608] Received invalid command: energy/info 2022-05-02 09:42:55 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548264696608] Received invalid command: energy/info 2022-05-02 09:42:59 INFO (MainThread) [custom_components.solis.sensor] Scheduling discovery 2022-05-02 09:42:59 DEBUG (MainThread) [custom_components.solis.service] Scheduling discovery in 1 seconds. 2022-05-02 09:43:07 INFO (MainThread) [custom_components.solis.ginlong_api] Login Successful! 2022-05-02 09:43:09 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/solis/service.py", line 98, in async_discover capabilities = await self._do_discover() File "/config/custom_components/solis/service.py", line 109, in _do_discover if await self._login(): File "/config/custom_components/solis/service.py", line 87, in _login if await self._api.login(async_get_clientsession(self._hass)): File "/config/custom_components/solis/ginlong_api.py", line 207, in login self._inverter_list = await self.fetch_inverter_list( File "/config/custom_components/solis/ginlong_api.py", line 246, in fetch_inverter_list for record in result_json['result']['paginationAjax']['data']: TypeError: string indices must be integers

I tried to make the portal_plant_id integer, but still no sensor showing. Am I missing something? from: portal_plant_id: "1234567" TO portal_plant_id: 1234567 I can login to https://m.ginlong.com/main.html with my email and password and I use them in the configuration.yaml to.

My configuration.yaml: (the / is not in the script but to exclude the form making it a dot) sensor: /- platform: solis name: "Solis Inverter" portal_domain: "m.ginlong.com" portal_username: "*********@gmail.com" portal_password: "********" portal_plant_id: 1234567

Any help is very appreciated!! thank you

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 29 (13 by maintainers)

Most upvoted comments

It is giving a value now: i read on the app 10,3 for today. the first meter is a other plugin that reads the local webpage on the solis inverter. the second is your plugin today meter, and the last is your total meter. image

Ill let is settle in and report back in a day or two! Many thanks for your help

🤣. No worries. These kind of issues happen and only make in the end for a more robust integration. I’ll add some more improvements to provide better hints in the logging.

@Dduck112 maybe good too check your plant id once more using the info above. If you don’t plan on using my integration anymore then I’ll close the issue.