Skip to content

Commit

Permalink
feat: Improvements for LiXee (#8673)
Browse files Browse the repository at this point in the history
  • Loading branch information
fairecasoimeme authored Jan 25, 2025
1 parent d95f3c9 commit 284e855
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/devices/lixee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ const fzLocal = {
/* 0x0007 */ 'warnDIR2',
/* 0x0008 */ 'warnDIR3',
/* 0x0009 */ 'motDEtat',
/* 0x0010 */ 'tariffPeriod',
/* 0x0200 */ 'currentPrice',
/* 0x0201 */ 'currentIndexTarif',
/* 0x0202 */ 'currentDate',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 284e855

Please sign in to comment.