I have 3 Moes dimmer in my setup.
I set the max and min values for my lamp but these values are ignored in Home Assistant.
If I use the Dashboard and the scale of 0-100% I can see that 100% is always above the max value.
I also opened up a github issue, but I don’t know which information is missing.
opened 10:28AM - 30 Apr 24 UTC
needs-more-information
integration: mqtt
### The problem
I use a zigbee dimmer which has max and min values for its brig… htness.
They are setup correctly and according to my zigbee2mqtt log they are published to mqtt and home assitant.
They seem to be ignored when it comes to dimming. If I use the percentage bar the values are quickly exceeded and have no effect.
### What version of Home Assistant Core has the issue?
core-2024.4.4
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
mqtt & zigbee2mqtt
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/mqtt/
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
from the z2m log:
Info 2024-04-30 12:20:40MQTT publish: topic 'zigbee2mqtt/EsstischLicht', payload '{"brightness":54,"countdown":0,"light_type":"led","linkquality":184,"max_brightness":150,"min_brightness":15,"power_on_behavior":"off","state":"OFF","switch_type":"momentary"}'
from the HA log:
2024-04-29 17:08:18.172 DEBUG (MainThread) [homeassistant.components.mqtt.models] Rendering incoming payload '{"brightness":55,"countdown":0,"light_type":"led","linkquality":188,"max_brightness":150,"min_brightness":15,"power_on_behavior":"off","state":"OFF","switch_type":"momentary"}' with variables {'entity_id': 'select.esstischlicht_switch_type', 'name': 'Switch type', 'this': <template TemplateStateFromEntityId(select.esstischlicht_switch_type)>} and Template<template=({{ value_json.switch_type }}) renders=505>
```
### Additional information
_No response_
Device:
Zigbee-Modell
TS0601
Zigbee-Hersteller
_TZE204_dcnsggvz
Hersteller
TuYa
Modell
TS0601_dimmer_5
The problem still persists. Help would be much appreciated
petro
(Petro)
May 28, 2024, 1:25pm
3
HA doesn’t support this. HA discovery json light schema doesn’t support min or max truncating of brightness.
thanks! is there no way that the % scale for dimming can be adjusted to the min and max values?
petro
(Petro)
May 28, 2024, 1:44pm
5
If you manually provide the MQTT discovery information, you can do anything you want with the light and templates. The scale is just a scale, it will always just scale the value.
how can I provide them manually?