It is pretty insane. And it is a really helpful tool. It does not always produce working code, but you can ask to fix problems with it. But I do think you need some basic Javascript knowledge to work with it. I didn’t even knew ChatGPT had Homey knowledge until I tried it.
The way I think it works best, is by sub dividing the program into sub sections. Try to find solutions to sub problems first, and then connect it all together.
Above code was first trying to delete a device on Homey. That had some complications, mainly a permission problem. A helpful developer on slack pointed me to the api-playground that probably could handle it (and it could).
Then I asked to iterate through all devices. It didn’t gave me the exact results I needed, but the ChatGPT example code gave me enough knowledge to fix the problem and connect everything together.
Here is an ChatGPT example where I ask for a HomeyScript that lists all devices, you can see it does not produce working code right away, but after I showed it the error it fixed the code for me:
It even explains what it is doing.
And it works:
Just play with it. It is free. Not only for programming but with almost anything you would like to know:


