I need some help with controlling accessories programmatically, not just by user interaction with the normal switches and sliders. I'm working on smart controls that, for instance, might open a window depending on some environmental variables.
I've been able to add my app into a view within HomeKit Catalog, so that's cool, but I cannot make the final connection where my decision-making app can take control and change the characteristics of an accessory; to turn on a light, change the thermostat setting, open a window, whatever. HomeKit is a relational database and I suppose I need to write to records in that database but it's not obvious (to me) how to do that, even after reading the developer guide. (One issue is that I'm trying to do this in Swift, and the developer guide is Obj-C.)
Seen anything like that?