-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the BLE scanner to identify the MAC address of your BMS (#616)
- Loading branch information
Showing
11 changed files
with
52 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
substitutions: | ||
name: ble-scanner | ||
device_description: "Search for BLE devices" | ||
|
||
esphome: | ||
name: ${name} | ||
comment: ${device_description} | ||
min_version: 2024.6.0 | ||
project: | ||
name: "syssi.esphome-jk-bms" | ||
version: 2.1.0 | ||
|
||
esp32: | ||
board: wemos_d1_mini32 | ||
framework: | ||
type: esp-idf | ||
|
||
wifi: | ||
ssid: !secret wifi_ssid | ||
password: !secret wifi_password | ||
|
||
ota: | ||
platform: esphome | ||
|
||
logger: | ||
level: DEBUG | ||
logs: | ||
wifi: WARN | ||
|
||
api: | ||
reboot_timeout: 0s | ||
|
||
esp32_ble_tracker: | ||
scan_parameters: | ||
active: true | ||
on_ble_advertise: | ||
then: | ||
- lambda: |- | ||
if (x.get_name().rfind("GW-", 0) == 0) { | ||
ESP_LOGI("ble_adv", "New Heltec/NEEY balancer found"); | ||
ESP_LOGI("ble_adv", " Name: %s", x.get_name().c_str()); | ||
ESP_LOGI("ble_adv", " MAC address: %s", x.address_str().c_str()); | ||
ESP_LOGD("ble_adv", " Advertised service UUIDs:"); | ||
for (auto uuid : x.get_service_uuids()) { | ||
ESP_LOGD("ble_adv", " - %s", uuid.to_string().c_str()); | ||
} | ||
} | ||
text_sensor: | ||
- platform: ble_scanner | ||
name: "BLE Devices Scanner" |