homebridge-tasmota-control 1.4.0-beta.2 → 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.
@@ -1248,7 +1248,7 @@
1248
1248
  "description": "Here enable/disable the accessory name as a prefix for light name.",
1249
1249
  "required": false
1250
1250
  },
1251
- "lfansNamePrefix": {
1251
+ "fansNamePrefix": {
1252
1252
  "title": "Name Prefix",
1253
1253
  "type": "boolean",
1254
1254
  "default": false,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "1.4.0-beta.2",
4
+ "version": "1.4.0-beta.4",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -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 ? 'POWER' : `POWER${powerNr}`;
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.Fanv, serviceName, `Fan ${i}`)
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)