Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lixee.ts #8673

Merged
merged 1 commit into from
Jan 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading