Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.2k stars 1.6k forks source link

Dimmer range from min to max brightness ignored? #22349

Open UsefulVid opened 2 weeks ago

UsefulVid commented 2 weeks ago

What happened?

I set the dimmer min and max range from min 10 to max 150. These values seem to be ignored. I am using HA and the values with the percent slider are always calculated as if 254 is the max value. In HA my slider is only working in the lower part and in the upper part it is of no use. TS0601_dimmer_5

What did you expect to happen?

I expected that I could dim precisely in the min and max range and not under or above.

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.36.1

Adapter firmware version

7.3.1.0 build 176

Adapter

EZSP v12 Sonoff

Setup

Addon on HA

Debug 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>