merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
391 stars 61 forks source link

Support for Linptech Human Presence sensor #599

Closed chrhee21 closed 3 months ago

chrhee21 commented 3 months ago

Device model linp.sensor_occupy.hb01

Device name Linptech human presence sensor

Does the device require a MiCloud connection? It seems that. Without Mi cloud, device was not recognized by Homebridge.

Anything special about the device? By using MiCloud connection, sensor was added. But, presence property was not shown properly.

merdok commented 3 months ago

Thanks, for the request! Will check it out!

chrhee21 commented 3 months ago

I configured property monitor like below. By doing this, occupancy-sensor:occupancy-status can be seen as presence in Homekit. But, state is not correct. All the time absence.

Presence sensor
merdok commented 3 months ago

This is the same issue as in your other device. Need to modify config.json manually.

chrhee21 commented 3 months ago

Thanks a lot. It works perfectly.