Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Advertise 153-500 mireds for IKEA LED1624G9 #6640

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

lbschenkel
Copy link
Contributor

This light is pure RGB, it does not contain white LEDs and it only supports XY, not color temperature. The latter is emulated by Z2M via a conversion to XY. The color temperature range advertised by this light is the same one as other IKEA lights, which typically have LEDs supporting the 2200-4000K range — but that does not make sense given that all temperatures are simulated, and the current temperature->XY conversion code accepts any value, including out of this range, if it is submitted via MQTT.

Given the above, this commit changes the avertised range of this light to 2000-6500K. This has the benefit of making the whole range available in the UI of Home Assistant (compared to only via manual service calls).

@lbschenkel lbschenkel force-pushed the LED1624G9_extend_temp_range branch from aec9380 to 0b33e7c Compare December 6, 2023 18:16
This light is pure RGB, it does not contain white LEDs and it only
supports XY, not color temperature. The latter is emulated by Z2M via a
conversion to XY. The color temperature range advertised by this light is
the same one as other IKEA lights, which typically have LEDs supporting
the 2200-4000K range — but that does not make sense given that all
temperatures are simulated, and the current temperature->XY conversion
code accepts any value, including out of this range, if it is submitted
via MQTT.

Given the above, this commit changes the avertised range of this light to
2000-6500K. This has the benefit of making the whole range available in
the UI of Home Assistant (compared to only via manual service calls).
@lbschenkel lbschenkel force-pushed the LED1624G9_extend_temp_range branch from 0b33e7c to 7c169cd Compare December 6, 2023 18:20
lbschenkel added a commit to lbschenkel/zigbee-herdsman-converters that referenced this pull request Dec 6, 2023
LED1923R5/LED1925G6 lights seem to be pure RGB without white LEDs. After
a lot of experimentation involving dozens of different color temperature
values, and trying to set the same color via XY values, it was not
possible to see the slightest shift in color. It looks like the light is
actually working in XY mode all the time, and the firmware is simply
converting color temperatures into XY internally.

This makes this light similar to the older LED1624G9, except that the
firmware of this newer one emulates the color temperature functionality,
while the older one doesn't.

Since the color temperature functionality is actually emulated by the
firmware, this commit changes it to use the Z2M emulation implementation.
This allows expanding the advertised color temperature range to
2000-6500K, an improvement over the firmware implementation which
artificially clamps the values to the 2200K-4000K range.

See: Koenkk#6640
lbschenkel added a commit to lbschenkel/zigbee-herdsman-converters that referenced this pull request Dec 6, 2023
LED1923R5/LED1925G6 lights seem to be pure RGB without white LEDs. After
a lot of experimentation involving dozens of different color temperature
values, and trying to set the same color via XY values, it was not
possible to see the slightest shift in color. It looks like the light is
actually working in XY mode all the time, and the firmware is simply
converting color temperatures into XY internally.

This makes this light similar to the older LED1624G9, except that the
firmware of this newer one emulates the color temperature functionality,
while the older one doesn't.

Since the color temperature functionality is actually emulated by the
firmware, this commit changes it to use the Z2M emulation implementation.
This allows expanding the advertised color temperature range to
2000-6500K, an improvement over the firmware implementation which
artificially clamps the values to the 2200K-4000K range.

See: Koenkk#6640
lbschenkel added a commit to lbschenkel/zigbee-herdsman-converters that referenced this pull request Dec 6, 2023
LED1923R5/LED1925G6 lights seem to be pure RGB without white LEDs. After
a lot of experimentation involving dozens of different color temperature
values, and trying to set the same color via XY values, it was not
possible to see the slightest shift in color. It looks like the light is
actually working in XY mode all the time, and the firmware is simply
converting color temperatures into XY internally.

This makes this light similar to the older LED1624G9, except that the
firmware of this newer one emulates the color temperature functionality,
while the older one doesn't.

Since the color temperature functionality is actually emulated by the
firmware, this commit changes it to use the Z2M emulation implementation.
This allows expanding the advertised color temperature range to
2000-6500K, an improvement over the firmware implementation which
artificially clamps the values to the 2200K-4000K range.

See: Koenkk#6640
lbschenkel added a commit to lbschenkel/zigbee-herdsman-converters that referenced this pull request Dec 6, 2023
LED1923R5/LED1925G6 lights seem to be pure RGB without white LEDs. After
a lot of experimentation involving dozens of different color temperature
values, and trying to set the same color via XY values, it was not
possible to see the slightest shift in color. It looks like the light is
actually working in XY mode all the time, and the firmware is simply
converting color temperatures into XY internally.

This makes this light similar to the older LED1624G9, except that the
firmware of this newer one emulates the color temperature functionality,
while the older one doesn't.

Since the color temperature functionality is actually emulated by the
firmware, this commit changes it to use the Z2M emulation implementation.
This allows expanding the advertised color temperature range to
2000-6500K, an improvement over the firmware implementation which
artificially clamps the values to the 2200K-4000K range.

See: Koenkk#6640
@Koenkk Koenkk merged commit 41a2c52 into Koenkk:master Dec 6, 2023
2 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Dec 6, 2023

Thanks!

Koenkk pushed a commit that referenced this pull request Dec 6, 2023
…0 mireds (#6642)

LED1923R5/LED1925G6 lights seem to be pure RGB without white LEDs. After
a lot of experimentation involving dozens of different color temperature
values, and trying to set the same color via XY values, it was not
possible to see the slightest shift in color. It looks like the light is
actually working in XY mode all the time, and the firmware is simply
converting color temperatures into XY internally.

This makes this light similar to the older LED1624G9, except that the
firmware of this newer one emulates the color temperature functionality,
while the older one doesn't.

Since the color temperature functionality is actually emulated by the
firmware, this commit changes it to use the Z2M emulation implementation.
This allows expanding the advertised color temperature range to
2000-6500K, an improvement over the firmware implementation which
artificially clamps the values to the 2200K-4000K range.

See: #6640
@lbschenkel lbschenkel deleted the LED1624G9_extend_temp_range branch December 6, 2023 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants