The issue was already known to me. The values from Homey are from 0.1-1.0, but Tuya API needs other values. The first Tuya light bulbs needed value from 0 -255 for non color mode and needed 0-100 for color mode. Those values are now hardcoded and copied from original Home Automation project.
This was working well for a period of time, but Tuya started to use other light drivers, some are fully supported ( first generation), others partially supported( colors not working) and others aren’t supported at all( Zigbee lights with gateway) by the API. Apparently different ranges are needed now for those newer models.
The API is unfortunallity only telling it’s a light, but it doesn’t tell which model. So I can’t distinguish the different models, I only know it’s a light so I can’t implement different ranges for different models.