homebridge-tasmota-control 1.4.0-beta.3 → 1.4.0-beta.4
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/src/tasmotadevice.js +2 -2
package/package.json
CHANGED
package/src/tasmotadevice.js
CHANGED
|
@@ -1260,7 +1260,7 @@ class TasmotaDevice extends EventEmitter {
|
|
|
1260
1260
|
for (let i = 0; i < relaysCount; i++) {
|
|
1261
1261
|
const friendlyName = this.friendlyNames[i];
|
|
1262
1262
|
const powerNr = i + 1;
|
|
1263
|
-
const powerKey = relaysCount === 1 ? '
|
|
1263
|
+
const powerKey = relaysCount === 1 ? 'POWER1' : `POWER${powerNr}`;
|
|
1264
1264
|
const power = powerStatus[powerKey] === 'ON';
|
|
1265
1265
|
|
|
1266
1266
|
const direction = statusSts.direction ?? 0;
|
|
@@ -2222,7 +2222,7 @@ class TasmotaDevice extends EventEmitter {
|
|
|
2222
2222
|
for (let i = 0; i < this.fans.length; i++) {
|
|
2223
2223
|
const friendlyName = this.fans[i].friendlyName;
|
|
2224
2224
|
const serviceName = this.fansNamePrefix ? `${accessoryName} ${friendlyName}` : friendlyName;
|
|
2225
|
-
const fanService = accessory.addService(Service.
|
|
2225
|
+
const fanService = accessory.addService(Service.Fan, serviceName, `Fan ${i}`)
|
|
2226
2226
|
fanService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
2227
2227
|
fanService.setCharacteristic(Characteristic.ConfiguredName, serviceName);
|
|
2228
2228
|
fanService.getCharacteristic(Characteristic.On)
|