diff --git a/packages/types-dev/objects.d.ts b/packages/types-dev/objects.d.ts index edbbd9d838..f4f23deec6 100644 --- a/packages/types-dev/objects.d.ts +++ b/packages/types-dev/objects.d.ts @@ -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; }); } diff --git a/packages/types-public/index.test-d.ts b/packages/types-public/index.test-d.ts index 64c563a96e..c73d2cb7d8 100644 --- a/packages/types-public/index.test-d.ts +++ b/packages/types-public/index.test-d.ts @@ -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;