BenPru / luxtronik

Luxtronik integration for Home Assistant
MIT License
66 stars 23 forks source link

After a while every sensor of luxtronik is not available ? #176

Closed colognebroker closed 7 months ago

colognebroker commented 8 months ago

Is this what happend to others too?

After reboot of HA everything is ok !

BenPru commented 8 months ago

Which versions do you use? HA+Integration Please provide a log and a diag file. What is your max Data Package Length config? You could try to set it =50000.

rhammen commented 8 months ago

I observed the same problem with 2023.10.20-Alpha several times. After several hours (somewhere in the order of 6-24h) the luxtronik sensors disappear. The error-message in the logs that signals the problem has occurred is: 2023-10-29 10:07:13.503 ERROR (MainThread) [custom_components.luxtronik2] Error fetching luxtronik2 data: Read: Error communicating with device

I have just now installed 2023.10.28-Beta (but I expect no change from that).

On further thinking, I remembered I setup a script on my NAS years ago that also fetches data from the Heatpump on a daily basis. Although I do not see a direct relation between the moment the script runs and the moment the error occurs, I want to rule out that there is any influence from this, so I have now disabled this script.

Where can I configure the Data Package Length? I looked under the Integration-->Configure, but there I can only configure the Room temperature sensor. I may play around to see if I can find any effect.

In the diagnostic file I found my current value is: "max_data_length": 10000, Can you measure/log the current package length, so we can see if it is close to the current max_data_length?

colognebroker commented 8 months ago

exact my problem ! BenPru What is your max Data Package Length config? You could try to set it =50000. Where can i config this ?

BenPru commented 8 months ago

Where can I configure the Data Package Length?

In the first setup dialog or manually in .storage/core.config_entries

BenPru commented 8 months ago

I think the reconnect doesn't work reliable. I have the same after a firmware update or restart of the heatpump. If your network is not very stable you can have it in the normal operation. I have changed samething in the socket connection. I push it in the main branch without release.

colognebroker commented 8 months ago

i can not find max Data Package Length in .storage/core.config_entries ;-(

BenPru commented 8 months ago

Please try 2023.10.30-Beta

colognebroker commented 8 months ago

I have done this, now no devices are available … I go back on .28-beta After I go back devices appear

Am 30.10.2023 um 23:35 schrieb BenPru @.***>:

Please try 2023.10.30-Beta https://github.com/BenPru/luxtronik/releases/tag/2023.10.30-Beta — Reply to this email directly, view it on GitHub https://github.com/BenPru/luxtronik/issues/176#issuecomment-1786152396, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSVZLS2ZZ7VGBAERYJG6S3YCATSHAVCNFSM6AAAAAA6U53Q7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBWGE2TEMZZGY. You are receiving this because you authored the thread.

colognebroker commented 8 months ago
image
colognebroker commented 8 months ago

also with 31-beta

colognebroker commented 8 months ago

Platform error sensor.luxtronik2 - Exception importing custom_components.luxtronik2.sensor

could not find a way back downgrading did not work

Attention cannot delete integration successfully

you need a backup to restore

rhammen commented 8 months ago

I think the reconnect doesn't work reliable. I have the same after a firmware update or restart of the heatpump. If your network is not very stable you can have it in the normal operation. I have changed samething in the socket connection. I push it in the main branch without release.

I'm running 2023.10.30 Beta There is bad news 😢 , but also good news 😄

This error originated from a custom integration.

Logger: custom_components.luxtronik2
Source: helpers/update_coordinator.py:322
Integration: Luxtronik
First occurred: 20:08:01 (1 occurrences)
Last logged: 20:08:01

Error fetching luxtronik2 data: Read: Error communicating with device
rhammen commented 8 months ago

@colognebroker Did you try 2023.11.1-Beta ? Is the problem in this issue also resolved for you with that version, or do you still have a problem?

colognebroker commented 8 months ago

I am not sure , because one time devices are not available, but after last restart it work for hours now We will see tomorrow

Am 02.11.2023 um 22:41 schrieb rhammen @.***>:

@colognebroker https://github.com/colognebroker Did you try 2023.11.1-Beta https://github.com/BenPru/luxtronik/releases/tag/2023.11.1-Beta ? Is the problem in this issue also resolved for you with that version, or do you still have a problem?

— Reply to this email directly, view it on GitHub https://github.com/BenPru/luxtronik/issues/176#issuecomment-1791576899, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSVZLVBMUTD4AJUY267KHTYCQHQ5AVCNFSM6AAAAAA6U53Q7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJRGU3TMOBZHE. You are receiving this because you were mentioned.

BenPru commented 8 months ago

We will see tomorrow

@colognebroker Is it fixed for you?

BenPru commented 7 months ago

@colognebroker I close this issue. Feel free to re-open if needed.