Dimmer function

Hi there

I’m wondering how to make a dimmer function using magic?
It’s like I’m missing a function in the magic or from the thing?

Expected behaviour for dim up:

IF BUTTON LONGPRESS UP
THEN DIM "device" to 100% over 5(?) seconds
IF BUTTON RELEASE
THEN STOP DIM on "device"

Expected behaviour for dim down:

IF BUTTON LONGPRESS DOWN
THEN DIM "device" to 1% (or 0) over 5(?) seconds
IF BUTTON RELEASE
THEN STOP DIM on "device"

Hi,

This, while it seems like an easy thing to do, actually is way more complicated than it should be because literally each and every “buttons” device out there works different in how it reports button presses.

Anyhow, if both of those devices you’re trying to link are ZigBee devices, then you may be in luck: In that case I’d suggest to go to the ZigBee settings, then pick the remote control and add a binding. Select the endpoint that contains the LevelControl cluster. As target device select your light, and again the endpoint hat contains the LevelControl cluster. Then select that cluster and create the binding.

If one of the devices is not a ZigBee device, then I can’t give a general advice as it really depends on what button presses the remote produces or which commands the light takes.