HomeKit holy grail: homebridge-openhab2-complete

Actually HomeKit (afaik) does not know, and/or care about the temp unit of your thermostats. The tempUnitsetting is actually a way to manipulate your device and specify which unit the device should display (and in my implementation this setting is a dummy, not doing anything). Where do you see the Fahrenheit/Celsius issue exactly, since I am not aware, where HomeKit would display and/or require you to specify the temperature.

Anyway, please open a Github issue on this, answering my question, keeping track of issues in this thread is always painful.

Completely understandable. Will do. I wanted to make sure I just wasnā€™t missing a configuration parameter.

Doug

@steilerDev Are you able to provide a complete example script with at least two different types, as in the second example of your configuration.

I am unfortunately only able to adapt scripts and do a little hard with standalone development without at least one example. Thanks a lot and in the hope that script kiddies like me are also welcome.

Hi @frankie.delure,

I am not quite sure what you are looking for. Please open a Github issue or message me directly with more details. I am happy to help.

Thanks,

Frank

Is there any option to bind the rooms to the devices?

Another question: will the plugin support the multi sensor capabilities of iOS 13

@frankie.delure: Not quite sure what you mean with either of your questions.

I donā€™t think that there is any possibility to bind rooms to devices from the HomeKit device itself (or a Homebridge plugin). You always have to configure your room to device configuration upon initial setup inside the Home.app. If you have an homebridge plugin, that can do this I am happy to look into this (this actually annoys me as well)

Do you have any ressources on ā€˜multi sensor capabilities in iOS 13ā€™, currently I am not on the betas, but if there is a great new HomeKit feature I would love to support it :slight_smile:

Hi @steilerDev

i just started using your homebridge-openhab-complete plugin and managed to get a lot of things working.
Unfortunately i canĀ“t get my temperature sensors working.
TheyĀ“re both connected via zwave to oH and added to the configuration of homebridge under the oH2-complete platform.
None of them is shown in the logs or in Homekit.

Items in oH:

Number itmFIBtemp2 "Temperatur Flur [%.1f Ā°C]" <temperature> (Flur, gPersist) ["CurrentTemperature"] {channel="zwave:device:ZME-UZB1:node2:sensor_temperature"}
Number coFIBtemp "Temperatur Badezimmer [%.1f Ā°C]" <temperature> (Badezimmer, gPersist) ["CurrentTemperature"] {channel="zwave:device:ZME-UZB1:node3:sensor_temperature"}

I tried two ways of adding them:

                {
                    "name": "Temperatur Flur",
                    "type": "temp",
                    "item": "itmFIBtemp2"
                },
                {
                    "name": "Temperatur Bad",
                    "type": "temp",
                    "item": "coFIBtemp"
                }
-----------------------------------------------------------------------------
                {
                    "type": "temp",
                    "items": [
                        {
                            "name": "Temperatur Flur",
                            "item": "itmFIBtemp2"
                        },
                        {
                            "name": "Temperatur Bad",
                            "item": "coFIBtemp"
                        }
                    ]
                }

Log:

