After the latest update my esp32 Bluetooth node that has Xiaomi sensors is no longer working.
It shows up fine in the ESPhome dashboard, as online and with data in the logs, but in HA the sensors are unavailable.
I deleted the node in ESPhome and all the sensors in HA to make sure its completely gone. After the reboot nothing is being discovered. If i try to go to addons and add it by putting in the ip address, it says Device is already configured.
The only sensor that does still work is the binary sensor in the same node.
Im at a loss how to fix this issue, does anyone experience the same ?
Could you tell me where you did this?
the node is connected via wifi, and relays the information to HA.
The node IS receiving the bluetooth data fine, is just that they do not show up in HA anymore.
thank you, i tried it but it didnt work.
i think the problem lies between HA and ESPhome, as the sensors that are configured in the ESPhome node are not showing up in HA.
to this and you can delete your sensors now. Must restart HA after updating code.
esphome:
name: bluetooth-tracker-upstairs
platform: ESP32
board: esp32dev
# Enable logging
logger:
# For Bluetooth Proxy
esp32_ble_tracker:
### scan_parameters:
### interval: 1100ms
### window: 1100ms
### active: true
bluetooth_proxy:
# Enable Home Assistant API
api:
ota:
password: "87417fc83f6a1856e160476b48ae3ae2"
wifi:
ssid: "xxxx"
password: "xxxx"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Bluetooth-Tracker-Upstairs"
password: "7IQumJKqyS58"
captive_portal:
binary_sensor:
- platform: status
name: "Bluetooth Tracker Status"
You can remove the â###â if you would like to use the parameters.
I would also recommend flashing to the latest firmware. You may be okay (try it first) but you have the option to use the new advertising âBTHomeâ in config settings. If you do the intergration will look like this.
Thank you for the reply.
It tells me Component Bluetooth proxy not found though.
Your using BThome which is a different integration that i am using.
But i donât have problems receiving the Bluetooth info with my Node. Its just not displaying between ESPhome and HA?
# For Bluetooth Proxy
esp32_ble_tracker:
### scan_parameters:
### interval: 1100ms
### window: 1100ms
### active: true
bluetooth_proxy:
once you done that and restart HA it/should auto discover your Xiaomi sensors. If you use âmijiaâ as your advertising format you should see a Xiaomi intergradation pop up in auto discovered. If you update to âBTHomeâ advertising format you will see âBTHomeâ intergradation pop up. They both work. You then dont need your sensor data in your code.
Thanks for the advise, i thought it was updating but i guess it didnât. I re-added it in addon store and its now up to date. The proxy is now accepted.
To fix the whole sensor not showing up. i decided to reflash the board with a different name, and it immediately worked. So iâm not sure what happend in the end.
Hi @Ryukenden glad you fixed it and got it working. I thought you updated to the latest and then it didnât work because in your original code you didnât have âbluetooth_proxy:â
Looks like two things happened.
1: You thought you had the latest version but didnât.
2: You needed to add âbluetooth_proxy:â to your code
Good thing is that it is working now . Remember to remove all your sensors in your code as they are no longer required.
All other Bluetooth sensors added to your HA will now be auto discovered so long as they are within range of that Bluetooth proxy. Adding 2 lines of code to any existing ESP32 will also make it a Bluetooth proxy and you can space them around your home in order to have good Bluetooth proxy coverage.The developers have done a amazing job . For anyone else reading this post the two lines you need in your code are.
# For Bluetooth Proxy
esp32_ble_tracker:
bluetooth_proxy:
but check that your ESP32 is okay to use as a proxy hub.
May I suggest that marking you last post as the solution will not help other people that may read this post in the future and marking my first post as the solution by adding âbluetooth_proxy:â and removing your sensor data would fix the problem if you would of had the latest update as suggested in your first sentence.
or marking this post as the solution may help other check if they have updated as well.
It appears when I paste the line in to the editor. The red cross appears agains the line. Hover over it and it says Component not found. Iâll try a clean install and see what happens.
I just created a new entity etc and pasted just the BLE elements in to the mostly empty config but still the same problem. Its as if ESPHome doesnât know that command exists.