Skip to content

Commit

Permalink
fix: Update Gledopto Pro LED controllers to standard light ModernExte…
Browse files Browse the repository at this point in the history
…nd (#7872)
  • Loading branch information
marthubner authored Aug 19, 2024
1 parent d37d7a3 commit 9fbb603
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/devices/gledopto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ const definitions: Definition[] = [
vendor: 'Gledopto',
ota: ota.zigbeeOTA,
description: 'Zigbee LED Controller WW/CW (pro)',
extend: [gledoptoLight({colorTemp: {range: undefined}}), gledoptoConfigureReadModelID()],
extend: [light({colorTemp: {range: [158, 500]}}), identify(), gledoptoConfigureReadModelID()],
},
{
zigbeeModel: ['GL-G-003P'],
Expand Down Expand Up @@ -341,7 +341,11 @@ const definitions: Definition[] = [
vendor: 'Gledopto',
ota: ota.zigbeeOTA,
description: 'Zigbee LED Controller RGBW (pro)',
extend: [gledoptoLight({colorTemp: {range: undefined}, color: true}), gledoptoConfigureReadModelID()],
extend: [
light({colorTemp: {range: [158, 500]}, color: {modes: ['xy', 'hs'], enhancedHue: true}}),
identify(),
gledoptoConfigureReadModelID(),
],
},
{
fingerprint: [
Expand Down Expand Up @@ -414,7 +418,7 @@ const definitions: Definition[] = [
vendor: 'Gledopto',
ota: ota.zigbeeOTA,
description: 'Zigbee LED Controller RGB (pro)',
extend: [gledoptoLight({color: true, powerOnBehavior: true}), gledoptoConfigureReadModelID()],
extend: [light({color: {modes: ['xy', 'hs'], enhancedHue: true}}), identify(), gledoptoConfigureReadModelID()],
},
{
zigbeeModel: ['GL-C-008P'],
Expand All @@ -426,7 +430,11 @@ const definitions: Definition[] = [
{vendor: 'Gledopto', model: 'GL-C-001P'},
{vendor: 'Gledopto', model: 'GL-C-002P'},
],
extend: [gledoptoLight({colorTemp: {range: [158, 495]}, color: true}), gledoptoConfigureReadModelID()],
extend: [
light({colorTemp: {range: [158, 500]}, color: {modes: ['xy', 'hs'], enhancedHue: true}}),
identify(),
gledoptoConfigureReadModelID(),
],
meta: {disableDefaultResponse: true},
},
{
Expand All @@ -453,7 +461,7 @@ const definitions: Definition[] = [
vendor: 'Gledopto',
ota: ota.zigbeeOTA,
description: 'Zigbee LED Controller W (pro)',
extend: [gledoptoLight({powerOnBehavior: true}), gledoptoConfigureReadModelID()],
extend: [light(), identify(), gledoptoConfigureReadModelID()],
},
{
zigbeeModel: ['GL-C-009S'],
Expand Down

0 comments on commit 9fbb603

Please sign in to comment.