How to change absolute max and min values for a light

Hello,
I am starting with Home Assistant and trying to migrate all my Hue-lights into Zigbee2Mqtt. I have also bought some new zigbee LED stripes from LIDL, which can be integrated in the Hue system and also in Home Assistant using Z2M.
I have notice the following:

  • First I’ve integrate the LED stripes in the Hue system, the minimum brightness is really very dimmed (I find it very good because they work as a night light or ambient light). The maximum brightness level is in that case really poor!! My first impression was, that the LEDs are really bad, but it was ok for my purpose.

  • After that I moved the lights to Z2M and what I noticed was completly the oposit. At the minimum brightness level the brightness of the LEDs is too bright and at the maximum level is also very bright! That would confirm, the LEDs are not as bad as I thought and they could be dimmed from almost any brightness (even better than the Hue LEDs I also have) but they can also be really bright.

My question is: How can I edit the min and max absolute values of the brightness to be able to use the light with Z2M with its whole brightness spectrum?

I have also two oder different lights from Lidl with exact the same behavior.

Here are the Infos about the devices:
LED stripes:

Device type: Router
Zigbee Model: TS0505A
Zigbee Manufacturer: _TZ3000_riwp3k79
Description: Livarno Lux smart LED light strip 2.5m
Support status: Supported
Manufacturer: Lidl
Model: [HG06104A](https://www.zigbee2mqtt.io/devices/HG06104A.html#lidl-hg06104a)

Other lights (also LED stripes but they are built in a lamp):

Device type: Router
Zigbee Model: TS0505B
Zigbee Manufacturer: _TZ3210_z1vlyufu
Description: Livarno Home LED floor lamp, RGBW
Support status: Supported
Manufacturer: Lidl
Model: [14158704L](https://www.zigbee2mqtt.io/devices/14158704L.html#lidl-14158704l)

Thank you in advance!

Welcome!

Not sure how deep into the weeds you want to get. That said, if you search in GitHub for HG06104A, you get quite a bit of activity. From my experience for Zigbee devices, to quote ‘Gru’ to his Minions, “Not good Dave” :wink:

If I read correctly, this specific Tuya devices model number seem to have a abby normal setup for controlling color and brightness. Unfortunately, this is not uncommon for Tuya based device, whether based on Zigbee, bluetooth, WiFi or Dixie Cup and String based communication protocols.

I’m not sure where you are doing your testing with the devices setup in Zigbee2MQTT, directly at the Zigbee2MQTT web page for the light on in Home Assistant and an entity brought in from Zigbee2mqtt. But I would make sure you try to control the brightness and color directly at Zigbee2MQTT first, and the translation from Zigbee2MQTT to Home Assistant adds another layer where ‘interpretation’ of levels, color controls can get mixed up for lights especially.

If you cannot find a fix at this level, then you might have to venture down to the ‘device handler’ level in Zigbee2MQTT and either or both work there to a fix into the main line code or create a custom device handler that controls the light ‘you way’.

Do do some googling in GitHub and specifically Zigbee2MQTT in github for this device.

Good hunting!