Australia - Electrically Certified Hardware

Any luck Brad?
I’ve purchased one of the motion sensors looking to see if I can directly interface with it via BLE. Was thinking I could maybe use a ESP32 device to relay the info to home assistant.

Once it’s been paired to the grid connect phone app, the sensor is discoverable and can be connected to via Bluetooth low energy.
I’ve tried looking at it using hcitool and gatttool on a linux device. I needed to keep waking the device regularly before issuing commands.
It looks like it’s not implementing the full standards for BLE devices. I guess the next thing is to buy the hub and see if the BLE comms can be sniffed.
Tried this as root:

# hcitool lescan
D6:32:01:4D:23:BC tymesh1584662103
# hcitool leinfo D6:32:01:4D:23:BC
Requesting information ...
	Handle: 3585 (0x0e01)
	LMP Version: 1.2 (0x2) LMP Subversion: 0x8
	Manufacturer: Telink Semiconductor Co. Ltd (529)
	Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00

# hcitool lecc D6:32:01:4D:23:BC
Connection handle 3585
# hcitool ledc 3585
Could not disconnect: Input/output error
# gatttool   --interactive
[                 ][LE]> connect  D6:32:01:4D:23:BC
Attempting to connect to D6:32:01:4D:23:BC
Connection successful
[D6:32:01:4D:23:BC][LE]> 
(gatttool:21386): GLib-WARNING **: 13:56:53.496: Invalid file descriptor.

[D6:32:01:4D:23:BC][LE]> char-read-hnd 0x01
Command Failed: Disconnected
[D6:32:01:4D:23:BC][LE]> connect  D6:32:01:4D:23:BC
Attempting to connect to D6:32:01:4D:23:BC
Connection successful
[D6:32:01:4D:23:BC][LE]> characteristics
Error: Discover all characteristics failed: Request attribute has encountered an unlikely error
[D6:32:01:4D:23:BC][LE]> 
(gatttool:21386): GLib-WARNING **: 13:59:35.975: Invalid file descriptor.

malloc_consolidate(): invalid chunk size
Aborted (core dumped)
#

I also tried using esp32_ble_tracker: in esphome
Get this in the logs:

[10:00:27][D][esp32_ble_tracker:456]: Found device D6:32:01:4D:23:BC RSSI=-62
[10:00:27][D][esp32_ble_tracker:477]:   Address Type: PUBLIC
[10:00:27][D][esp32_ble_tracker:479]:   Name: 'tymesh1584662103'`