Open typxxi opened 4 months ago
Just to let you know for whatever reason now the connection seems to be stable
I have not been in the room for 3 or 4 hours and no one else. I have only activated the verbose log.
UDPATE: the verbose log has NO ISSUE and the losses came back this morning when I figured out that the door of the inverter room had been closed.
So the (full iron) door (very heavy from the 70s fire retardand) seems to have an impact if it is open or not which means the reflection of bt waves must have improved the availability and connection between Raspi Pi and its onboard BT and the JK BMS inside the EEL V4 metal battery box.
Just to give you an impression: the raspi is mounted on the wall 40 cm above the battery case which means the BMS is just 70 cm horizontally away or roughly 1m . If I open the door it does no longer work.
The only question: How can I disable the WiFi module on the Pi and check if that can improve the bt range too in such a way that even with an open door the connection would stay stable.
Here is the graph of the last week. You can see the small gap monday morning 8:30 when the door was open
The open door stops the reflection and breaks the connection this way. Maybe someone has similiar issues and google will direct him to this topic to get aware of metal doors impact as reflector.
Hi, you can try to turn off the inverter and see it improves (if it is possible)
In linux you can usually disable Wifi with
rfkill block wifi
This might help you for HA OS: https://community.home-assistant.io/t/disabling-built-in-wi-fi-bluetooth-from-raspberry-pi-cm4-on-home-assistant-yellow/644312/10
This might help you for HA OS: https://community.home-assistant.io/t/disabling-built-in-wi-fi-bluetooth-from-raspberry-pi-cm4-on-home-assistant-yellow/644312/10
Yes - and no cause I am unsure if this description allows to turn off WiFi only and let Bluetooth turned on. I have seen that there were 2 lines , 1 for wifi and 1 for bt, but I am unsure if that will work out for WiFi only.
Any experiences what to do for turning WiFi only off ? My Pi4 is connected via LAN cable , but of cause BATmon is relying on BT. Thanks
Pi 4 connected via Ethernet and BT to the JK BMS (inside an EEL Case) Pi 4 sits on top of the case about 10 or 15 cm away from the BMS inside the metal box HA OS latest June release "2024.6.4" Mosquitto broker 6.4.1 Usually the battery is connected to a laptop running windows and JK BMS Software plus VNC which I use to cross check if my inverter has reacted cause the growatt inverter is connected via cloud and that updates only every minute while I can instantly check the BMS "reaction". So this Laptop is connected via RS485 modbus and a USB cable and usually running JK BMS software 247.
BatMon-HA Setup right now
Here is the depreciation warning (but my mosquitto is the most recent one, no update open)
connecting mqtt addons@core-mosquitto /app/main.py:196: DeprecationWarning: Callback API version 1 is deprecated, update to latest version mqtt_client = paho.Client(paho.CallbackAPIVersion.VERSION1)
I have no clue what this means cause usually the mosquitto would offer me an update but there is none available.
Looks like there is still a connection issue somehow even though it had been working in the beginning quite well over days , I mean I have watched the figures and graphs over hours at the beginning and tweaked a bit to 2 sec sample and 3 or 4 sec mqqt but usually the temperatures are missing quite often while most or all others are available.
But the data are there cause I can follow those via a windows PC running the JK BMS (via vnc).
Here is the protocol from the moment I stopped and then restarted the add on
The verbose log is much longer and detailed but since I have activated that roughly 15 minutes ago the data arrived more consistantly and I had no further losses.
30 minutes later and still constant figures and much, much less "unavailable" messages (only the temperatures are missing, but only very rarely or maybe only once in 3o minutes).
I am not sure what is going on but to let you know: the battery is over 30 meters away in a closed cellar room with 25°C and no one has been there. Also no interferences possible.