Active BLE connections within Home Assistant? #1091
Replies: 2 comments
-
Posted at 2024-02-19 by @gfwilliams Yes, I've been feeling like I really wanted to do something like that as well. Home Assistant's use of built-in BLE or ESPHome devices is really neat so that would be best to use if possible though - I have several in my house now to get coverage throughout, and it does support making connections. BTHome itself doesn't support connections, and I did ask the author but he's not interested in implementing that at the moment. I really wanted to make a Home Assistant 'integration' for Espruino that allowed you to effectively just associate endpoints to function calls, so it'd connect to the UART, write It looked like it wasn't too hard though - afaik HA uses an API that's basically 'Bleak' so you could take the code from https://www.espruino.com/Interfacing#python, dump it into an integration and it'd work. The issue was really just making sure it had a nice interface so you could add/configure devices |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-02-22 by @yerpj Thank you for your detailed reply. I had a look at built-in BLE and I am not sure it is that easy to integrate actuators, especially proprietary BLE profiles, when SIG-defined profiles are not sufficient. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2024-02-15 by @yerpj
I've just made some tests with BTHome and Home Assistant as covered by excellent videos from @gordon:
Video1, Video2
BTHome uses BLE advertising to send sensor data to Home Assistant (uplink). Now I would like to play with "actuators" which needs downlink. I was thinking of:
I suspect in this case the best bet is to integrate EspruinoHub into Home Assistant. So far so good, except I have installed a Raspberry PI with Home Assistant OS and I don't have access to the RPi system to install EspruinoHub. (HA OS is running into a Docker and you don't have access outside of it, AFAIK)
Any ideas out there?
Beta Was this translation helpful? Give feedback.
All reactions