Skip to content

Commit

Permalink
Fix gledopto color and color_temp converter. Koenkk/zigbee2mqtt#1064 …
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk authored and qosmio committed Dec 25, 2019
1 parent b248593 commit 150c291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions converters/toZigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -2261,7 +2261,7 @@ const converters = {
},
},
gledopto_light_color_colortemp: {
key: ['brightness', 'brightness_percent'],
key: ['color', 'color_temp', 'color_temp_percent'],
convert: (key, value, message, type, postfix) => {
if (message.hasOwnProperty('transition')) {
message.transition = message.transition * 3.3;
Expand All @@ -2271,7 +2271,7 @@ const converters = {
},
},
gledopto_light_colortemp: {
key: ['brightness', 'brightness_percent'],
key: ['color_temp', 'color_temp_percent'],
convert: (key, value, message, type, postfix) => {
if (message.hasOwnProperty('transition')) {
message.transition = message.transition * 3.3;
Expand Down

0 comments on commit 150c291

Please sign in to comment.