SphtKr / homebridge-zway

Homebridge plugin for (better) HomeKit support of RaZBerry and Z-Way Server
ISC License
85 stars 38 forks source link

Water leak sensor show as incompatible device #113

Open dvd2000k opened 6 years ago

dvd2000k commented 6 years ago

In my configuration i have a fibaro leak sensor, tagged with homebridge.IsPrimary and Homebridge.Service.Type:LeakSensor but in home app it appears as incompatible. What can i do?

dvd2000k commented 6 years ago

This is the device information about the fibaro flood sensor (shown as not compatible):

{"data":{"creationTime":1507139046,"creatorId":1,"customIcons":{},"deviceType":"sensorBinary","h":1470040552,"hasHistory":false,"id":"ZWayVDev_zway_32-0-113-5-2-A","location":0,"metrics":{"icon":"alarm_flood","level":"off","title":"Sensore Allagamento","isFailed":false,"modificationTime":1507144965,"lastLevel":"off"},"order":{"rooms":0,"elements":0,"dashboard":0},"permanently_hidden":false,"probeType":"alarm_flood","tags":["Homebridge.IsPrimary","Homebridge.Service.Type:LeakSensor"],"visibility":true,"updateTime":1507187578},"code":200,"message":"200 OK","error":null}

then I created in zway server a virtual flood sensor that is shown correctly in home app and have this informations:

{"data":{"creationTime":1507194671,"creatorId":33,"customIcons":{},"deviceType":"sensorBinary","h":-1044436334,"hasHistory":false,"id":"HTTP_Device_sensorBinary_33","location":0,"metrics":{"icon":"flood","level":"off","scaleTitle":"","title":"Flood sensor"},"order":{"rooms":0,"elements":0,"dashboard":0},"permanently_hidden":false,"probeType":"","tags":["Homebridge.IsPrimary","Homebridge.Service.Type:LeakSensor"],"visibility":true,"updateTime":1507194901},"code":200,"message":"200 OK","error":null}

Any ideas?

dvd2000k commented 6 years ago

I have found the culprit: i have changed in index.js the probetype "alarmSensor_flood" in "alarm_flood" and now is shown correctly as leak sensor in homekit.