[20:52:45.079][C][esp32_ble_tracker:636]: BLE Tracker:
[20:52:45.079][C][esp32_ble_tracker:637]: Scan Duration: 300 s
[20:52:45.079][C][esp32_ble_tracker:637]: Scan Interval: 320.0 ms
[20:52:45.079][C][esp32_ble_tracker:637]: Scan Window: 30.0 ms
[20:52:45.079][C][esp32_ble_tracker:637]: Scan Type: PASSIVE
[20:52:45.079][C][esp32_ble_tracker:637]: Continuous Scanning: YES
[20:52:45.080][C][esp32_ble_tracker:645]: Scanner State: RUNNING
[20:52:45.080][C][esp32_ble_tracker:646]: Connecting: 0, discovered: 0, disconnecting: 0
[20:56:15.793][D][sensor:135]: 'Trockner Button Presence Proxy': Sending state -57.00000 dBm with 0 decimals of accuracy
[20:56:15.806][D][sensor:135]: 'Trockner Button Presence Proxy': Sending state -57.00000 dBm with 0 decimals of accuracy
[20:56:16.523][D][sensor:135]: 'Trockner Button Presence Proxy': Sending state -62.00000 dBm with 0 decimals of accuracy
[20:56:16.523][D][sensor:135]: 'Trockner Button Presence Proxy': Sending state -50.00000 dBm with 0 decimals of accuracy
[20:57:33.773][D][esp32_ble_tracker:772]: Scan complete, set scanner state to IDLE.
[20:57:33.939][D][esp32_ble_tracker:214]: Starting scan, set scanner state to STARTING.
After this message seems to work, but is there a chance that I can see over which proxy the Blu Button is sending the event. Because over ESP the rssi is -70 before it was -90-100 sometime it worked sometimes not.
The button is already integrated into BTHome and works perfectly. It is connected to a Shelly 2PM gateway and set up. However, I noticed that it has poor RSSI in its location, sometimes as low as -100 dBm, which is why it sometimes doesn’t work.
For this reason, I thought I would put an ESP nearby. So far, the logs show that the connection with <-70 dBm looks good.
But I don’t know if the button really works via the ESP, and I don’t see the ESP in HA under Bluetooth Adapter or Advertisement Monitor etc. So maybe it’s going over the 2PM
Yes, that’s mandatory if this shelly BLE gateway isn’t integrated into HA so it can’t send data to HA.
Only one BT connection can exist at a time. I learned this hard way, too, with LD2410 proximity sensor - once it worked, then it suddenly didn’t. Turned out that i when changed devive’s parameters with android app device switced from HA to app…
I’m not sure if I understand your post correctly.
I have Shelly 2PM (gen3) for my roller shutters, which have an integrated BLE gateway. Of course, I have integrated all of them into HomeAssistant.
My Shelly Blu Buttons are connected to the Shelly 2 PM and the forwarding works perfectly. Except for one, because it’s in the basement.
That’s why I’m using the ESP as a workaround, so the connection is already better, as you can see from the logs. However, no press events are coming through.
So my question was: do I still need to actively connect the Shelly Blu Button to the ESP as well as to the Shelly 2pm, which you have to actively enter in the app?
Do I also have to deregister the Shelly Blu Button from the Shelly 2PM?
well, now i start to understand less and less, too.
So, is this correct: you have shelly blu button and shelly 2PM as BLE gateway. Then you also have one esp32, programmed with esphome as bt proxy. When you press your Shelly BLU button it doesn’t appear in BTHome section in HA. Correct?
I have shelly button tough, i have 3 esp’s as bt proxy and shelly plus plug, which also acts as proxy. I also have BT enabled in my intel nuc and it’s acting as BTproxy, too.
When i bought shelly button i didn’t do anything (if i remember correctly…), no registration, nothing, i just inserted battery, pressed the button and it appeared in HA. I did register button in shelly app, but only to update it’s fw.
No, the Shelly Blu Button is already set up in BTHome, BUT sometimes I have poor RSSI via the Shelly 2PM Shelly Gateway because the distance is too far, i.e., some clicks produce a sound, but no signal arrives in HA or the 2PM Shelly Gateway.
That’s why I use the ESP, because I can place it closer to the Shelly Blu Button. As you can see in the log, this gives me better reception, but no clicks are received by HA via the ESP either (I assume). I also can’t see whether the button clicks are actually being routed via the ESP.
Ah good to know maybe then I should deregister from Shelly 2PM maybe then its working.
Is your new esphome btproxy stated in your bluetooth visualization (settings, bluetooth, visualization)? Blue circles show btproxy devices, and you can see for each BLE device where it’s connected to.