I have a iDevices switch. It’s currently connected through the HomeKit component to Home Assistant. HA can control and automate the switch. But now i want to use the HomeKit plugin to “push” the switch to the HomeKit app on my iOS.
i added HomeKit: in my configuration.yaml, without any include or excludes parameters, and the switch never shows up in the HomeKit app on my iOS. In HA the iDevices switch is seen as a switch.
Anybody else having this issue? The iDevice switch is a HomeKit switch, and it’s paired with HA as a HomeKit device, and i really don’t understand why HA can’t forward the switch back to the HomeKit app on my iOS.
I have added an input_boolean in home assistant that mirrors the state of the idevices switch. Homekit picks up the input_boolean which I named idevices switch. I can now control the switch in HA and homekit. Works great.
Reviving an old post, but I’ve got the same problem, and there’s precious little about this issue in the forums… @jamhap64, could you post some further details regarding how you used input_boolean to pull that off? The official HA documentation on that topic didn’t help me out much.
Does anyone know if iDevices is meant to be supported by the HomeKit component anyway? One would think that a switch is a switch, but maybe that’s not the case. I don’t see iDevices in the list of supported manufacturers on the HA HomeKit site, but I don’t know how that plays into expectations.
Use homekit controller to add idevices switch to home assistant. The idevices switch must be removed from homekit if it is currently paired with homekit. I named mine outdoor_switch
Create an input booolean in HA. I named mine hk_outdoor_switch.
Create automations in Ha that turn on hk_outdoor_switch when outdoor_switch is turned on and turn off hk_outdoor_switch when outdoor_switch is off.
Create two more automations that do the opposite. Turn on outdoot_switch when hk_outdoor_switch is turned on and do the same for off.
Now use homekit component to expose hk_outdoor_switch (input boolean) to homekit.
Now when you switch on hk_outdoor_switch in homekit, it will switch on hk_homekit_switch and outdoor_switch in HA.
Seems like a lot of work, but it is only adding 4 simple automations and an Input Boolean to HA.
Basically, homekit component doesn’t work with idevices, but it works well with input booleans. So, use automations to make idevices trigger an inout boolean that is exposed to homekit component.
Expose to homekit as per usual. So far this works without any automations… both switches (the one exposed to homekit and the original iDev switch in HA) stay in sync.
An update here… after realizing that there’s no way to update the firmware or customize dimmer settings/etc. on iDevices added to HA (because the iOS app doesn’t recognize them), it occurred to me that the easiest way to do this might be to create a virtual switch in HA that can be automated and exposed to HomeKit. Then in HomeKit one could use the automation feature to activate a scene or whatever. Gonna try it this weekend…
FWIW, this solution works flawlessly…
You can leave the iDevices switches managed by HomeKit
Within HA you need to create a virtual light for each HomeKit light:
That will give you a new “light” in HomeKit. From there you need to build four automations in Home.app for full functionality bi-directionally:
When HA light turns on, turn on HomeKit light
When HA light turns off, turn off HomeKit light
When HomeKit light turns on, turn on HA light
When HomeKit light turns off, turn off HA light
You should now be able to turn this light on/off from either HA or Home.app. However, the light will remain paired with HomeKit and not HA.
The reason I personally went down this route is that I could never get the iDevices switches to pair with Home.app. If I factory reset the switch, to get it on the WiFi, I had to pair it with HomeKit. When I unpaired it from Home.app, HA wouldn’t pair with it.
If anyone knows how to handle this on the Home.app side with fewer than 4 automations, I’d love to know how. I also cannot seem to manage the dimming either from HA, but that wasn’t really an issue for me.
Unfortunately, any time you change your device_class (input_boolean, switch, light) you’ll have to rebuild your automations on the HomeKit side as the devices disappear. Oddly, they still sort into the proper rooms, I suppose because they have the same names? It’s kinda weird.
Solution for wall switches anyway: you can add the Currant wall switches to SmarrtThings and port it to HA with no need for a SmartThings hub. Then it comes into HA as a native switch and works reliably when exposed to HomeKit. At $30 each with two controlled outlets, I’d rather spend it than struggle. iDevices products were always problematic for me anyway.