iobroker-ucl 1.1.15 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/shellyClasses.js +6 -0
- package/shellyClasses.ts +8 -0
- package/shellyFunctions.js +1 -1
- package/shellyFunctions.ts +6 -4
package/package.json
CHANGED
package/shellyClasses.js
CHANGED
@@ -95,6 +95,9 @@ var AbstractShelly = /** @class */ (function () {
|
|
95
95
|
version = version.substr(0, version.indexOf('-'));
|
96
96
|
return version;
|
97
97
|
};
|
98
|
+
AbstractShelly.prototype.isOnline = function () {
|
99
|
+
return this.adapter.getState(this.getBaseState() + ".online").val; // shelly.0.SHPLG-S#B4D3AE#1.online
|
100
|
+
};
|
98
101
|
AbstractShelly.prototype.createIOTAdapterSmartDevices = function (smartName) {
|
99
102
|
// Level:
|
100
103
|
// ----------------------------------------------------------------------------------
|
@@ -731,6 +734,9 @@ var ShellySensor = /** @class */ (function (_super) {
|
|
731
734
|
ShellySensor.prototype.getHumidity = function () {
|
732
735
|
return this.adapter.getState(this.baseState + ".Humidity0.Relative").val; // shelly.1.shellyhtg3#34b7da8d0234#1.Humidity0.Relative
|
733
736
|
};
|
737
|
+
ShellySensor.prototype.isOnline = function () {
|
738
|
+
return true;
|
739
|
+
};
|
734
740
|
ShellySensor.prototype.getCategory = function () {
|
735
741
|
return deviceShellySensor;
|
736
742
|
};
|
package/shellyClasses.ts
CHANGED
@@ -97,6 +97,10 @@ export abstract class AbstractShelly {
|
|
97
97
|
return version;
|
98
98
|
}
|
99
99
|
|
100
|
+
public isOnline() : boolean {
|
101
|
+
return this.adapter.getState(this.getBaseState() + ".online").val; // shelly.0.SHPLG-S#B4D3AE#1.online
|
102
|
+
}
|
103
|
+
|
100
104
|
protected createIOTAdapterSmartDevices(smartName) {
|
101
105
|
|
102
106
|
// Level:
|
@@ -859,6 +863,10 @@ class ShellySensor extends AbstractShelly {
|
|
859
863
|
public getHumidity() : number {
|
860
864
|
return this.adapter.getState(this.baseState + ".Humidity0.Relative").val; // shelly.1.shellyhtg3#34b7da8d0234#1.Humidity0.Relative
|
861
865
|
}
|
866
|
+
|
867
|
+
public isOnline() : boolean {
|
868
|
+
return true;
|
869
|
+
}
|
862
870
|
|
863
871
|
public getCategory() : string {
|
864
872
|
return deviceShellySensor;
|
package/shellyFunctions.js
CHANGED
@@ -347,7 +347,7 @@ function createShellyLampe(adapter, rawId, etage, raum, device, baseState, alexa
|
|
347
347
|
}
|
348
348
|
exports.createShellyLampe = createShellyLampe;
|
349
349
|
// Steckdose:
|
350
|
-
function createShellySteckdose(adapter, rawId, etage, raum, device, baseState,
|
350
|
+
function createShellySteckdose(adapter, rawId, etage, raum, device, baseState, alexaSmartNamesForOn, alexaActionNamesForOn, alexaSmartNamesForOff, alexaActionNamesForOff, additionalStates4TurnOn, additionalStates4TurnOff, nachtbeleuchtung, turnOffExitHouseSummer, turnOffExitHouseWinter, turnOnEnterHouseSummer, turnOnEnterHouseWinter) {
|
351
351
|
// Allgemein:
|
352
352
|
createShellyDevice(adapter, rawId, etage, raum, device, baseState, deviceShellySteckdose);
|
353
353
|
// alexaSmartNamesForOn:string[]
|
package/shellyFunctions.ts
CHANGED
@@ -282,8 +282,9 @@ export function createShellyDimmer(adapter: any, rawId: number, etage: string,
|
|
282
282
|
}
|
283
283
|
|
284
284
|
// Lampe Weiss:
|
285
|
-
export function createShellyLampe(adapter:any, rawId: number, etage: string, raum: string, device: string, baseState: string,
|
286
|
-
|
285
|
+
export function createShellyLampe(adapter:any, rawId: number, etage: string, raum: string, device: string, baseState: string,
|
286
|
+
alexaSmartNamesForOn:string[], alexaActionNamesForOn:string[], alexaSmartNamesForOff: string[],alexaActionNamesForOff: string[],
|
287
|
+
additionalStates4TurnOn:string[], additionalStates4TurnOff:string[],
|
287
288
|
nachtbeleuchtung:boolean, turnOffExitHouseSummer:boolean, turnOffExitHouseWinter:boolean, turnOnEnterHouseSummer:boolean, turnOnEnterHouseWinter:boolean) {
|
288
289
|
|
289
290
|
// Allgemein:
|
@@ -376,8 +377,9 @@ export function createShellyLampe(adapter:any, rawId: number, etage: string, rau
|
|
376
377
|
}
|
377
378
|
|
378
379
|
// Steckdose:
|
379
|
-
export function createShellySteckdose(adapter:any, rawId: number, etage: string, raum: string, device: string, baseState: string,
|
380
|
-
alexaActionNamesForOn:string[], alexaSmartNamesForOff: string[],alexaActionNamesForOff: string[],
|
380
|
+
export function createShellySteckdose(adapter:any, rawId: number, etage: string, raum: string, device: string, baseState: string, alexaSmartNamesForOn:string[],
|
381
|
+
alexaActionNamesForOn:string[], alexaSmartNamesForOff: string[],alexaActionNamesForOff: string[],
|
382
|
+
additionalStates4TurnOn:string[], additionalStates4TurnOff:string[],
|
381
383
|
nachtbeleuchtung:boolean, turnOffExitHouseSummer:boolean, turnOffExitHouseWinter:boolean, turnOnEnterHouseSummer:boolean, turnOnEnterHouseWinter:boolean) {
|
382
384
|
|
383
385
|
// Allgemein:
|