I’ve created a BLE tracking configuration for the Valve Index base stations using an esp32, and I’m looking to share it here. I’ve seen the HACS community integration, but I was already working on this when I found it. This is working as-is, but if anyone knows how to encapsulate the sensor into the switch lambda, that would cut down on yet another state item in my DB. You can find your MAC address for your own base stations using a variety of command line tools or smartphone apps, the name will start with “LHB” and can be detected with the base stations on or off.
I just wanted to say thank you, because I’ve been trying to control the basestations with HACS integration but something goes wrong now and then and in the end almost all the time I need to boot them from the phone because the automation is broken.
I’ll make some testing with this method and let you know the results.
Thanks for this, I’ve tried the homeassistant-basestation HACS integration and it works fine, but I’m not able to get the base stations to sleep with 0x02.
With your method I can get them to sleep with 0x02 but I seem to only be able to control one base station.
Do you have any suggestions on how to control more than 3 base stations?
Should have checked here first. I just implemented this very similarly for my two base stations. I just added the following config to an ESP32 doing Bluetooth proxy duties.
Just replace MAC_OF_LIGHTHOUSE_1_HERE and MAC_OF_LIGHTHOUSE_2_HERE with the MAC addresses of your lighthouses
Hi thex, I managed to get up to three working at a time but not more. I’m currently using the ble_proxy but it’s not being very reliable… but it works with more than 3 devices at least.
Would be nice to manually start a connection, do an action, break the connection and continue with another device.
yes that would be great, I’m actually not using this anymore as one day it was not working anymore as the pc running steam vr had connected while the esp32 was disconnected. It would also help in this case as it would reconnect if you want to switch.
However as I currently understand it would be some more effort as the ble_client platform will currently always try to keep a conntection.