PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 43 forks source link

Door contact shown as lock #98

Closed madcat-nl closed 7 years ago

madcat-nl commented 7 years ago

Hi,

i have a few reed contacts connected to my raspberry pi which notice when a door is open or closed. Within domoticz i have it set as a "Door contact" (but i also tried it as a contact)

I have installed homebridge in combinarion with this great plugin and all the sensors are loaded from the room i have specified, but the contact sensors are seen as a lock. it seems that IOS is receiving a Service.LockMechanism instead of a Service.ContactSensor.

How can i change this?

rswilem commented 7 years ago

I will have a look! Keep you updated.

rswilem commented 7 years ago

Hi @madcat-nl

Could you try version 2.0.11 and see if your issue is resolved? Updating can be done through npm.

PS. If you encounter any problems try and remove your ~/.homebridge/accessories and ~/.homebridge/persist folder. Keep in mind you'll have to repair your homebridge though.

madcat-nl commented 7 years ago

Thanks for the quick fix, it works brilliant!

What also is great now, is that in the home app of IOS you can set if it is a contact sensor on a door, window or something else.