-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth connection failures #90
Comments
Hi, the log highlights an issue with your WiFi connection to read logs from your home assistant to the esp. I don't see any Bluetooth or victron messages. |
If the problem is with the Wi-Fi connection, I will try with a fixed IP on the ESP-32 |
I have a similar issue, ble is loosing connectivity from time to time, esp32 module is 10 cm away from the victron mppt, wifi is steady, i can fix it only a reboot of the ble module... :( |
There is no active connectivity between the ESP and the Victron device. The Victron device is just broadcasting Bluetooth advertising package which the ESP reads. The ESP then encrypts the package, translates it and sends it to Home Assistant. How does this 'loosing connectivity' manifest? |
@Fabian-Schmidt i don 't get updates in home assistant from victron specifically and in on ESP logs about the victron ble broadcasts, everything else on ESP works fine, i can connect to it, read other stuff from logs, control it..., victron is still broadcasting because victron app works just fine. Before i thought distance is too big 2 meters away, so i moved the esp32 next to the victron mppt. This issue occurs every couple of days but is not a fixed interval most of the time. Victron is up to date running latest firmware. |
What are you doing to fix the issue? Power cycle the esp device? Just FYI the victron will stop sending Bluetooth advertising packages when you use the victron app and connect to the device - select the device not just see it in the overview page. |
Yes, i just power cycle from home assistant. |
Can you please share the ESPHome log when the issue occurs and it no longer transmit sensors to home assistant? |
in my case I have been working for days without problems. Entities are available permanently. I thought my problems could be caused by the ESP feeder... but nothing to modify seems that now everything is fine... I do not understand what the problem was. |
|
hello, im also experieincing the same. My ESP32 devices is about 10 ft LOS from the SmartShunt and it still seems to loose BT connections. What ends up happening is the devices will just stop reporting, and only show the last number. I suspected it was WiFi, but when its in this "stalled state" the wifi to the devices works well and I can connecto to it via ESPHome and see the logs. You can see here, the flat-lines/part is when it stops reporting. If you leave it alone, it radonomly connects and disconnects. A reboot of the ESP32 also fixes this. I thought perhaps of adding an automation that if the device does not report for more than 3 minutes, to reboot it. I just might do that. thanks |
I have two Smart Shunts, both being read by ESP32s with this integration. The BT range on the Smart Shunt is extremely short. Unless I have the ESP (or even my phone if using the Victron app) more than about 5-6 feet away, the connection becomes very unreliable. |
It is hard to identify the root cause of the problem without a log. |
Hi @Fabian-Schmidt thanks for your reply. I'd be happy to share more information. Could you please tell me how to enable logging to a specific ESPHome device? for example, now its in that non-reporting state: But, when I go to ESPHome dashboard and selected logs from the the device via wifi, it connects and gives me these logs: I presume I have to get the logs before the issue happens. Could you tell me how? thanks! |
ok @Fabian-Schmidt , I have some updates here. Here's an overnight trace of the device you can see places where the device goes flatline, this is where it stops reporting, and then reconnects at some point later. just to confirm there is no wifi issue, you can see here, the history of the restart button, only goes unaviable briefly when the device restarts (I think): So what are the logs for the relevent times of 8:55pm, 2:03 am, 5:02 and 6:42 am, here's what I see:
im not sure if this helpful, I could incresase the log level detail as its not default. |
another update, according to bdraco, there might be a possible fix coming for this. May wish to track these issues: |
I have a problem with the integration. Occasionally, the Bluetooth connection is lost, it is reset and then again...
logs_victron-ble_logs(1).txt
logs_victron-ble_logs(3).txt
The text was updated successfully, but these errors were encountered: