HomeKit: support for additional accessory types

I do not know if you know him, I’ve just started.
I’m making changes to the flow for integrated node-red with Openhab to manage Home apps (Lights, Blinds, Door, etc …)
I did a lot of testing and a lot of time with Openhab’s Homekit binding, too many problems and lack of accessories.
Above all there is no news on future updates, it seems a dead binding, I hope to be wrong…


1 Like

For the blinds I used this link

Why not. Give it a try and replace with my version.

Otherwise enabling debug log could be helpful. Maybe you can compare what happens when it‘s working and when not.

Ok, this is the .jar-file i also use at the Moment

Still the same for me.

I hope that the HomekitBinding has a future like the Hue-Binding, that has now support for the sensors :+1: :metal:

Meanwhile i’m very impressed of node-red to integrate missing HomeKit “Things/Tpypes” in openHAB :smiley:

I just saw this thread had some new comments about node red / homekit. I know @gozilla01 used some of my ideas from comments on my post.

I put together a whole tutorial thread about how my setup works- take a look and feel free to ask questions if I’ve missed anything.

My node-red + HomeKit + OpenHAB setup

@crxporter
I started from your tutorial, thank you very much, I had a new world!

Thanks @crxporter
Does your setup also work with KNX?

I can’t see why it wouldn’t. Essentially if it’s supported by openhab, it’ll be programmable like this. The “input” or “output” is always to/from an openhab item through the rest api so anything with a predictable state (on, off, decimal, open, closed, string, hue/saturation/value, etc) can be used in your nodered functions.

Tried that - works equal to the previous .jar-version :disappointed:!

  • restarted OH
  • Refreshing homekit (bundle:refresh org.openhab.io.homekit)

IMG_7615|281x499

ALL items in “refresh”-mode - hate it…

Take a test with node-red, trust me

Put some time into the nodered setup - I wish as much as anyone I could keep everything contained in one simple openhab system but the truth is some things (homekit) are not working how I want.

I don’t know how to fix the binding but the great thing about openhab is the open part- works with just about anything. After initial setup oddities - I haven’t had ANY problems with the nodered homekit setup. I think my home internet went down once and things didn’t work? But as for the constant “updating” and lack of items and various other bugs… they’re gone.

I saw others on the forums doing nodered homekit and was reluctant for a while to install/learn something new but if you’re able to install a binding from a jar file you’re way ahead of my programming abilities and should have no trouble picking it up.

i´m digging into it, but don´t know how to combine my knx- things/items/rules with the node-red environment.
meaning, don´t know how to start here…

Once you’ve installed nodered with the openhab node (installed by default with openhabian-config nodered install) then you’ll see an item on the left column in nodered called “openhab” you drag that in, set up the connection to openhab (localhost if it’s on the same computer) and link it to any openhab item.

Next step- put a “debug” node next to it and flip the switch to see state updates in the nodered debug tab.

Edit - good idea with the new post. Flag me in it and I’ll be sure to watch and help where I can.

@bernd1109
Open a new post.
We do not dirty this

Edit: Flag me in it and I’ll be sure to watch and help where I can.

Edit: new post

1 Like

Hi guys,

I’ve been following this thread for quite a while and got frustrated with the unreliable behavior of openHAB and it’s HomeKit integration (I had a lot of problems after startups, before the item states were NULL sometimes accessories within HomeKit would disappear and re-appear sometime later in the default room).

Just as a note, my solution was Homebridge (small nodeJS server for integrating third party applications into HomeKit). It offers a rock-solid integration into HomeKit so-far for me. There is tommasomarchionni’s plugin available, which also uses tagging within the item files (as mentioned earlier I wanted to get away from that). Therefore I created my own plugin that I am currently testing. So if you are open to the idea maybe give it a spin, it might solve your problems!

Nevertheless big shout-out to @maihacke! Your addition to openHAB’s plugin really helped me get started and investigate further!

Cheers,

Frank

3 Likes

@steilerDev Great plugin. Just installed it in a docker environment on a Synology using the latest oznu:homebridge-noavahi and seems to running great. Will let you know if I run into an issue.

Small tip: update your image of home bridge if you have an older one because on my first try it was complaining about out of date nodejs. The refresh of the image resolved this.

I found a small issue with the plugin in my environment.
If i open a rollershutter and either open/close it completely or set it to a %, the command is executed correctly but the tile on home app keeps showing ‘Opening’/‘Closing’ and displaying a spinning wheel. It never gets to the “Open”/“Closed” state unless I quit home app and reopen it. Only than the spinning wheel is gone and ‘Open’ or the “% Open” is displayed. Moving to a different room and back does not help. Looks like there is breakdown in communication somewhere.

Let me know how I can help to debug.
For the record the issue did not occur with the modified jar for @malhacke where he added rolershutter support

Hi @extric99, thanks for your feedback.

Could you please open an issue on Github and follow the template instructions, providing logs and everything. This will keep this thread clean and helps me better organize the issues on the project.

Thank you!

In version 2.5.0, there will be contact sensors .