Given Audioflow devices support Alexa I'm sure there's a way to integrate them with Hubitat generally, but I'm wondering if anyone has figured out a local control method?
I forgot to mention there's an MQTT based Home Assistant integration that Audioflow willingly endorses on their website (someone else made it but cool to see the company allowing it): https://github.com/Tediore/audioflow2mqtt
Okay yeah, I found the issue I was referring to with the API. At /zones you can find the state of all zones with IDs from 0-3 (the max value depending on which switch you have, of course). The API documentation says the state of a specific zone can be found at /zones/x where x is a value from 1-4. While that's already strange enough since the zones start at 0 at /zones, what's even stranger is that /zones/1 returns the value for zone 2, /zones/2 returns the value for zone 3, and so on. Oddly, /zones/4 returns the value for a zone with an ID of 5 which doesn't exist and, on my end at least, appears to always be on. /zones/0 doesn't exist, so you can't get the state of the first zone only.
It's not really a big deal since you can just reference the /zones endpoint and get whatever zone state you want (which is exactly what I did), but I figured I'd share since it's a weird issue. I did let the company know about the API issue, but I unfortunately haven't heard back.
Do you happen to be aware of any Hubitat drivers for similar TCP-socket controllable devices? I'm looking for something I could adapt to work for this purpose, rather than trying to write a driver literally from scratch.