Morluktom / ioBroker.lg-ess-home

IoBroker Adapter for LG-ESS Hybrid Inverter
MIT License
6 stars 2 forks source link

Adpater stays "yellow" #1

Closed fu-zhou closed 3 years ago

fu-zhou commented 3 years ago

Hi and thanks for the adapter. I immediatly tried it this morning, installed it through Github and got it. After setting IP and password, the adpater still doesn't turn green and doesn't provide any objects besides "TestVariable". The Log says:

lg-ess-home.0 | 2020-12-06 09:56:23.079 | info | (24306) state lg-ess-home.0.testVariable deleted
-- | -- | -- | --
lg-ess-home.0 | 2020-12-06 09:55:53.167 | info | (24306) check group user admin group admin: false
lg-ess-home.0 | 2020-12-06 09:55:53.163 | info | (24306) check user admin pw iobroker: true
lg-ess-home.0 | 2020-12-06 09:55:53.067 | info | (24306) state lg-ess-home.0.testVariable changed: true (ack = true)
lg-ess-home.0 | 2020-12-06 09:55:53.021 | info | (24306) state lg-ess-home.0.testVariable changed: true (ack = true)
lg-ess-home.0 | 2020-12-06 09:55:53.014 | info | (24306) state lg-ess-home.0.testVariable changed: true (ack = false)
lg-ess-home.0 | 2020-12-06 09:55:52.952 | info | (24306) config password: d84.........
lg-ess-home.0 | 2020-12-06 09:55:52.952 | info | (24306) config ipadress: 192.168.....
lg-ess-home.0 | 2020-12-06 09:55:52.935 | info | (24306) starting. Version 0.0.1 in /opt/iobroker/node_modules/iobroker.lg-ess-home, node: v12.20.0, js-controller: 3.1.6

What did I miss?

Second question: how short is "das kurze Intervall der String-Daten" and what are the "String-Daten". I'm currently running pyess with mqtt an there are two sections: "common" and "home" where I update "home" every two seconds and "common" every 10 seconds.

Thanks again, I'm always ready to test!

Morluktom commented 3 years ago

Please switch logging to debug. And post this Logfile. If you check the Checkbox "common" is updated in the Intervall you have set. If not it will be updated every 15 Minutes. Sorry the test variable i forgot to delete from the template Is a second update Intervall to set better?

fu-zhou commented 3 years ago

Okay, I turned the log to debugging and restarted the adapter. Here's the result, filtered on "lg-ess-home.0"