[2019-9-16 6:23:57 PM] Loaded config.json with 0 accessories and 2 platforms.
[2019-9-16 6:23:57 PM] ---
[2019-9-16 6:23:57 PM] Loaded plugin: homebridge-config-ui-x
[2019-9-16 6:23:57 PM] Registering platform 'homebridge-config-ui-x.config'
[2019-9-16 6:23:57 PM] ---
[2019-9-16 6:23:59 PM] Loaded plugin: homebridge-openhab2-complete
[2019-9-16 6:23:59 PM] Registering platform 'homebridge-openhab2-complete.openHAB2-Complete'
[2019-9-16 6:23:59 PM] ---
[2019-9-16 6:23:59 PM] Loading 2 platforms...
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Initializing openHAB2-Complete platform...
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading accessory types...
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type airpurifier
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type air
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type co2
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type co
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type contact
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type door
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type fan
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type faucet
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type filter
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type garage
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type heatercooler
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type humidifier
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type humidity
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type irrigation
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type leak
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type light
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type lux
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type lock
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type motion
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type occupancy
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type outlet
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type security
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type smoke
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type switch
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type temp
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type thermostat
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type valve
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type window
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Loading and activating accessory type windowcovering
[2019-9-16 6:23:59 PM] [openHAB2-Complete] Waiting for openHAB host (http://192.168.2.10) to come online...
[2019-9-16 6:24:12 PM] [openHAB2-Complete] openHAB host (http://192.168.2.10) is online, now syncing...
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Syncing all items & types from openHAB
[2019-9-16 6:24:12 PM] [openHAB2-Complete] 'OpenHAB2 - Complete Edition' plugin loaded - Version 1.0.0
[2019-9-16 6:24:12 PM] [openHAB2-Complete] ---
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Loading accessories from configuration, this might take a while...
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Added accessory WohnungstĆ¼r (Type: door)
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Added accessory Schloss (Type: lock)
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Added accessory Bewegung Flur (Type: motion)
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Added accessory Fenster Schlafzimmer (Type: window)
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Added accessory Fenster Badezimmer (Type: window)
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Added accessory Fenster KĆ¼che (Type: window)
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Added accessory Heizung Schlafzimmer (Type: thermostat)
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Added accessory Heizung Badezimmer (Type: thermostat)
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Added accessory Heizung KĆ¼che (Type: thermostat)
[2019-9-16 6:24:12 PM] [openHAB2-Complete] Syncing all item values from openHAB
[2019-9-16 6:24:13 PM] [openHAB2-Complete] Finished loading 9 accessories from configuration
[2019-9-16 6:24:13 PM] [openHAB2-Complete] ---
[2019-9-16 6:24:13 PM] [openHAB2-Complete] Initializing platform accessory 'WohnungstĆ¼r'...
[2019-9-16 6:24:13 PM] [openHAB2-Complete] Initializing platform accessory 'Schloss'...
[2019-9-16 6:24:13 PM] [openHAB2-Complete] Initializing platform accessory 'Bewegung Flur'...
[2019-9-16 6:24:13 PM] [openHAB2-Complete] Initializing platform accessory 'Fenster Schlafzimmer'...
[2019-9-16 6:24:13 PM] [openHAB2-Complete] Initializing platform accessory 'Fenster Badezimmer'...
[2019-9-16 6:24:13 PM] [openHAB2-Complete] Initializing platform accessory 'Fenster KĆ¼che'...
[2019-9-16 6:24:13 PM] [openHAB2-Complete] Initializing platform accessory 'Heizung Schlafzimmer'...
[2019-9-16 6:24:13 PM] [openHAB2-Complete] Initializing platform accessory 'Heizung Badezimmer'...
[2019-9-16 6:24:13 PM] [openHAB2-Complete] Initializing platform accessory 'Heizung KĆ¼che'...
[2019-9-16 6:24:13 PM] [Config] Initializing config platform...
[2019-9-16 6:24:13 PM] [Config] Spawning homebridge-config-ui-x with PID 32074
[2019-9-16 6:24:13 PM] Loading 0 accessories...

IĀ“m out of ideas why this doesnĀ“t work.

kind regards
Michael

Hi @Bredmich,
I want to keep this thread clean and donā€™t want to miss your issue, therefore please open an issue in Github.

Please keep in mind to post your full configuration file there as well as the debug log of homebridge (the bug template tells you how you can get this)

Thank you,

Frank

HI @frankie.delure, now that I have an ios 13 device to test this I was able to implement that feature. Currently you would need the latest commit on the master branch, but v1.1 will have the grouping feature available!

For the room association it seems this is not possible for a HomeKit device to propagate this information to the Home.app. The room concept seems to be an Home.app feature and not a HomeKit feature, sorry!

Thanks for supporting it @steilerDev - from my point of view it is a great improvement by Apple. How do I install v 1.1? I still get 1.0 with npm @latest. Sorry not familiar with npm. :crazy_face:

@frankie.delure I just published v1.1.0 to npm, therefore you are now able to install it directly through npm :slight_smile:

@steilerDev Wonderful and thank you - just updated. My iOS does nevertheless not offer the option how to ā€œarbitrary group items using the grouping feature of iOS 13ā€. When I open the setting of either the temperature or the humidity item there is no option available - is there a specific Numeric Sensor that combines both temperature and humidity?

Hi there,
Iā€™m frustrated. Well, Iā€™m actually exited because of this great add on by @SteilerDev as I have a complex Niko Home Control setup I want to implement into HomeKit of Apple. Yet, Iā€™m a complete newby in this. That said, I came to the point where Iā€™ve successfully:

  • installed Homebridge on my Synology NAS with already my TaHoma box connecting to it and working in the Homekit app of apple
  • installed OpenHAB on a Raspberry Pi 3+ and added my Niko Home Control setup into it.
  • Coupled OpenHab with HomeBridge using the add on of @steilerDev. And with successfully I mean that the log of my HomeBridge is telling me that OpenHAB is connected to my HomeBridge server and that my accessories as loaded (currently only 1 as I want to make sure the connection is working before I start implementing my complete Niko Home Control setup).

1 last hurdle to take: paring with homekit app of Apple (I really feel that this is the very last hurdle after many hurdles Iā€™ve taken myself :-)). When adding an accessory, I see OpenHAB as an accessory, yet when adding the Homebridge pairing code, the pairing isnā€™t successful.

I realize this is probably a newby questions, but after reading through many thread, Iā€™m out of ideas. When checking Paper UI, do see that the Homekit integration is running as a service. Is this creating a conflict? I did change the pairing code of the Homekit integration add so that itā€™s not the same pairing code as Homebridge, yet that didnā€™t do the trick. So basically, Iā€™ve got everything setup, only the pairing isnā€™t working!!

Thanks for considering my (most probably) easy to solve issue.

Cheers,
Toon

Try to delete the persist folder in your homebridge folder. And maybe set another code.

I can see my NHC items in Homekit! I did what you suggested + I also removed homebridge accessory from Homekit and re"pair"ed. Then I saw the new items.

To be fair, I think I also wrongly assumed that I had to pair openHAB with Homekit, which isnā€™t the case. Because Homebridge is paired, the NHC items are activated automatically in Homekit once they are put in the config.json file and Homebridge is rebooted. What confused me was the presence of openHAB accessory in Homekit which was available for pairing. But in hindsight this was probably the Homekit Integration service which is by default active in openHAB paperUI.

Long story short, I can finally ask Siri to turn on my lights and shutters. Oh boy oh boy!
Thank you @frankie.delure for the assistance.
Thank you @steilerDev for this great add on.

Great to hear everything is working for you now @tderoeve :slight_smile: enjoy your homekit enabled smart home!

Hi @frankie.delure,

the following works very well for me (inside the accessoies part of the config.json:

{
    "type": "group",
    "name": "AZ Sensoren",
    "batteryItem": "AZ_B_Praesenzmelder",
    "batteryItemThreshold": "40",
    "items": [
        {
            "type": "lux",
            "name": "AZ Lichtsensor",
            "item": "AZ_S_Licht"
        }, {
            "type": "occupancy",
            "name": "AZ PrƤsenzmelder",
            "item": "AZ_S_Praesenz"
        }, {
            "type": "smoke",
            "name": "AZ Rauchmelder",
            "item": "AZ_S_Rauch"
        }
    ]
}

This gives me:

Not quite sure, where your problem lies.

@steilerDev does your add-on support configurable temperature limits for thermostats? I looked at the documentation but couldnā€™t find anything related.

Iā€™m currently using the homekit addon and was hoping this would be implemented at some point, but unfortunately that has not been the case (see related github issue for details).

Since the range of the temperature slider in the Home App / Control Center is determined by these limits, it would facilitate setting the target temperature if they were configurable.

Iā€™m thinking about migrating to your add-on since it supports a lot more devices and configurable temperature limits would make it even more appealing :wink:

Hi @weakfl, I am not quite sure what you mean with temperature limits, but please go ahead, open a Github issue describe the functionality/use case a little bit more detailed and I will look into it.