node-red-contrib-esphome icon indicating copy to clipboard operation
node-red-contrib-esphome copied to clipboard

connection lost after ~5h

Open Bond246 opened this issue 1 year ago • 8 comments

Hello,

in general this plugin works really well in combination with my esphome under ESP32-chip. But after around 5 hours it loses the connection with following messages:

Failed find message type for Id: 25
Cannot set properties of undefined (setting 'length')
sendMessage timeout waiting for HelloResponse

Then i have to disable the connection of the specific device and have to reanable it to get the connection working again.

Any ideas how to fix this? In homeassistant the connection is stable but acutally i'm using HA only for this one esphome-device and in a perfect world i can stop the HA container again :)

Thanks, Bond

Bond246 avatar Jul 15 '24 09:07 Bond246

hi enable in device reconnect and update to 0.2.8

twocolors avatar Jul 15 '24 12:07 twocolors

thanks for that really fast update!!! Which option do you mean with "enable in device reconnect"? I don't find something like that here https://esphome.io/components/api

Bond246 avatar Jul 15 '24 14:07 Bond246

thanks for that really fast update!!! Which option do you mean with "enable in device reconnect"? I don't find something like that here https://esphome.io/components/api

in node (Node-RED) of device select reconnect

twocolors avatar Jul 15 '24 14:07 twocolors

ahh fine. Thanks

Bond246 avatar Jul 15 '24 14:07 Bond246

The problem is still the same even with v0.28 and reconnection option "15". Anything else that could help?

Bond246 avatar Jul 16 '24 07:07 Bond246

@Bond246 show me error please again , what version esphome you use ?

twocolors avatar Jul 17 '24 06:07 twocolors

completely the same error like above. I'm using the latest version 2024.6.6

Bond246 avatar Jul 17 '24 08:07 Bond246

I had the same error messages in my logs after x amount of random time and upgrading everything seems to have resolved the issue.

I'm running now: node-red 3.1.3 this plugin 0.2.8 esphome 2024.7.3

jorkzijlstra avatar Aug 21 '24 12:08 jorkzijlstra