From 284e8557ac7bde72429daee2f168f89e0050d4cd Mon Sep 17 00:00:00 2001 From: Fairesoimeme Date: Sat, 25 Jan 2025 19:57:53 +0100 Subject: [PATCH] feat: Improvements for LiXee (#8673) --- src/devices/lixee.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/devices/lixee.ts b/src/devices/lixee.ts index 466828b526e61..1d68e78699e86 100644 --- a/src/devices/lixee.ts +++ b/src/devices/lixee.ts @@ -140,6 +140,7 @@ const fzLocal = { /* 0x0007 */ 'warnDIR2', /* 0x0008 */ 'warnDIR3', /* 0x0009 */ 'motDEtat', + /* 0x0010 */ 'tariffPeriod', /* 0x0200 */ 'currentPrice', /* 0x0201 */ 'currentIndexTarif', /* 0x0202 */ 'currentDate', @@ -974,6 +975,13 @@ const allPhaseData = [ onlyProducer: false, exposes: e.numeric('NTARF', ea.STATE).withProperty('current_index_tarif').withDescription('Current tariff index number'), }, + { + cluster: clustersDef._0xFF66, + att: 'tariffPeriod', + reportable: true, + onlyProducer: false, + exposes: e.text('Tariff', ea.STATE).withProperty('tariff_period').withDescription('Tariff Period'), + }, { cluster: clustersDef._0xFF66, att: 'currentPrice', @@ -1789,7 +1797,7 @@ const definitions: DefinitionWithExtend[] = [ .numeric(`measurement_poll_chunk`, ea.SET) .withValueMin(1) .withDescription( - `During the poll, request multiple exposes to the Zlinky at once for reducing Zigbee network overload. Too much request at once could exceed device limit. Requires Z2M restart. Default: 1`, + `During the poll, request multiple exposes to the Zlinky at once for reducing Zigbee network overload. Too much request at once could exceed device limit. Requires Z2M restart. Default: 2`, ), e .text(`tic_command_whitelist`, ea.SET) @@ -1872,7 +1880,7 @@ const definitions: DefinitionWithExtend[] = [ } else if (!globalStore.hasValue(device, 'interval')) { const seconds = options && options.measurement_poll_interval ? options.measurement_poll_interval : 600; utils.assertNumber(seconds); - const measurement_poll_chunk = options && options.measurement_poll_chunk ? options.measurement_poll_chunk : 4; + const measurement_poll_chunk = options && options.measurement_poll_chunk ? options.measurement_poll_chunk : 2; utils.assertNumber(measurement_poll_chunk); const setTimer = () => {