From b8d831baf5dcce410c4f996ae6fbe346c643053c Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sat, 3 Jul 2021 15:21:57 +0200 Subject: [PATCH] Fix Hue angle encoding for Zigbee --- tasmota/xdrv_23_zigbee_3_hue.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_23_zigbee_3_hue.ino b/tasmota/xdrv_23_zigbee_3_hue.ino index f8bf00e68..a90966ab9 100644 --- a/tasmota/xdrv_23_zigbee_3_hue.ino +++ b/tasmota/xdrv_23_zigbee_3_hue.ino @@ -212,7 +212,7 @@ void ZigbeeHueHS(uint16_t shortaddr, uint16_t hue, uint8_t sat) { uint8_t hue8 = changeUIntScale(hue, 0, 360, 0, 254); if (sat > 0xFE) { sat = 0xFE; } SBuffer s(4); - s.add8(hue); + s.add8(hue8); s.add8(sat); s.add16(0); ZigbeeSendHue(shortaddr, 0x0300, 0x06, s);