I’ll try with a proxy later tonight. I just tested BLE Long Range and it works but is not straightforward to configure.
Security is definitely very lax on the BLE interface… I haven’t been able to extract the wifi password so that’s good and yes, unlocking wallboxes is definitely possible. That said, I don’t think we should continue this discussion in public.
Since this component keeps an active connection with the charger, no one else can connect
This error originated from a custom integration.
Logger: custom_components.wallbox_ble
Source: custom_components/wallbox_ble/api.py:226
Integration: Wallbox BLE (documentation, issues)
First occurred: 13:23:50 (697 occurrences)
Last logged: 15:20:38
Failed to write to Bluetooth e=BleakError('Bluetooth GATT Error address=8C:F6: xx redact handle=23 error=15 description=Insufficient encryption')
Failed to write to Bluetooth e=BleakError('')
Failed to write to Bluetooth e=BleakError('Bluetooth GATT Error address=8C:F6:xx redact handle=23 error=133 description=Error')
Will put debug on tonight but my log is flooded with errors
I chose it bacause it’s the only way I found to have the automation always working. So I have a input boolean that switch the Wallbox and the other automation for the overload:
Ok, but what’s the aim? Resume/pause is only available if there is car demand. So your first automation will fail right if you trigger the helper switch in absence of demand?
Rather than testing if the charger is unlocked (which typically it won’t be if you are charging in case auto lock is enabled) would it not be easier to test if its charging?
I reached the conclusion that re-implementing it as a ESPHome component is essentially just re-building the bluetooth_proxy that seems pretty solid otherwise. Instead I’ll look into submitting a patch for bluetooth_proxy to handle pairing.
Seems Home-Assistant OS pairs with everything around it automatically (crazy?) while Home-Assistant in Docker requires manual pairing (e.g. bluetoothctl pair [Wallbox BT mac]).
Yes, indeed, it picked up my front door lock as a beacon and several other devices. Quite aggressive in a way.
As for the pairing patch, curious to see the outcome. I have a couple of other devices where this is a bottleneck so perhaps your solution will pave the way there as well. The Weber igrill (bbq thermometer) doesn’t work with the proxy either because of encryption, there is an esphome solution though which works flawlessly.
Yes, you can also add a trigger ID to the two triggers and trigger the choice on that basis.
As for the update speed, yes that’s annoying - my experience is that typically the on or off trigger are actually quite responsive (looking at impact on power consumption) but the subsequent status update of the switch is very slow. Local would be great, eagerly awaiting the results of @jagheterfredrik with respect to the bluetooth proxy.