Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 4 additions & 3 deletions packages/types-dev/objects.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,17 +264,18 @@ declare global {

/**
* Settings for IOT adapters and how the state should be named in e.g., Alexa.
* The string "ignore" is a special case, causing the state to be ignored.
* A value of `null` means, that the device should be removed by the IOT adapters
* The string "ignore" (deprecated please use boolean `false` instead) or boolean value `false` is a special case, causing the state to be ignored.
* A value of `null` means that the device should be removed by the IOT adapters
*/
smartName?:
| null
| false
| string
| ({ [lang in Languages]?: string } & {
/** Which kind of device it is */
smartType?: string | null;
/** Which value to set when the ON command is issued */
byOn?: string | null;
byON?: string | null;
});
}

Expand Down
2 changes: 1 addition & 1 deletion packages/types-public/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ adapter.getObjectAsync('id').then(obj => {
declare let state: ioBroker.StateObject;
if (typeof state.common.smartName === 'object' && state.common.smartName !== null) {
state.common.smartName.de && state.common.smartName.de.toUpperCase();
state.common.smartName.byOn && state.common.smartName.byOn.toUpperCase();
state.common.smartName.byON && state.common.smartName.byON.toUpperCase();
}

declare let enumObj: ioBroker.EnumObject;
Expand Down