Switch Light on/off on OH3 using ECMA script and HUE Dimmer Switch

exactly what I’ve been searching for …thank you!