Hello, I hope this is the right forum. I have a weird request. I tried using claude.ai to convert a home assistant component into something that could be supported on HE. It produced a series of artifacts and mentioned some key differences. Now, it has been a long time since I produced code myself in my day job (I am now a solutions architect), but I am still able to understand code when push comes to shove. However, in my attempt to try to double-check AI (it is AI after all). it's limitations/differences (and possibly resolve them) are a little daunting to have to figure out. Could someone more used to coding HE help me out to understand whether the AI is correct? As such, I haven't tested the code because if it is incorrect, I can either get it to do what is needed (or shove myself into coding it myself
)? The artifacts are in the following github: hubitat-androidtvremote-conversion:
And the excerpt from the AI chat on its limitations/differences:
The Home Assistant implementation uses the androidtvremote2 Python library directly, but Hubitat's Groovy environment has limitations:
- No Protocol Buffers support - Bridge server handles this
- No persistent TLS sockets - Bridge maintains connection
- Bridge architecture - Hubitat → HTTP → Bridge → Android TV
PS> I have successfully gotten the AI to generate a Groovy driver based on an API documentation PDF publicly provided by Ambivision Pro and it works beautifully. But, I wanted to try something a little hardier to see if it could get it to produce drivers that would ordinarily be a little more complicated to get done.