TUYA Dimmer Automation Scene Controller

I am trying to use automations based on the dimmer to change bulb colors or modes.

For example when the dimmer is on 7% I want to change the bulb to Red, Dimmer set to 15% Change the bulb to daylight and 100% brightness.

how are you integrating the dimmer?

show us what you have done so far and we point down the right track