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
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
===Configure the ESP32 to work as a Bluetooth device===
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 9: Line 11:


{{template:top}}
{{template:top}}
===Proxy===
=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=
===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>


Line 46: Line 47:


{{template:top}}
{{template:top}}
Return to [[Home_Assistant#Tips|Home Assistant Tips]]<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]

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[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.



(TOP)

Sniffing BTLE[edit]

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