Sonoff T1 2CH with D1 dimmer SwitchMode11 unknown command

Hello

Im having trouble with the dimming part of my config.

I have these two (dimmer and sonoff t1 2ch ) on a group and they share everything.

If i use the below it works but the dimming is delayed.

Rule1
ON switch1#state=2 DO publish cmnd/bedroom_dimmer/POWER TOGGLE ENDON
ON switch1#state=4 DO publish cmnd/bedroom_dimmer/DIMMER %mem1% ENDON
ON switch1#state=5 DO mem1 - ENDON
ON switch1#state=6 DO mem1 + ENDON

If i use the following i get command unknown:

Rule1
ON switch1#state=2 DO POWER TOGGLE ENDON
ON switch1#state=4 DO DIMMER %mem1% ENDON
ON switch1#state=5 DO mem1 - ENDON
ON switch1#state=6 DO mem1 + ENDON

DIMMER seems to be the issue here. From my understanding is that the switch should send these values to the dimmer.

17:29:24.840 CMD: DIMMER
17:29:24.848 MQT: stat/main_bedroom/RESULT = {"Command":"Unknown"}

Screenshot 2023-08-10 at 18.26.45

If anyone could please help.

Thanks