Skip to content

Instantly share code, notes, and snippets.

@Koenkk
Last active December 22, 2022 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Koenkk/bdb57a89e43f3708c8b964ad61c9cf81 to your computer and use it in GitHub Desktop.
Save Koenkk/bdb57a89e43f3708c8b964ad61c9cf81 to your computer and use it in GitHub Desktop.
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const utils = require('zigbee-herdsman-converters/lib/utils');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['TS0505B'],
model: 'HG08010',
vendor: 'Lidl',
description: 'Livarno Home outdoor spotlight CUSTOM',
fromZigbee: [...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}).fromZigbee, tuya.fz.power_on_behavior],
toZigbee: [tuya.tz.power_on_behavior, ...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}).toZigbee],
exposes: [...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, disablePowerOnBehavior: true, colorTempRange: [153, 500]}).exposes, e.power_on_behavior()],
meta: {applyRedFix: true, enhancedHue: false},
configure: async (device, coordinatorEndpoint, logger) => {
device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
},
};
module.exports = definition;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment