diff --git a/lib/devices/gen1/shellycolorbulb.js b/lib/devices/gen1/shellycolorbulb.js index f1e4c3c6..6ac9411f 100644 --- a/lib/devices/gen1/shellycolorbulb.js +++ b/lib/devices/gen1/shellycolorbulb.js @@ -357,43 +357,43 @@ const shellycolorbulb = { 'write': true } }, - }, - 'metering.power': { - coap: { - coap_publish: '4101', - coap_publish_funct: (value) => { return value }, - }, - mqtt: { - http_publish: '/status', - http_publish_funct: (value) => { return value ? JSON.parse(value).meters[0].power : undefined; }, - }, - common: { - 'name': 'Device Power status', - 'type': 'number', - 'role': 'value', - 'unit': 'W', - 'read': true, - 'write': false - } - }, - 'metering.energy': { - coap: { - coap_publish: '4103', - coap_publish_funct: (value) => { return value }, - }, - mqtt: { - http_publish: '/status', - http_publish_funct: (value) => { return value ? JSON.parse(value).meters[0].energy : undefined; }, + 'metering.power': { + coap: { + coap_publish: '4101', + coap_publish_funct: (value) => { return value }, + }, + mqtt: { + http_publish: '/status', + http_publish_funct: (value) => { return value ? JSON.parse(value).meters[0].power : undefined; }, + }, + common: { + 'name': 'Device Power status', + 'type': 'number', + 'role': 'value', + 'unit': 'W', + 'read': true, + 'write': false + } }, - common: { - 'name': 'Device Energy status', - 'type': 'number', - 'role': 'value', - 'unit': 'Wmin', - 'read': true, - 'write': false + 'metering.energy': { + coap: { + coap_publish: '4103', + coap_publish_funct: (value) => { return value }, + }, + mqtt: { + http_publish: '/status', + http_publish_funct: (value) => { return value ? JSON.parse(value).meters[0].energy : undefined; }, + }, + common: { + 'name': 'Device Energy status', + 'type': 'number', + 'role': 'value', + 'unit': 'Wmin', + 'read': true, + 'write': false + } } -}; +} module.exports = { shellycolorbulb: shellycolorbulb