Skip to content

Commit

Permalink
Update lixee.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
fairecasoimeme committed Feb 5, 2025
1 parent c29ecb6 commit abb2fae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/devices/lixee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const NS = 'zhc:lixee';
const local = {
modernExtend: {
addCustomClusterManuSpecificLixee: () =>
deviceAddCustomCluster('liXeePrivate', {
deviceAddCustomCluster('liXeeCustom', {
ID: 0xff66,
manufacturerCode: Zcl.ManufacturerCode.NXP_SEMICONDUCTORS,
attributes: {
Expand Down Expand Up @@ -185,7 +185,7 @@ const fzLocal = {
},
} satisfies Fz.Converter,
lixee_private_fz: {
cluster: 'liXeePrivate', // 0xFF66
cluster: 'liXeeCustom', // 0xFF66
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
const result: KeyValue = {};
Expand Down Expand Up @@ -718,7 +718,7 @@ const linkyPhaseDef = {
};

const clustersDef = {
_0xFF66: 'liXeePrivate', // 0xFF66
_0xFF66: 'liXeeCustom', // 0xFF66
_0x0B04: 'haElectricalMeasurement', // 0x0B04
_0x0702: 'seMetering', // 0x0702
_0x0B01: 'haMeterIdentification', // 0x0B01
Expand Down Expand Up @@ -1871,10 +1871,10 @@ const definitions: DefinitionWithExtend[] = [
clustersDef._0x0702 /* seMetering */,
clustersDef._0x0B01 /* haMeterIdentification */,
clustersDef._0x0B04 /* haElectricalMeasurement */,
clustersDef._0xFF66 /* liXeePrivate */,
clustersDef._0xFF66 /* liXeeCustom */,
]);

await endpoint.read('liXeePrivate', ['linkyMode', 'currentTarif'], {manufacturerCode: null}).catch((e) => {
await endpoint.read('liXeeCustom', ['linkyMode', 'currentTarif'], {manufacturerCode: null}).catch((e) => {
// https://github.com/Koenkk/zigbee2mqtt/issues/11674
logger.warning(`Failed to read zigbee attributes: ${e}`, NS);
});
Expand Down Expand Up @@ -1931,7 +1931,7 @@ const definitions: DefinitionWithExtend[] = [
onEvent: async (type, data, device, options) => {
const endpoint = device.getEndpoint(1);
if (type === 'start') {
endpoint.read('liXeePrivate', ['linkyMode', 'currentTarif'], {manufacturerCode: null}).catch((e) => {
endpoint.read('liXeeCustom', ['linkyMode', 'currentTarif'], {manufacturerCode: null}).catch((e) => {
// https://github.com/Koenkk/zigbee2mqtt/issues/11674
logger.warning(`Failed to read zigbee attributes: ${e}`, NS);
});
Expand Down

0 comments on commit abb2fae

Please sign in to comment.