Your AI can program your Homey automatically!
Did you know that you can log in to your Homey on the local network? Using this access you can have Cursor, Claude, Antigravity or any other AI, program your Homey automatically using HomeyScript. It modifies the scripts using AI and uploads them to Homey.
This is very powerful, and once it is set up, anyone can make advanced scripts without any programming knowledge.
Just tell the AI what you want done:
“Set up Light1. At sunset turn it on, at 01:00 off, at 06:00 on, at sunup turn it off. Make sure the long summer nights doesnt mess with the schedule.”
“Make Button1 control Light1. Pressing On once turns it on, pressing Off once turns it off. Pressing On twice or more increases the brightness by 10%. Pressing Off twice or more decreases it. Holding Off for more than 1 sec turns off all lights in the Kitchen.”
And you can control devices directly:
“Turn on Light1.”
The trick is to have the AI create flows for the device, that calls a HomeyScript that does all the work. And most importantly, a global script that runs every minute to trigger timers.
My github has some files to get you started, but once the AI is connected to Homey locally, it figures out most of it by itself.
datadoktor1/Homey-AI: Program Homey with Cursor, Antigravity or another AI IDE