lg-ess-home.0   2020-12-06 15:03:10.275 info    (113746) state lg-ess-home.0.testVariable deleted
lg-ess-home.0   2020-12-06 15:02:46.489 debug   (113746) system.adapter.admin.0: logging true
lg-ess-home.0   2020-12-06 15:02:40.514 debug   (113746) Response from ESS: "{\n \"status\": \"success\",\n \"auth_key\": \"b3d08ec0-37cb-11eb-96e8-d84fb8020bed\",\n \"regnum\": \"DE2001...\",\n \"role\": \"user\"\n}\n"
lg-ess-home.0   2020-12-06 15:02:40.512 debug   (113746) Response from ESS: "{\n \"status\": \"success\",\n \"auth_key\": \"b3d08ec0-37cb-11eb-96e8-d84fb8020bed\",\n \"regnum\": \"DE2001...\",\n \"role\": \"user\"\n}\n"
lg-ess-home.0   2020-12-06 15:02:40.402 info    (113746) check group user admin group admin: false
lg-ess-home.0   2020-12-06 15:02:40.400 info    (113746) check user admin pw iobroker: true
lg-ess-home.0   2020-12-06 15:02:40.276 info    (113746) state lg-ess-home.0.testVariable changed: true (ack = true)
lg-ess-home.0   2020-12-06 15:02:40.273 info    (113746) state lg-ess-home.0.testVariable changed: true (ack = true)
lg-ess-home.0   2020-12-06 15:02:40.269 info    (113746) state lg-ess-home.0.testVariable changed: true (ack = false)
lg-ess-home.0   2020-12-06 15:02:40.267 debug   (113746) Variable: testVariable neuer Wert: true
lg-ess-home.0   2020-12-06 15:02:40.206 debug   (113746) Try to Login
lg-ess-home.0   2020-12-06 15:02:40.205 info    (113746) config password: d84fb...
lg-ess-home.0   2020-12-06 15:02:40.205 info    (113746) config ipadress: 192.168.0.30
lg-ess-home.0   2020-12-06 15:02:40.187 info    (113746) starting. Version 0.0.1 in /opt/iobroker/node_modules/iobroker.lg-ess-home, node: v12.20.0, js-controller: 3.1.6
lg-ess-home.0   2020-12-06 15:02:39.453 debug   (113746) statesDB connected
lg-ess-home.0   2020-12-06 15:02:39.452 debug   (113746) States connected to redis: 127.0.0.1:9000
lg-ess-home.0   2020-12-06 15:02:39.445 debug   (113746) States create System PubSub Client
lg-ess-home.0   2020-12-06 15:02:39.443 debug   (113746) States create User PubSub Client
lg-ess-home.0   2020-12-06 15:02:39.439 debug   (113746) Redis States: Use Redis connection: 127.0.0.1:9000
lg-ess-home.0   2020-12-06 15:02:39.438 debug   (113746) objectDB connected
lg-ess-home.0   2020-12-06 15:02:39.434 debug   (113746) Objects connected to redis: 127.0.0.1:9001
lg-ess-home.0   2020-12-06 15:02:39.419 debug   (113746) Objects client initialize lua scripts
lg-ess-home.0   2020-12-06 15:02:39.418 debug   (113746) Objects create User PubSub Client
lg-ess-home.0   2020-12-06 15:02:39.417 debug   (113746) Objects create System PubSub Client
lg-ess-home.0   2020-12-06 15:02:39.415 debug   (113746) Objects client ready ... initialize now
lg-ess-home.0   2020-12-06 15:02:39.389 debug   (113746) Redis Objects: Use Redis connection: 127.0.0.1:9001
lg-ess-home.0   2020-12-06 15:02:35.876 info    (112524) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
lg-ess-home.0   2020-12-06 15:02:35.875 info    (112524) terminating
lg-ess-home.0   2020-12-06 15:02:35.874 info    (112524) Got terminate signal TERMINATE_YOURSELF
lg-ess-home.0   2020-12-06 15:02:22.993 info    (112524) state lg-ess-home.0.testVariable deleted
lg-ess-home.0   2020-12-06 15:01:57.366 debug   (112524) system.adapter.admin.0: logging true
lg-ess-home.0   2020-12-06 15:01:53.225 debug   (112524) Response from ESS: "{\n \"status\": \"success\",\n \"auth_key\": \"97a0ab04-37cb-11eb-96e8-d84fb8020bed\",\n \"regnum\": \"DE2001...\",\n \"role\": \"user\"\n}\n"
lg-ess-home.0   2020-12-06 15:01:53.222 debug   (112524) Response from ESS: "{\n \"status\": \"success\",\n \"auth_key\": \"97a0ab04-37cb-11eb-96e8-d84fb8020bed\",\n \"regnum\": \"DE2001...\",\n \"role\": \"user\"\n}\n"
lg-ess-home.0   2020-12-06 15:01:53.103 info    (112524) check group user admin group admin: false
lg-ess-home.0   2020-12-06 15:01:53.099 info    (112524) check user admin pw iobroker: true
lg-ess-home.0   2020-12-06 15:01:52.991 info    (112524) state lg-ess-home.0.testVariable changed: true (ack = true)
lg-ess-home.0   2020-12-06 15:01:52.985 info    (112524) state lg-ess-home.0.testVariable changed: true (ack = true)
lg-ess-home.0   2020-12-06 15:01:52.976 info    (112524) state lg-ess-home.0.testVariable changed: true (ack = false)
lg-ess-home.0   2020-12-06 15:01:52.976 debug   (112524) Variable: testVariable neuer Wert: true
lg-ess-home.0   2020-12-06 15:01:52.924 debug   (112524) Try to Login
lg-ess-home.0   2020-12-06 15:01:52.923 info    (112524) config password: d84fb...
lg-ess-home.0   2020-12-06 15:01:52.923 info    (112524) config ipadress: 192.168.0.30
lg-ess-home.0   2020-12-06 15:01:52.900 info    (112524) starting. Version 0.0.1 in /opt/iobroker/node_modules/iobroker.lg-ess-home, node: v12.20.0, js-controller: 3.1.6
lg-ess-home.0   2020-12-06 15:01:52.133 debug   (112524) statesDB connected
lg-ess-home.0   2020-12-06 15:01:52.133 debug   (112524) States connected to redis: 127.0.0.1:9000
lg-ess-home.0   2020-12-06 15:01:52.125 debug   (112524) States create System PubSub Client
lg-ess-home.0   2020-12-06 15:01:52.124 debug   (112524) States create User PubSub Client
lg-ess-home.0   2020-12-06 15:01:52.119 debug   (112524) Redis States: Use Redis connection: 127.0.0.1:9000
lg-ess-home.0   2020-12-06 15:01:52.118 debug   (112524) objectDB connected
lg-ess-home.0   2020-12-06 15:01:52.115 debug   (112524) Objects connected to redis: 127.0.0.1:9001
lg-ess-home.0   2020-12-06 15:01:52.106 debug   (112524) Objects client initialize lua scripts
lg-ess-home.0   2020-12-06 15:01:52.100 debug   (112524) Objects create User PubSub Client
lg-ess-home.0   2020-12-06 15:01:52.099 debug   (112524) Objects create System PubSub Client
lg-ess-home.0   2020-12-06 15:01:52.096 debug   (112524) Objects client ready ... initialize now
lg-ess-home.0   2020-12-06 15:01:52.066 debug   (112524) Redis Objects: Use Redis connection: 127.0.0.1:9001
lg-ess-home.0   2020-12-06 15:01:48.563 info    (24306) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
lg-ess-home.0   2020-12-06 15:01:48.560 info    (24306) terminating
lg-ess-home.0   2020-12-06 15:01:48.554 info    (24306) Got terminate signal TERMINATE_YOURSELF

Actually there is no check box "common", but I'm on the German version. The config page looks like:

Zwischenablage02

Two update intervals would be nice with a clear description regarding the related values. I guess the iobroker adapter also looks in to "home" and "common". This is where I got confused about "String-Daten" and how short is "short"?

Morluktom commented 3 years ago

I see the bug, i think my be today evening i will fix it. Thanks

fu-zhou commented 3 years ago

Coming back to the "Adapterkonfiguration": Having worked with pyess I interpreted the "Update Intervall [s]" to be the general update time, in my case with pyess 10s, The checkbox "Aktualisieren der String-Daten..." I interpreted as a divisor related to the Update Intervall. I did not consider that 30 seconds become active only with checked box and if left unchecked the update falls back to 15 min (while still showing 30 s). Is it how it currently works?

Morluktom commented 3 years ago

I have created a new version where two independent intervals can be specified. There is additional information such as version and network settings. These are updated every 15 minutes. In the next few days I will document in readme.md which data point is updated with which interval.

fu-zhou commented 3 years ago

Hi, I installed the 0.0.2 and it runs now/ adapter turns green.