Aqara H1 Smart Knob (Dimmer / Rotary Switch) for controlling a CCT Light (z2m)

Sorry for the long delay to get back to you!
I forgot that the script was in there, it is just what I use to turn on lights with a brightness and temperature that is conditional on the time of day/sun position.
So you can just change that to whatever action you would like to be triggered, it could just be a simple light toggle.