Tasmota + TuyaMCU + Multipress Button

I have the Treatlife DP10 dimmer. It is flashed with Tasmota 9.5.0 and it works.

I am trying to set it up so that, if there is no wifi connection, I can still somewhat control the dimmer function. Ideally I would like to do the following

1 click of button = toggle power (this is currently working)

2 clicks of button = set dimmer to 10%

3 clicks of button = set dimmer to 50%

4 clicks of button = set dimmer to 100%

I’ve been able to achieve something similar to this using MQTT however this device will not have wifi occasionally so I’d like to be able to control it independently.

I have figured out that:

TuyaSend2 2,500 = set dimmer for 50%

TuyaSend1 1,0 = off

TuyaSend1 1,1 = on

I just can’t figure out how to tie these commands into the button presses. On my other devices (non-Tuya based) I can use the following rule

rule1 on button2#state=10 do power0 toggle endon on button2#state=11 do publish cmnd/DP10-2_FE08EE/POWER toggle endon on button2#state=12 do publish cmnd/mic-bw902-999w-3/POWER toggle endon on button2#state=12 do publish cmnd/mic-bw902-999w-4/POWER toggle endon

but this requires MQTT

Is it possible to get the “button<>#state” from a TuyaMCU?

Thank you for any help you can provide.