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

Inovelli Fixing some non-working parameters #7272

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
99 changes: 61 additions & 38 deletions src/devices/inovelli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,23 +367,6 @@ const COMMON_ATTRIBUTES: {[s: string]: Attribute} = {
max: 3,
description: 'Set the switch configuration.',
},
quickStartFan: {
ID: 23,
dataType: UINT8,
min: 0,
max: 60,
description:
'Duration of full power output while fan tranisitions from Off to On. In 60th of second. 0 = disable, 1 = 1/60s, 60 = 1s',
},
higherOutputInNonNeutral: {
ID: 25,
dataType: BOOLEAN,
displayType: 'enum',
values: {'Disabled (default)': 0, 'Enabled': 1},
min: 0,
max: 1,
description: 'Increase level in non-neutral mode',
},
internalTemperature: {
ID: 32,
dataType: UINT8,
Expand All @@ -402,22 +385,6 @@ const COMMON_ATTRIBUTES: {[s: string]: Attribute} = {
readOnly: true,
description: 'Indicates if the internal chipset is currently in an overheated state.',
},
quickStartLightTime: {
ID: 34,
dataType: UINT8,
min: 0,
max: 60,
description:
'Duration of full power output while lamp tranisitions from Off to On. In 60th of second. 0 = disable, 1 = 1/60s, 60 = 1s',
},
quickStartLightLevel: {
ID: 35,
dataType: UINT8,
min: 1,
max: 254,
description:
'Level of power output during Quick Start Light time (P34).',
},
buttonDelay: {
ID: 50,
dataType: UINT8,
Expand Down Expand Up @@ -541,7 +508,7 @@ const COMMON_ATTRIBUTES: {[s: string]: Attribute} = {
'New behavior cycles through the levels set by P131-133. Down Always Off is like the new behavior but ' +
'down always turns the switch off instead of going to next lower speed.',
},
advancedTimerMode: {
fanTimerMode: {
ID: 121,
dataType: BOOLEAN,
displayType: 'enum',
Expand Down Expand Up @@ -919,6 +886,29 @@ const VZM31_ATTRIBUTES: {[s: string]: Attribute} = {
'Energy reports Energy level change which will result in sending a new energy report.' +
'0 = disabled, 1-32767 = 0.01kWh-327.67kWh. Default setting: 10 (0.1 kWh)',
},
quickStartTime: {
ID: 23,
dataType: UINT8,
min: 0,
max: 60,
description: 'Duration of full power output while lamp tranisitions from Off to On. In 60th of second. 0 = disable, 1 = 1/60s, 60 = 1s',
},
quickStartLevel: {
ID: 24,
dataType: UINT8,
min: 1,
max: 254,
description: 'Level of power output during Quick Start Light time (P23).',
},
higherOutputInNonNeutral: {
ID: 25,
dataType: BOOLEAN,
displayType: 'enum',
values: {'Disabled (default)': 0, 'Enabled': 1},
min: 0,
max: 1,
description: 'Increase level in non-neutral mode',
},
ledBarScaling: {
ID: 100,
dataType: BOOLEAN,
Expand Down Expand Up @@ -962,6 +952,13 @@ const VZM35_ATTRIBUTES : {[s: string]: Attribute} = {
description: 'Use this mode to synchronize and control other fan switches or controllers.',
values: {'Disabled': 0, 'Remote Control Mode': 1},
},
quickStartTime: {
ID: 23,
dataType: UINT8,
min: 0,
max: 60,
description: 'Duration of full power output while fan tranisitions from Off to On. In 60th of second. 0 = disable, 1 = 1/60s, 60 = 1s',
},
nonNeutralAuxMediumGear: {
ID: 30,
dataType: UINT8,
Expand Down Expand Up @@ -1002,9 +999,29 @@ const VZM36_ATTRIBUTES : {[s: string]: Attribute} = {
description:
'The state the light should return to when power is restored after power failure. 0 = off, 1-254 = level, 255 = previous.',
},
higherOutputInNonNeutral_1: {...COMMON_ATTRIBUTES.higherOutputInNonNeutral},
quickStartLightTime_1: {...COMMON_ATTRIBUTES.quickStartLightTime},
quickStartLightLevel_1: {...COMMON_ATTRIBUTES.quickStartLightLevel},
higherOutputInNonNeutral_1: {
ID: 25,
dataType: BOOLEAN,
displayType: 'enum',
values: {'Disabled (default)': 0, 'Enabled': 1},
min: 0,
max: 1,
description: 'Increase level in non-neutral mode for light.',
},
quickStartTime_1: {
ID: 23,
dataType: UINT8,
min: 0,
max: 60,
description: 'Duration of full power output while lamp tranisitions from Off to On. In 60th of second. 0 = disable, 1 = 1/60s, 60 = 1s',
},
quickStartLevel_1: {
ID: 24,
dataType: UINT8,
min: 1,
max: 254,
description: 'Level of power output during Quick Start Light time (P23).',
},
smartBulbMode_1: {...COMMON_ATTRIBUTES.smartBulbMode},
ledColorWhenOn_1: {...COMMON_ATTRIBUTES.ledColorWhenOn},
ledIntensityWhenOn_1: {...COMMON_ATTRIBUTES.ledIntensityWhenOn},
Expand Down Expand Up @@ -1064,8 +1081,14 @@ const VZM36_ATTRIBUTES : {[s: string]: Attribute} = {
description:
'The state the fan should return to when power is restored after power failure. 0 = off, 1-254 = level, 255 = previous.',
},
quickStartTime_2: {
ID: 23,
dataType: UINT8,
min: 0,
max: 60,
description: 'Duration of full power output while fan tranisitions from Off to On. In 60th of second. 0 = disable, 1 = 1/60s, 60 = 1s',
},
// power type readonly
quickStartFan_2: {...COMMON_ATTRIBUTES.quickStartFan},
// internal temp readonly
// overheat readonly
smartBulbMode_2: {
Expand Down