You could calculate and create your dimming curves with python in HABApp and then just call a script that writes the new values to I²C. If you plot the created dimming curves with matplotlib you can show them in the gui and check that they are to your liking.