tips-bluetooth: Difference between revisions

From Notebook
Jump to navigation Jump to search
(Created page with "===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> ;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:<br> Flash it with esphome with this in the config <nowiki>bluetooth_proxy: active: true</nowiki> {{template:top}} ===Proxy=== [https://youtu.be/CjpPdwK_ttg Tutorial Part...")
 
No edit summary
Line 1: Line 1:
Return to [[Home_Assistant#Tips|Home Assistant Tips]]<br>
===Configure the ESP32 to work as a Bluetooth device===
===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>
Line 46: Line 48:


{{template:top}}
{{template:top}}
Return to [[Home_Assistant#Tips|Home Assistant Tips]]<br>

Revision as of 12:54, 6 September 2023

Return to Home Assistant Tips

Configure the ESP32 to work as a Bluetooth device

From the forum

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



(TOP)

Proxy

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.



(TOP)

Sniffing BTLE

Reference on forum

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