tips-bluetooth: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Return to [[Home_Assistant#Tips|Home Assistant Tips]]<br> | Return to [[Home_Assistant#Tips|Home Assistant Tips]]<br> | ||
=Configure the ESP32 to work as a Bluetooth device= | |||
[https://community.home-assistant.io/t/2022-10-all-over-the-place/470126/41 From the forum]<br> | [https://community.home-assistant.io/t/2022-10-all-over-the-place/470126/41 From the forum]<br> | ||
;How do I configure the esp32 to work as a bluetooth device? I have it setup in esphome and it sees it, but where do I go after that? | ;How do I configure the esp32 to work as a bluetooth device? I have it setup in esphome and it sees it, but where do I go after that? | ||
Line 11: | Line 11: | ||
{{template:top}} | {{template:top}} | ||
=Proxy= | |||
[https://youtu.be/CjpPdwK_ttg Tutorial Part 1- EASY Bluetooth Proxies in Home Assistant! Increase the range of your passive Bluetooth devices!]<br> | [https://youtu.be/CjpPdwK_ttg Tutorial Part 1- EASY Bluetooth Proxies in Home Assistant! Increase the range of your passive Bluetooth devices!]<br> | ||
[https://youtu.be/l5ea7lQWpMk Tutorial Part 2- Use this CHEAP Xiaomi thermometer with an ESP32 and Home Assistant.]<br> | [https://youtu.be/l5ea7lQWpMk Tutorial Part 2- Use this CHEAP Xiaomi thermometer with an ESP32 and Home Assistant.]<br> | ||
{{template:top}} | {{template:top}} | ||
=Sniffing BTLE= | |||
[https://community.home-assistant.io/t/bluetooth-dongle-added-how-to-scan-for-devices/448104/14 Reference on forum]<br> | [https://community.home-assistant.io/t/bluetooth-dongle-added-how-to-scan-for-devices/448104/14 Reference on forum]<br> | ||
Latest revision as of 12:54, 6 September 2023
Return to Home Assistant Tips
Configure the ESP32 to work as a Bluetooth device[edit]
- How do I configure the esp32 to work as a bluetooth device? I have it setup in esphome and it sees it, but where do I go after that?
From nickrout:
Flash it with esphome with this in the config
bluetooth_proxy: active: true
Proxy[edit]
Tutorial Part 1- EASY Bluetooth Proxies in Home Assistant! Increase the range of your passive Bluetooth devices!
Tutorial Part 2- Use this CHEAP Xiaomi thermometer with an ESP32 and Home Assistant.
Sniffing BTLE[edit]
Add a line into configuration.yaml to get access to the Logger Service:
# Get access to logger.set_level service following bdraco live demo # https://youtu.be/m9gKFH8WlzY?t=3297 logger: default: warn
Restart Home Assistant
Set Bluetooth logging to debug Developer Tools → Services
service: logger.set_level data: homeassistant.components.bluetooth: debug
call service
Terminal:
cd /config tail -f home-assistant/.log | grep "bluetooth" > bt_log.txt
Watch for devices in the log, noting addresses and data
Set the logging back to warn to not fill up the uSD
service: logger.set_level data: homeassistant.components.bluetooth: warn
call service
(TOP)
Return to Home Assistant Tips