Koenkk / zigbee2mqtt

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

[Feature request]: Support fractions in transitions. #14338

Closed SelfDestructor closed 1 year ago

SelfDestructor commented 1 year ago

Is your feature request related to a problem? Please describe

I'm currently attempting to move my Zigbee lamps off my Philips Hue bridges and I have hit a bit of a snag with transition times.

When changing a light state via MQTT I am able to use fractions in the transition field. Hue defaults to 0.4 seconds which is not too slow or too quick to my liking and I can do so through MQTT but I am not able to set transition times for scene changes which is my primary way to turn on lamps as different brands has slightly different colors and white tones.

If I set the transition time to 0.-something it becomes zero seconds.

Example in configuration.yaml:

'3': friendly_name: office_lights transition: 0.4 devices:

Example through MQTT:

{ "scene_add": { "ID": 0, "name": "'Light scene", "transition": 0.4 } }

Describe the solution you'd like

Since I can send{"transition": 0.4, "kelvin": 2700, "brightness_pct": 100} through MQTT I would love to be able to set scenes and group(light fade times to something shorter than a second to mirror how my setup was with the Hue hub.

Describe alternatives you've considered

The quickest option would be to go back to a Hue hub and continue calling scenes from there.

Or I can send MQTT messages to the group. I would have to find a way to deal with the non-Hue bulbs I currently have to match colors.

Additional context

Nothing else to add.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

Flavien commented 1 year ago

Is there a workaround for this? I'm trying to have a transition that is just a few milliseconds, but it seems right now, it's either 0 second or 1 second, nothing in between.

Zoooook commented 2 months ago

I'm having the same issue, and I have to use scenes because that's the only way to transition brightness and color at the same time. If I simply set the state of the lights, then it fades the brightness and then fades the color. But with scenes the minimum non-instant transition is 1 second.

Flavien commented 2 months ago

This was fixed in 1.35.0 (PR: https://github.com/Koenkk/zigbee-herdsman-converters/pull/6656).