hoffmation-base 3.0.0-alpha.36 → 3.0.0-alpha.37
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/lib/server/devices/wledDevice.d.ts +0 -2
- package/lib/server/devices/wledDevice.js +0 -4
- package/lib/server/devices/zigbee/BaseDevices/zigbeeDimmer.d.ts +2 -2
- package/lib/server/devices/zigbee/BaseDevices/zigbeeDimmer.js +0 -2
- package/lib/server/devices/zigbee/BaseDevices/zigbeeLamp.d.ts +0 -2
- package/lib/server/devices/zigbee/BaseDevices/zigbeeLamp.js +0 -4
- package/lib/server/devices/zigbee/zigbeeIlluLampe.d.ts +0 -1
- package/lib/server/devices/zigbee/zigbeeIlluLampe.js +1 -2
- package/lib/server/devices/zigbee/zigbeeUbisysLampe.d.ts +0 -1
- package/lib/server/devices/zigbee/zigbeeUbisysLampe.js +0 -1
- package/lib/server/services/govee/own-govee-device.d.ts +1 -2
- package/lib/server/services/govee/own-govee-device.js +4 -7
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -23,8 +23,6 @@ export declare class WledDevice extends IoBrokerBaseDevice implements iDimmableL
|
|
|
23
23
|
/** @inheritDoc */
|
|
24
24
|
get actuatorOn(): boolean;
|
|
25
25
|
/** @inheritDoc */
|
|
26
|
-
get lightOn(): boolean;
|
|
27
|
-
/** @inheritDoc */
|
|
28
26
|
restoreTargetAutomaticValue(c: RestoreTargetAutomaticValueCommand): void;
|
|
29
27
|
update(idSplit: string[], state: ioBroker.State, initial?: boolean, _pOverride?: boolean): void;
|
|
30
28
|
/** @inheritDoc */
|
|
@@ -33,10 +33,6 @@ class WledDevice extends IoBrokerBaseDevice_1.IoBrokerBaseDevice {
|
|
|
33
33
|
return this.on;
|
|
34
34
|
}
|
|
35
35
|
/** @inheritDoc */
|
|
36
|
-
get lightOn() {
|
|
37
|
-
return this.on;
|
|
38
|
-
}
|
|
39
|
-
/** @inheritDoc */
|
|
40
36
|
restoreTargetAutomaticValue(c) {
|
|
41
37
|
this.setLight(new models_1.WledSetLightCommand(c, this.targetAutomaticState));
|
|
42
38
|
}
|
|
@@ -11,11 +11,11 @@ export declare abstract class ZigbeeDimmer extends ZigbeeLamp implements iDimmab
|
|
|
11
11
|
protected abstract readonly _stateIdTransitionTime: string;
|
|
12
12
|
protected abstract readonly _stateNameBrightness: string;
|
|
13
13
|
protected abstract readonly _stateNameTransitionTime: string;
|
|
14
|
-
protected constructor(pInfo: IoBrokerDeviceInfo, deviceType: DeviceType);
|
|
15
14
|
protected _brightness: number;
|
|
15
|
+
protected _transitionTime: number;
|
|
16
|
+
protected constructor(pInfo: IoBrokerDeviceInfo, deviceType: DeviceType);
|
|
16
17
|
/** @inheritDoc */
|
|
17
18
|
get brightness(): number;
|
|
18
|
-
protected _transitionTime: number;
|
|
19
19
|
/** @inheritDoc */
|
|
20
20
|
update(idSplit: string[], state: ioBroker.State, initial?: boolean): void;
|
|
21
21
|
/** @inheritDoc */
|
|
@@ -13,9 +13,7 @@ class ZigbeeDimmer extends zigbeeLamp_1.ZigbeeLamp {
|
|
|
13
13
|
this.settings = new models_1.DimmerSettings();
|
|
14
14
|
this._brightness = 0;
|
|
15
15
|
this._transitionTime = 0;
|
|
16
|
-
this.deviceCapabilities.push(DeviceCapability_1.DeviceCapability.lamp);
|
|
17
16
|
this.deviceCapabilities.push(DeviceCapability_1.DeviceCapability.dimmablelamp);
|
|
18
|
-
this.deviceCapabilities.push(DeviceCapability_1.DeviceCapability.blockAutomatic);
|
|
19
17
|
}
|
|
20
18
|
/** @inheritDoc */
|
|
21
19
|
get brightness() {
|
|
@@ -6,8 +6,6 @@ import { DeviceType } from '../../deviceType';
|
|
|
6
6
|
export declare abstract class ZigbeeLamp extends ZigbeeActuator implements iLamp, iTemporaryDisableAutomatic {
|
|
7
7
|
constructor(pInfo: IoBrokerDeviceInfo, deviceType: DeviceType);
|
|
8
8
|
/** @inheritDoc */
|
|
9
|
-
get lightOn(): boolean;
|
|
10
|
-
/** @inheritDoc */
|
|
11
9
|
update(idSplit: string[], state: ioBroker.State, initial?: boolean, handledByChildObject?: boolean): void;
|
|
12
10
|
/** @inheritDoc */
|
|
13
11
|
setTimeBased(c: LampSetTimeBasedCommand): void;
|
|
@@ -11,10 +11,6 @@ class ZigbeeLamp extends ZigbeeActuator_1.ZigbeeActuator {
|
|
|
11
11
|
this.deviceCapabilities.push(DeviceCapability_1.DeviceCapability.lamp);
|
|
12
12
|
}
|
|
13
13
|
/** @inheritDoc */
|
|
14
|
-
get lightOn() {
|
|
15
|
-
return this.actuatorOn;
|
|
16
|
-
}
|
|
17
|
-
/** @inheritDoc */
|
|
18
14
|
update(idSplit, state, initial = false, handledByChildObject = false) {
|
|
19
15
|
if (!handledByChildObject) {
|
|
20
16
|
this.log(models_1.LogLevel.DeepTrace, `Lamp Update: ID: ${idSplit.join('.')} JSON: ${JSON.stringify(state)}`);
|
|
@@ -3,6 +3,5 @@ import { IoBrokerDeviceInfo } from '../IoBrokerDeviceInfo';
|
|
|
3
3
|
import { ZigbeeLamp } from './BaseDevices';
|
|
4
4
|
export declare class ZigbeeIlluLampe extends ZigbeeLamp implements iLamp {
|
|
5
5
|
protected readonly _actuatorOnStateIdState: string;
|
|
6
|
-
protected readonly _stateNameState: string;
|
|
7
6
|
constructor(pInfo: IoBrokerDeviceInfo);
|
|
8
7
|
}
|
|
@@ -6,8 +6,7 @@ const BaseDevices_1 = require("./BaseDevices");
|
|
|
6
6
|
class ZigbeeIlluLampe extends BaseDevices_1.ZigbeeLamp {
|
|
7
7
|
constructor(pInfo) {
|
|
8
8
|
super(pInfo, deviceType_1.DeviceType.ZigbeeIlluLampe);
|
|
9
|
-
this._actuatorOnStateIdState = `${pInfo.fullID}.
|
|
10
|
-
this._stateNameState = `${pInfo.fullID}.state`;
|
|
9
|
+
this._actuatorOnStateIdState = `${pInfo.fullID}.${this._stateNameState}`;
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
12
|
exports.ZigbeeIlluLampe = ZigbeeIlluLampe;
|
|
@@ -4,7 +4,6 @@ import { ZigbeeLamp } from './BaseDevices';
|
|
|
4
4
|
import { iLoadMeter } from '../baseDeviceInterfaces/iLoadMeter';
|
|
5
5
|
export declare class ZigbeeUbisysLampe extends ZigbeeLamp implements iLamp, iLoadMeter {
|
|
6
6
|
protected readonly _actuatorOnStateIdState: string;
|
|
7
|
-
protected readonly _stateNameState: string;
|
|
8
7
|
private _loadPower;
|
|
9
8
|
constructor(pInfo: IoBrokerDeviceInfo);
|
|
10
9
|
/** @inheritDoc */
|
|
@@ -11,7 +11,6 @@ class ZigbeeUbisysLampe extends BaseDevices_1.ZigbeeLamp {
|
|
|
11
11
|
this._loadPower = 0;
|
|
12
12
|
this.deviceCapabilities.push(DeviceCapability_1.DeviceCapability.loadMetering);
|
|
13
13
|
this._actuatorOnStateIdState = `${pInfo.fullID}.state`;
|
|
14
|
-
this._stateNameState = `${pInfo.fullID}.state`;
|
|
15
14
|
}
|
|
16
15
|
/** @inheritDoc */
|
|
17
16
|
get loadPower() {
|
|
@@ -27,7 +27,7 @@ export declare class OwnGoveeDevice implements iLedRgbCct, iTemporaryDisableAuto
|
|
|
27
27
|
/** @inheritDoc */
|
|
28
28
|
targetAutomaticState: boolean;
|
|
29
29
|
protected _info: DeviceInfo;
|
|
30
|
-
private
|
|
30
|
+
private _actuatorOn;
|
|
31
31
|
private _color;
|
|
32
32
|
private _colortemp;
|
|
33
33
|
private _room;
|
|
@@ -37,7 +37,6 @@ export declare class OwnGoveeDevice implements iLedRgbCct, iTemporaryDisableAuto
|
|
|
37
37
|
get room(): RoomBase;
|
|
38
38
|
get customName(): string;
|
|
39
39
|
get actuatorOn(): boolean;
|
|
40
|
-
get lightOn(): boolean;
|
|
41
40
|
get info(): DeviceInfo;
|
|
42
41
|
get id(): string;
|
|
43
42
|
get name(): string;
|
|
@@ -32,7 +32,7 @@ class OwnGoveeDevice {
|
|
|
32
32
|
this.brightness = -1;
|
|
33
33
|
/** @inheritDoc */
|
|
34
34
|
this.targetAutomaticState = false;
|
|
35
|
-
this.
|
|
35
|
+
this._actuatorOn = false;
|
|
36
36
|
this._color = '#fcba32';
|
|
37
37
|
this._colortemp = 500;
|
|
38
38
|
this._room = undefined;
|
|
@@ -63,10 +63,7 @@ class OwnGoveeDevice {
|
|
|
63
63
|
return this.info.customName;
|
|
64
64
|
}
|
|
65
65
|
get actuatorOn() {
|
|
66
|
-
return this.
|
|
67
|
-
}
|
|
68
|
-
get lightOn() {
|
|
69
|
-
return this._on;
|
|
66
|
+
return this._actuatorOn;
|
|
70
67
|
}
|
|
71
68
|
get info() {
|
|
72
69
|
return this._info;
|
|
@@ -168,7 +165,7 @@ class OwnGoveeDevice {
|
|
|
168
165
|
}
|
|
169
166
|
update(data) {
|
|
170
167
|
this.queuedValue = null;
|
|
171
|
-
this.
|
|
168
|
+
this._actuatorOn = data.onOff === 1;
|
|
172
169
|
this.brightness = data.brightness;
|
|
173
170
|
this._color = `#${data.color.r.toString(16)}${data.color.g.toString(16)}${data.color.b.toString(16)}`;
|
|
174
171
|
this._colortemp = data.colorTemInKelvin;
|
|
@@ -199,7 +196,7 @@ class OwnGoveeDevice {
|
|
|
199
196
|
}
|
|
200
197
|
turnOn() {
|
|
201
198
|
var _a;
|
|
202
|
-
if (this.
|
|
199
|
+
if (this._actuatorOn) {
|
|
203
200
|
return;
|
|
204
201
|
}
|
|
205
202
|
this.queuedValue = true;
|