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

ContactSensors plea for help #55

Open
Petahh opened this issue May 14, 2020 · 1 comment
Open

ContactSensors plea for help #55

Petahh opened this issue May 14, 2020 · 1 comment

Comments

@Petahh
Copy link

Petahh commented May 14, 2020

Dear all,

I was trying to make my ContactSensors work, I managed to get it modifying the ItemFactory.js and adding the following:

    if (item.type == "WindowMonitor") {
        item.type = "ContactSensorItem";
    }

That managed to add it in but only partially.

{"name":"Monitor dveří","type":"WindowMonitor","uuidAction":"117a8079-01e1-f87b-ffff1e112f9dee5f","room":"10826687-03e7-aab5-ffff986830a1a389","cat":"1008e6ce-0082-07b5-ffff986830a1a389","defaultRating":2,"isFavorite":true,"isSecured":false,"details":{"windows":[{"name":"Vstup","room":"108749be-02f0-ace0-ffff986830a1a389"},{"name":"Zahrada","room":"108749be-02f0-ace0-ffff986830a1a389"}]},"states":{"numOpen":"117a8079-01e1-f883-ffff1e112f9dee5f","numClosed":"117a8079-01e1-f885-ffff1e112f9dee5f","numTilted":"117a8079-01e1-f884-ffff1e112f9dee5f","numOffline":"117a8079-01e1-f886-ffff1e112f9dee5f","numLocked":"117a8079-01e1-f887-ffff1e112f9dee5f","numUnlocked":"117a8079-01e1-f888-ffff1e112f9dee5f","windowStates":"117a8079-01e1-f88a-ffff1e112f9dee5f"}},"117a8055-03e2-742d-ffff986830a1a389":

As it can be seen from JSON Type entry WindowMonitor contains subentries windows that is not reflected at all in homekit. Otherwise regardless if all doors are open or closed state is never changing in homekit.

IMG_1541

Any help appreciated.

@elmocito
Copy link

@Petahh - did you get it running?

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

2 participants