Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Sensor]: Petoneer Smart Dot PTY010/TY011 #1309

Open
Psytoshgen opened this issue Feb 2, 2024 · 5 comments
Open

[New Sensor]: Petoneer Smart Dot PTY010/TY011 #1309

Psytoshgen opened this issue Feb 2, 2024 · 5 comments
Assignees
Labels
new sensor Request for a new sensor waiting for data

Comments

@Psytoshgen
Copy link

Psytoshgen commented Feb 2, 2024

Sensor Description

Petoneer Smart Dot PTY010/TY011

Additional information

Hi, smart toy for cats. if I can find something else, I will glad to help.

e.g. a link to product details, etc.

vOB8x8pn2yo
P5sk1GqHQnM
lbnjLrPxlXA

BLE advertisements

[22:10:18][I][ble_client:161]: Service UUID: 0x1800
[22:10:18][I][ble_client:162]:   start_handle: 0x1  end_handle: 0x7
[22:10:18][I][ble_client:341]:  characteristic 0x2A00, handle 0x3, properties 0x2
[22:10:18][I][ble_client:341]:  characteristic 0x2A01, handle 0x5, properties 0x2
[22:10:18][I][ble_client:341]:  characteristic 0x2A04, handle 0x7, properties 0x2
[22:10:18][I][ble_client:161]: Service UUID: 0x1801
[22:10:18][I][ble_client:162]:   start_handle: 0x8  end_handle: 0x8
[22:10:18][I][ble_client:161]: Service UUID: 0x1809
[22:10:18][I][ble_client:162]:   start_handle: 0x9  end_handle: 0x15
[22:10:18][I][ble_client:341]:  characteristic 0x2A1C, handle 0xb, properties 0x20
[22:10:18][I][ble_client:341]:  characteristic 0x2A1D, handle 0xe, properties 0x2
[22:10:18][I][ble_client:341]:  characteristic 0x2A1E, handle 0x10, properties 0x10
[22:10:18][I][ble_client:341]:  characteristic 0x2A21, handle 0x13, properties 0x2a
[22:10:18][I][ble_client:161]: Service UUID: 0x180A
[22:10:18][I][ble_client:162]:   start_handle: 0x16  end_handle: 0x24
[22:10:18][I][ble_client:341]:  characteristic 0x2A23, handle 0x18, properties 0x2
[22:10:18][I][ble_client:341]:  characteristic 0x2A24, handle 0x1a, properties 0x2
[22:10:18][I][ble_client:341]:  characteristic 0x2A25, handle 0x1c, properties 0x2
[22:10:18][I][ble_client:341]:  characteristic 0x2A26, handle 0x1e, properties 0x2
[22:10:18][I][ble_client:341]:  characteristic 0x2A27, handle 0x20, properties 0x2
[22:10:18][I][ble_client:341]:  characteristic 0x2A28, handle 0x22, properties 0x2
[22:10:18][I][ble_client:341]:  characteristic 0x2A29, handle 0x24, properties 0x2
[22:10:18][I][ble_client:161]: Service UUID: 0x180F
[22:10:18][I][ble_client:162]:   start_handle: 0x25  end_handle: 0x2a
[22:10:18][I][ble_client:341]:  characteristic 0x2A19, handle 0x27, properties 0x12
[22:10:18][I][ble_client:161]: Service UUID: 0177AAA0-B455-0E17-D0DA-14EA33F8DE11
[22:10:18][I][ble_client:162]:   start_handle: 0x2b  end_handle: 0xffff
[22:10:18][I][ble_client:341]:  characteristic 0177AAA1-B455-0E17-D0DA-14EA33F8DE11, handle 0x2d, properties 0x20
[22:10:18][I][ble_client:341]:  characteristic 0177AAA2-B455-0E17-D0DA-14EA33F8DE11, handle 0x30, properties 0x8
[22:10:18][I][ble_client:341]:  characteristic 0177AAA3-B455-0E17-D0DA-14EA33F8DE11, handle 0x32, properties 0x8
[22:10:18][I][ble_client:341]:  characteristic 0177AAA4-B455-0E17-D0DA-14EA33F8DE11, handle 0x34, properties 0x2
[22:10:18][I][ble_client:341]:  characteristic 0177AAA5-B455-0E17-D0DA-14EA33F8DE11, handle 0x36, properties 0xa
[22:10:18][I][ble_client:341]:  characteristic 0177AAA6-B455-0E17-D0DA-14EA33F8DE11, handle 0x38, properties 0xa
[22:10:18][I][ble_client:341]:  characteristic 0177AAA7-B455-0E17-D0DA-14EA33F8DE11, handle 0x3a, properties 0xa
[22:10:18][I][ble_client:341]:  characteristic 0177AAA8-B455-0E17-D0DA-14EA33F8DE11, handle 0x3c, properties 0xa
[22:10:18][I][ble_client:341]:  characteristic 0177AAA9-B455-0E17-D0DA-14EA33F8DE11, handle 0x3e, properties 0xa
@Psytoshgen Psytoshgen added the new sensor Request for a new sensor label Feb 2, 2024
@Psytoshgen Psytoshgen changed the title [New Sensor]: [New Sensor]: Petoneer Smart Dot PTY010/TY011 Feb 6, 2024
@Ernst79
Copy link
Collaborator

Ernst79 commented Mar 4, 2024

BLE monitor only listens to passive BLE advertisments. If the sensor supports this, we might be able to add it, but I will need the passive BLE advertisements for that. See https://custom-components.github.io/ble_monitor/sensor_request for instructions.

@Psytoshgen
Copy link
Author

Psytoshgen commented Mar 9, 2024

nut sure that its what you need, but here what i found
[custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID dc234ec25f27: service data: [b'\x0f\x16P\xfdI\x00\x00\x08\xec4\x1e\x9e\xac\xc1J\xdc']manufacturer specific data: [b'\x17\xff\xd0\x07\x00\x00\x01\x00"\x1f\xdbs,\xf6\xe4Y\xb3j_\xdeMv\xa0\xa3']local name: TYUUID16: 20733,UUID128: None

[14:03:10][D][ble_adv:077]: address: DC:23:4E:C2:5F:27
[14:03:10][D][ble_adv:078]: name: TY
[14:03:10][D][ble_adv:079]: Advertised service UUIDs:
[14:03:10][D][ble_adv:081]: - 0xFD50
[14:03:10][D][ble_adv:083]: Advertised service data:
[14:03:10][D][ble_adv:085]: - 0xFD50: (length 12)
[14:03:10][D][ble_adv:087]: Advertised manufacturer data:
[14:03:10][D][ble_adv:089]: - 0x07D0: (length 20)
[14:03:10][D][sensor:094]: 'BLE Sensor': Sending state 73.00000 with 1 decimals of accuracy
[14:03:10][D][text_sensor:064]: 'BLE Devices Scanner': Sending state '{"timestamp":497007,"address":"DC:23:4E:C2:5F:27","rssi":-37,"name":"TY'
[14:03:10][D][ble_gateway:063]: [DC:23:4E:C2:5F:27] Packet 043E4102010001275FC24E23DC35020106030250FD0F1650FD49000008EC341E9EACC14ADC17FFD00700000100221FDB732CF6E459B36A5FDE4D76A0A3050954590000DB
[14:03:10][D][ble_client:047]: Found device at MAC address [DC:23:4E:C2:5F:27]
[14:03:10][W][component:214]: Component esp32_ble_tracker took a long time for an operation (0.07 s).
[14:03:10][W][component:215]: Components should block for at most 20-30ms.
[14:03:10][I][ble_client:085]: Attempting BLE connection to dc:23:4e:c2:5f:27
[14:03:10][D][ble_client_lambda:118]: Connected to TY
[14:03:11][I][ble_client:161]: Service UUID: 0x1800
[14:03:11][I][ble_client:162]: start_handle: 0x1 end_handle: 0x7
[14:03:11][I][ble_client:341]: characteristic 0x2A00, handle 0x3, properties 0x12
[14:03:11][I][ble_client:341]: characteristic 0x2A01, handle 0x5, properties 0x2
[14:03:11][I][ble_client:341]: characteristic 0x2A04, handle 0x7, properties 0x2
[14:03:11][I][ble_client:161]: Service UUID: 0x1801
[14:03:11][I][ble_client:162]: start_handle: 0x8 end_handle: 0xb
[14:03:11][I][ble_client:341]: characteristic 0x2A05, handle 0xa, properties 0x20
[14:03:11][I][ble_client:161]: Service UUID: 0x180A
[14:03:11][I][ble_client:162]: start_handle: 0xc end_handle: 0xe
[14:03:11][I][ble_client:341]: characteristic 0x2A50, handle 0xe, properties 0x2
[14:03:11][I][ble_client:161]: Service UUID: 0xFD50
[14:03:11][I][ble_client:162]: start_handle: 0xf end_handle: 0x16
[14:03:11][I][ble_client:341]: characteristic 00000002-0000-1001-8001-00805F9B07D0, handle 0x11, properties 0x12
[14:03:11][I][ble_client:341]: characteristic 00000001-0000-1001-8001-00805F9B07D0, handle 0x15, properties 0xe

also these services used by Petoneer Smart Odor Eliminator Pro SU001-T, which now tuya not xiaomi

BLE advertisement received from MAC/UUID dc234f49ba42: service data: [b'\x0f\x16P\xfdI\x00\x00\x08\xa1\xbf\x13\xc4&[D\xfa']manufacturer specific data: [b'\x17\xff\xd0\x07\x00\x00\x01\x00\x1f\x9cy\xac#s\xf2\xfc\xc1I\xf8\x0e\x88\x0f\xe0\xc7']local name: demoUUID16: 20733,UUID128: None

[00:55:10][I][ble_client:085]: Attempting BLE connection to dc:23:4f:49:ba:42
[00:55:11][D][sensor:094]: 'Uptime': Sending state 89.68400 s with 0 decimals of accuracy
[00:55:11][I][ble_client:161]: Service UUID: 0x1800
[00:55:11][I][ble_client:162]: start_handle: 0x1 end_handle: 0x7
[00:55:11][I][ble_client:341]: characteristic 0x2A00, handle 0x3, properties 0x12
[00:55:11][I][ble_client:341]: characteristic 0x2A01, handle 0x5, properties 0x2
[00:55:11][I][ble_client:341]: characteristic 0x2A04, handle 0x7, properties 0x2
[00:55:11][I][ble_client:161]: Service UUID: 0x1801
[00:55:11][I][ble_client:162]: start_handle: 0x8 end_handle: 0xb
[00:55:11][I][ble_client:341]: characteristic 0x2A05, handle 0xa, properties 0x20
[00:55:11][I][ble_client:161]: Service UUID: 0x180A
[00:55:11][I][ble_client:162]: start_handle: 0xc end_handle: 0xe
[00:55:11][I][ble_client:341]: characteristic 0x2A50, handle 0xe, properties 0x2
[00:55:11][I][ble_client:161]: Service UUID: 0xFD50
[00:55:11][I][ble_client:162]: start_handle: 0xf end_handle: 0x16
[00:55:11][I][ble_client:341]: characteristic 00000002-0000-1001-8001-00805F9B07D0, handle 0x11, properties 0x12
[00:55:11][I][ble_client:341]: characteristic 00000001-0000-1001-8001-00805F9B07D0, handle 0x15, properties 0xe
[00:55:11][I][ble_client:161]: Service UUID: 0xFFF0
[00:55:11][I][ble_client:162]: start_handle: 0x17 end_handle: 0x1c
[00:55:11][I][ble_client:341]: characteristic 0xFFF3, handle 0x19, properties 0x6
[00:55:11][I][ble_client:341]: characteristic 0xFFF4, handle 0x1b, properties 0x12

@Ernst79
Copy link
Collaborator

Ernst79 commented Mar 9, 2024

It has two messages in one advertisement

service data:
0f1650fd49000008ec341e9eacc14adc
0f = length
16 = uuid flag
50fd = uuid
49000008ec341e9eacc14adc = data

manufacturer specific data
17ffd00700000100221fdb732cf6e459b36a5fde4d76a0a3
17 = length
ff = manufacturer specific data
d007 = manufacturer id
00000100221fdb732cf6e459b36a5fde4d76a0a3 = data

Can't make much sense of it, looks pretty random to me. I tried to convert it to ASCI text, but it isn't text.

@Psytoshgen
Copy link
Author

Hi, thank you for quick answer.
I found nice app for phone - EFR connect, it's shows decoded data, I will try it today after work.

@Psytoshgen
Copy link
Author

Ive tried different ways, here what i found
07d0 manufacturer data
00000100221fdb732cf6e459b36a5fde4d76a0a3

raw data
020106030250fd0f1650fd49000008ec341e9eacc14adc17ffd00700000100221fdb732cf6e459b36a5fde4d76a0a3050954590000

lenght / type/ value
2 / 0x01 / 0x06
3 / 0x02 / 0x50fd
15 / 0x16 / 0x50fd49000008ec341e9eacc14adc
23 / 0xff / 0xd00700000100221fdb732cf6e459b36a5fde4d76a0a3
5 / 0x09 /0x54590000

I dont think that it helps much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new sensor Request for a new sensor waiting for data
Projects
None yet
Development

No branches or pull requests

2 participants