jshank / bwalink

Automate your Balboa Spa! A docker container with socat and ccutrer/balboa_worldwide_app that supports a remote serial to IP device or host running ser2net, socat or ESPEasy serial server
30 stars 6 forks source link

Addon crashing after a while #18

Open Anttibay opened 5 months ago

Anttibay commented 5 months ago

Hello, I am fairly new HA user and thus not so familiar yet with all the technical details with custom components. Hopefully I could get some help here!

I was able to complete the hot tub BWALink installation successfully and got the HA addon working as well and the controls and sensors through MQQT discovery. However, after the addon has been running for a while (like 30 mins or so) and then I toggle e.g. lights on, it crashes. After startup it works nicely for some time and the controls work, it gets the sensor status etc correctly. Addon logs are also clear until I try to toggle something, then I get the following (bolded entries):

s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started [13:06:03] INFO: Starting BWALink addon... [13:06:03] INFO: Setting addon timezone to Europe/Helsinki based on the system timezone. [13:06:04] INFO: Starting mqtt bridge connecting tcp://192.168.100.63:8899/ to mqtt://core-mosquitto:1883 W, Balboa MQTT Bridge running (version 2.1.5) /usr/lib/ruby/gems/3.2.0/gems/balboa_worldwide_app-2.1.5/lib/bwa/client.rb:74:in readpartial': Connection reset by peer (Errno::ECONNRESET) from /usr/lib/ruby/gems/3.2.0/gems/balboa_worldwide_app-2.1.5/lib/bwa/client.rb:74:inblock in poll' from /usr/lib/ruby/gems/3.2.0/gems/balboa_worldwide_app-2.1.5/lib/bwa/client.rb:64:in loop' from /usr/lib/ruby/gems/3.2.0/gems/balboa_worldwide_app-2.1.5/lib/bwa/client.rb:64:inpoll' from /usr/lib/ruby/gems/3.2.0/gems/balboa_worldwide_app-2.1.5/exe/bwa_mqtt_bridge:59:in block in initialize' from /usr/lib/ruby/gems/3.2.0/gems/balboa_worldwide_app-2.1.5/exe/bwa_mqtt_bridge:58:inloop' from /usr/lib/ruby/gems/3.2.0/gems/balboa_worldwide_app-2.1.5/exe/bwa_mqtt_bridge:58:in initialize' from /usr/lib/ruby/gems/3.2.0/gems/balboa_worldwide_app-2.1.5/exe/bwa_mqtt_bridge:421:innew' from /usr/lib/ruby/gems/3.2.0/gems/balboa_worldwide_app-2.1.5/exe/bwa_mqtt_bridge:421:in <top (required)>' from /usr/bin/bwa_mqtt_bridge:25:inload' from /usr/bin/bwa_mqtt_bridge:25:in `

' s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

Would you be able to help me troubleshoot where the issue might be?

jshank commented 5 months ago

This looks like you're losing wifi connection with the EW11. Run a continuous ping and see if that's the cause. The new "direct" method of connecting doesn't tolerate connectivity loss very well. Can you share your docker-compose.yaml file? Make sure you have restart: unless-stopped