Developing an app for Danfoss Ally API

I use Tuya as well and I agree it’s a bit buggy however it supports the Danfoss sensor and if you put it in the same room as the thermostat it uses the sensor as temperature reference which is a significant feature imo. Danfoss Homey app doesn’t support this so hopefully this feature @Doekse this will be implemented as well if talks with Danfoss succeed.

Ok now everything really changed for me. I was pondering for a long time if I would "vibe-code” something regarding this and now I finally tried it out. And it worked like a charm. What I have now:

  • All thermostats are connected to Ally Gateway and are also controllable through the Ally App in my phone with all the features like “vertical mounting” etc
  • Homey connects to Danfoss Ally API and is able to set temperatures to all thermostats
  • I am also able to read all data from thermostats (27 values that contain data and the settings information for every thermostat)
  • Example information that I am able to get below - heating demand for each of my 7 thermostats in variables (value being 0-100). I can now show these also as insights graphs.

What I did:

  • I asked ChatGPT to write me the scripts in HomeyScript
  • After a few rounds I have a few scripts that take care of token retrieval and renewal, setting the temperatures and gets the data on 15 minute intervals and saves selected data values to Homey variables
  • This is not an app, so it’s not usable to anyone else but me - theoretically I could share the scripts, but the recipient should understand basic programming to use these
  • This basically took a few hours of my time and was much easier than I thought

Of course, it would be even better if there was an official app that connects to Ally API, but I am afraid that it would still be missing some features like getting the heating demand. So I might even still continue to use my solution.

So yeah, while I originally thought I would implement an app, I am completely happy with this solution now. Probably I could vibecode the app also quite easily, but I will leave that to experts, like Athom :wink: