homebridge-tasmota-control 1.8.0-beta.4 → 1.8.0
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 +2 -2
- package/src/deviceinfo.js +1 -1
- package/src/sensors.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Tasmota Control",
|
|
3
3
|
"name": "homebridge-tasmota-control",
|
|
4
|
-
"version": "1.8.0
|
|
4
|
+
"version": "1.8.0",
|
|
5
5
|
"description": "Homebridge plugin to control Tasmota flashed devices.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"LICENSE"
|
|
31
31
|
],
|
|
32
32
|
"engines": {
|
|
33
|
-
"homebridge": "^1.8.0 || ^2.0.0 || ^2.0.0-beta.
|
|
33
|
+
"homebridge": "^1.8.0 || ^2.0.0 || ^2.0.0-beta.80 || ^2.0.0-alpha.68",
|
|
34
34
|
"node": "^20 || ^22 || ^24 || ^25"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
package/src/deviceinfo.js
CHANGED
|
@@ -75,7 +75,7 @@ class DeviceInfo extends EventEmitter {
|
|
|
75
75
|
serialNumber: addressMac,
|
|
76
76
|
firmwareRevision: firmwareRevision
|
|
77
77
|
};
|
|
78
|
-
this.emit('debug', `Sensor: ${JSON.stringify(obj, null, 2)}`)
|
|
78
|
+
if (this.logDebug) this.emit('debug', `Sensor: ${JSON.stringify(obj, null, 2)}`)
|
|
79
79
|
return obj;
|
|
80
80
|
} catch (error) {
|
|
81
81
|
throw new Error(`Check info error: ${error}`);
|
package/src/sensors.js
CHANGED
|
@@ -391,7 +391,7 @@ class Sensors extends EventEmitter {
|
|
|
391
391
|
|
|
392
392
|
//energy
|
|
393
393
|
if (sensor.name === 'ENERGY') {
|
|
394
|
-
|
|
394
|
+
if (this.logDebug) this.emit('debug', `Prepare Power And Energy Service`);
|
|
395
395
|
const serviceName = this.sensorsNamePrefix ? `${accessoryName} ${sensorName}` : `${sensorName}`;
|
|
396
396
|
const powerAndEnergyService = accessory.addService(Service.PowerAndEnergy, serviceName, `Energy Sensor ${i}`);
|
|
397
397
|
powerAndEnergyService.setCharacteristic(Characteristic.ConfiguredName, serviceName);
|