Thanks for the reply.
I don’t know what I’m doing , but I cracked the RAW code looking for different data between the 2 devices and found the information below:
0x0201061AFF4C000215FDA50693A4E24FB1AFCFC6EB0764782
6271
B4CB9C90D095
550000000000000000000001016425241
63 > For Decimal number: 99 Battery percentage?
C69387039397
0406060000
0x0201061AFF4C000215FDA50693A4E24FB1AFCFC6EB0764782
5271
B4CB9C90D095
0756E746F000000000000001016425241
60 > For Decimal number: 96 Battery percentage?
D109546D93D1
0406060000
I’m going to turn on the third device and check if the data above really refers to the battery.
If I looked in the right place in NRFConnect, I didn’t find anything that could be useful.
EDIT:
It’s definitely the battery status.
Now I need to find a way to recover the information.
0x0201061AFF4C000215FDA50693A4E24FB1AFCFC6EB0764783
0271
B4CB9C90D094
86F6C792D494F54000000001016425241
64 > For Decimal number: 100%
D0CE83E9650E
0406060000
Edit 2:
I got it with the help of this link:
Ex:
bluetooth_proxy:
active: True
esp32_ble_tracker:
scan_parameters:
interval: 320ms
window: 300ms
on_ble_service_data_advertise:
- mac_address: D0:CE:83:E9:65:0E
service_uuid: "5242"
then:
- lambda: 'id(ble_sensor).publish_state(x[1]);'
sensor:
- platform: template
name: "Holy-IOT"
id: ble_sensor
device_class: "battery"
unit_of_measurement: "%"
entity_category: "diagnostic"
accuracy_decimals: 0
binary_sensor:
- platform: ble_presence
mac_address: D0:CE:83:E9:65:0E
name: "Holy-IOT"
timeout: 60s
Result: