Skip to content

Commit

Permalink
Prevent channel OFF if separate_control option is True for Gledopto '…
Browse files Browse the repository at this point in the history
…GL-C-007' (#1093)

* Change mode for Aqara Opple switch

* Prevent channel OFF if separate_control option is True for Gledopto 'GL-C-007'

* fix lint
  • Loading branch information
kirovilya authored Mar 26, 2020
1 parent 32c567a commit bcb2ea3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion converters/toZigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ const converters = {

if (meta.mapped.model === 'GL-C-007' && utils.hasEndpoints(meta.device, [11, 13, 15])) {
// GL-C-007 RGBW
if (key === 'state' && value.toUpperCase() === 'OFF') {
if (key === 'state' && value.toUpperCase() === 'OFF' && !meta.options.separate_control) {
await converters.light_onoff_brightness.convertSet(meta.device.getEndpoint(15), key, value, meta);
}

Expand Down
4 changes: 2 additions & 2 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -1977,15 +1977,15 @@ const devices = [
vendor: 'Philips',
description: 'Hue Signe floor light',
extend: hue.light_onoff_brightness_colortemp_colorxy,
ota: ota.zigbeeOTA
ota: ota.zigbeeOTA,
},
{
zigbeeModel: ['4080148P9'],
model: '4080148P9',
vendor: 'Philips',
description: 'Hue Signe table light',
extend: hue.light_onoff_brightness_colortemp_colorxy,
ota: ota.zigbeeOTA
ota: ota.zigbeeOTA,
},
{
zigbeeModel: ['RWL020', 'RWL021'],
Expand Down

0 comments on commit bcb2ea3

Please sign in to comment.