Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom-defined Dummy Switch makes Homebridge unpairable #52

Open
mklemm opened this issue Nov 22, 2018 · 0 comments
Open

Custom-defined Dummy Switch makes Homebridge unpairable #52

mklemm opened this issue Nov 22, 2018 · 0 comments

Comments

@mklemm
Copy link

mklemm commented Nov 22, 2018

Hi all,

I have implemented a solution for the KeyMatic lock device, which works out of the box with homebridge FHEM for the "lock" and "unlock" functionality, but not for "open".

In mu solution, "open" is triggered via an extra dummy switch that falls back to the "off" state after 2 s, and a "notify" device that connects to the "open" action of the KeyMatic.
In previous versions, my solution has worked pretty well, but since the last update of homebridge, homebridge-fhem, or iOS, my self-defined switch device messes up HomeKit, so that the whole homebridge becomes unresponsive in HomeKit when my switch device is in the configuration. If the dummy switch device is in the configuration before pairing the homebridge with HomeKit, it even gives you a pairing error and the Homebridge cannot be added to HomeKit.

My code for the dummy and notify devices lollows below:

defmod frontDoor dummy
attr frontDoor alias Haustür
attr frontDoor eventMap on:on off:off
attr frontDoor genericDeviceType switch
attr frontDoor homebridgeMapping clear On=state,cmdOn=on,cmdOff=off,valueOn=on,valueOff=off,default=off,timeout=500
attr frontDoor room _HomeKit
attr frontDoor setList on off
attr frontDoor webCmd on:off

defmod TuerAuf notify frontDoor.on set HM_4BCFFE open;; define frontDoor_off at +00:00:02 set frontDoor off

Am I doing something wrong? What has changed in the latest version that could invalidate the above code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant