merdok / homebridge-miot

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

Linptech Pressure sensor #600

Closed chrhee21 closed 3 months ago

chrhee21 commented 3 months ago

Device model linp.senpres.ps1bb

Device name Linptech pressure sensor

Does the device require a MiCloud connection? It seems that. After using Mi Cloud connection, device could be seen in Home Kit.

Anything special about the device? Device can be seen in Home Kit. But its property is not shown in HomeKit 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, pressure-presence-state can be seen as presence in Homekit. But, state is not correct. All the time absence.

Pressure sensor
merdok commented 3 months ago

You need to modify the config.json manually. The value type is boolean but when you use the ui it will always use a string. You need to remove quotas around "true" in the config.json manually then it should work.

chrhee21 commented 3 months ago

Thanks a lot. It works perfectly.