Strange one. I have a Tuya device running in HA using LocalTuya rather than the official (cloud-based) integration. In HA it works well, and I had successfully passed the Tuya switch into IOS HomeKit and was also able to control it from there – all as it should be.
Then I screwed up the LocalTuya and had to remove it, then re-add it, but should be no drama… added it back ok, works perfectly again, and was able to add it into HomeKit again.
However here’s the situation:
For particular reasons, I have two outdoor Areas defined in HA, one is called “Outdoor Lights” and one is called “Garden” and I have that replicated in HomeKit as ‘Rooms’.
Before I screwed it up, the device in question was in “Garden”.
When I added it back after fixing the screw-up the device ended up in HomeKit in the room ‘Outdoor Lights’. I think when I first added it back to HA I added it by mistake into the Area = Outdoor Lights but then I realised and reassigned it to the Area = Garden.
When I go into HomeKit and edit the accessory, to try to move it to a different room, it fails every time. In fact most of the time, you use the roller-selector in HomeKit to pick the new ‘Room’ and before you’ve even exited the page, it scrolls itself back to the original room. Usually you get a messaging saying “could not edit the accessory” or something like that.
The behaviour of the roller in the app to me suggests that HomeKit is being overridden by something; either there is something in the HomeKit app which is telling HomeKit it cannot change the room, or in real time HA is telling HomeKit “No, you can’t move this, it’s not in the Garden it’s in Outdoor Lights”.
Am running out of options. My next move is going to be to delete the whole HomeKit integration and start again afresh, on the basis that if all the mappings between HA and HK get reset (and assuming it’s now correct in HA) hard to see how it could go wrong.
But I hate to give up on a problem and bypass it, I really want to understand WHY it won’t let me move the HA device from one HK room to another. Any ideas on this welcome – my logic is if it happened once, it’ll happen again, and by the time it does the prospect of nuking my HK integration and starting again may be unthinkable.
Don’t delete what you’ve had set up (yet?). I have over 100 devices in HA, and while automations are all done in HA we use Siri to interact, and my wife still appreciates the HK app for her needs. I was also frustrated a short while back with the same issue (devices in wrong locations weren’t able to be edited or moved to their appropriate locations). Because I’m constantly poking around in HA I can’t quite recall specifics on how I got past the trouble, but I believe it was the Controller For HomeKit app that got me on my way.
I’ve had that app for a long time, but haven’t utilized it as much as in the past, as I bonded more with HA. Under Maintenance in that app there were quite a few errant entries listed that needed to be addressed. That then allowed re-integrating of affected devices to get back to normal. There have been more than a few updates to both HA and HK over the past year, which I’d surmise has something to do with it.
Main point being that I didn’t have to wipe it ALL and start from scratch with HK Bridge.
Thank you. Had never even heard of “Controller for HomeKit” so had to look up what it even is – I assume it gives some sort of lower-level ability to poke around in the HK registries etc. I am fairly convinced this issue is 100% inside HK (but still on this forum because the problem is a HA-presented device). You’ve opened a Pandora’s box for me now, turns out there are many such apps so I need to research which ones are good and most functional for my requirement.
Funnily enough my overall UC is exactly the same as yours – I never intended to get into HA but we’ve got a hotch-potch of “smart home” stuff and the only way my wife will ever use it is if things happen with Siri or a single button on the HK screen. I’m also planning to use HA for Adaptive Lighting (tried the IOS version but it’s not great and with my Hue it’s doubly not good).
I am at the beginning of the learning curve so I never like to dodge issues like this, I figure each time I hit a roadblock like this, if I fix it, I’m going to learn something.
So thanks for the tip. I’ll try it at the weekend. Otherwise it’ll be out with the nuke.