Habpanel button for dimmer status when controlled elsewhere

dear all,
i’ve got a habpanel to turn on all my smart lights individually,
it sends the value 100 or 0 to the dimmer (since it has no on/off or toggle function)

this works as i want to but the moment i turn a light on to lets say 30% with an other app or google assistant
the widget sees this as off…

any ideas how i can set the status to on if the value is larger than 0?

What kind of Item is this? You can send ON/OFF to Dimmer types.

You might want to share your widget code.

it’s just a default button made trough the gui,
how can i edit the code?