homebridge-tuya-05teve
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -213,1 +213,2 @@ #!/usr/bin/env node | ||
}); | ||
{ | ||
"pluginAlias": "TuyaLan05TEVE", | ||
"pluginAlias": "Tuya", | ||
"pluginType": "platform", | ||
@@ -27,3 +27,3 @@ "singular": true, | ||
}, | ||
{ | ||
{ | ||
"title": "Smart Plug / Barely Smart Power Strip", | ||
@@ -124,3 +124,3 @@ "enum": [ | ||
"type": "string", | ||
"title": "Tuya ID", | ||
"title": "Tuya ID", | ||
"description": "If you don't have the Tuya ID or Key, follow the steps found on the <a href='https://github.com/AMoo-Miki/homebridge-tuya-lan/wiki/Setup-Instructions' target='_blank'>Setup Instructions</a> page.", | ||
@@ -127,0 +127,0 @@ "required": true, |
@@ -19,2 +19,3 @@ const TuyaAccessory = require('./lib/TuyaAccessory'); | ||
const SimpleBlindsAccessory = require('./lib/SimpleBlindsAccessory'); | ||
const SimpleBlinds2Accessory = require('./lib/SimpleBlinds2Accessory'); | ||
const SimpleHeaterAccessory = require('./lib/SimpleHeaterAccessory'); | ||
@@ -46,2 +47,3 @@ const SimpleFanAccessory = require('./lib/SimpleFanAccessory'); | ||
simpleblinds: SimpleBlindsAccessory, | ||
simpleblinds2: SimpleBlinds2Accessory, | ||
simpleheater: SimpleHeaterAccessory, | ||
@@ -98,2 +100,5 @@ switch: SwitchAccessory, | ||
//if (!/^[0-9a-f]+$/i.test(device.id)) return this.log.error('%s, id for %s, is not a valid id.', device.id, device.name || 'unnamed device'); | ||
if (!/^[0-9a-f]+$/i.test(device.key)) return this.log.error('%s, key for %s (%s), is not a valid key.', device.key.replace(/.{4}$/, '****'), device.name || 'unnamed device', device.id); | ||
if (!{16:1, 24:1, 32: 1}[device.key.length]) return this.log.error('%s, key for %s (%s), doesn\'t have the expected length.', device.key.replace(/.{4}$/, '****'), device.name || 'unnamed device', device.id); | ||
if (!device.type) return this.log.error('%s (%s) doesn\'t have a type defined.', device.name || 'Unnamed device', device.id); | ||
@@ -100,0 +105,0 @@ if (!CLASS_DEF[device.type.toLowerCase()]) return this.log.error('%s (%s) doesn\'t have a valid type defined.', device.name || 'Unnamed device', device.id); |
@@ -58,3 +58,3 @@ const BaseAccessory = require('./BaseAccessory'); | ||
this._checkServiceName(service, this.device.context.name); | ||
this.dpActive = this._getCustomDP(this.device.context.dpActive) || '1'; | ||
@@ -68,3 +68,3 @@ this.dpThreshold = this._getCustomDP(this.device.context.dpThreshold) || '2'; | ||
this.dpSwingMode = this._getCustomDP(this.device.context.dpSwingMode) || '104'; | ||
const characteristicActive = service.getCharacteristic(Characteristic.Active) | ||
@@ -434,3 +434,3 @@ .updateValue(this._getActive(this.dpActive)) | ||
this._hkRotationSpeed = value; | ||
this.setMultiState({[this.dpActive]: true, [this.dpRotationSpeed]: this.convertRotationSpeedFromHomeKitToTuya(value)}, callback); | ||
this.setMultiState({this.dpActive: true, this.dpRotationSpeed: this.convertRotationSpeedFromHomeKitToTuya(value)}, callback); | ||
} | ||
@@ -437,0 +437,0 @@ } |
{ | ||
"name": "homebridge-tuya-05teve", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
@@ -6,0 +6,0 @@ "description": "🏠 Offical Homebridge plugin for TuyAPI - Fork of iRayanKhan's plugin to test publishing steps.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
566792
5501