What I'd also like to do is get the status of an accessory (e.g., is the front porch light on?) so I can use KM programming instead of using the limited abilities of the iOS Shortcuts app. I'm tired of banging my head against the wall trying to do more than basic control flow in Shortcuts and want to use what is available in KM instead.
I've been doing this for weeks in the Monterey macOS beta. It works.
In Big Sur it was possible using tricks.
The first trick was to use the Home App, capture the screen, and use OCR and mouse clicks. Very inconvenient. I wrote code that monitored my home's temperature and sent me a text if it dropped too low.
The second trick was to use "Type to Siri" to get KM to send commands to Siri like "Turn on all the lights." That was surprisingly effective but I don't know if I can find my KM code for that. It let you control devices but had no way of fetching data from them.