iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
394 stars 164 forks source link

Only appears one socket #4

Closed kalety closed 6 years ago

kalety commented 6 years ago

Hi!, first at all, thank you for your work. When i put a outlet with three sockets and one (four USB) ports, in home app only appears the last socket like the general switch of the outlet. I paste you the config.json section. What I do wrong?. Thanks in advance…

{ "platform": "TuyaPlatform", "name": "TuyaPlatform", "devices": [ { "name": "Enchufe Tuya_1", "ip": "192.168.1.57", "id": "03200296dc4f22297819", "key": "8e5679384b75cxxx" }, { "name": "Enchufe Tuya_2", "ip": "192.168.1.59", "id": "03200296dc4f22297804", "key": "26839ea0e3d43xxx" }, { "name": "Enchufe Tuya_3", "ip": "192.168.1.65", "id": "01200874dc4f220f1620", "key": "4b0ee46f2ed4cxxx" }, { "name": "Enchufe Tuya_4", "ip": "192.168.1.67", "id": "01200874dc4f220f2814", "key": "57f9cc322f0e1xxx" }, { "name": "Enchufe Tuya_5", "ip": "192.168.1.68", "id": "01200874ecfabc8183b7", "key": "116a71a6196c4xxx" }, { "name": "Enchufe Tuya_6", "ip": "192.168.1.69", "id": "01200874dc4f220ec9e2", "key": "a0129104db063xxx" }, { "name": "1. Router", "ip": "192.168.1.66", "id": "0013528384f3eb8ff0fa", "key": "1ee29a4221240xxx", "dps": 1 }, { "name": "2. HA", "ip": "192.168.1.66", "id": "0013528384f3eb8ff0fa", "key": "1ee29a4221240xxx", "dps": 2 }, { "name": "3. HB", "ip": "192.168.1.66", "id": "0013528384f3eb8ff0fa", "key": "1ee29a4221240xxx", "dps": 3 }, { "name": "Puertos USB", "ip": "192.168.1.66", "id": "0013528384f3eb8ff0fa", "key": "1ee29a4221240xxx", "dps": 4

codetheweb commented 6 years ago

Can you please post the output of your Homebridge debug log? You can start Homebridge in debug mode by running DEBUG=* homebridge.

kalety commented 6 years ago

Aug 21 10:22:52 COTO_HBR homebridge[8585]: [2018-8-21 10:22:52] [TuyaPlatform] Configuring cached accessory: [Enchufe Tuya_1] undefined fa314884-6b2c-430f-ae93-b0227758ce86 Aug 21 10:22:52 COTO_HBR homebridge[8585]: [2018-8-21 10:22:52] [TuyaPlatform] Configuring cached accessory: [Enchufe Tuya_2] undefined cf2386f8-64b6-4de0-93d2-ff9db1634b03 Aug 21 10:22:52 COTO_HBR homebridge[8585]: [2018-8-21 10:22:52] [TuyaPlatform] Configuring cached accessory: [Enchufe Tuya_3] undefined f4cca8e2-b8ba-41a8-af62-172f373fc334 Aug 21 10:22:52 COTO_HBR homebridge[8585]: [2018-8-21 10:22:52] [TuyaPlatform] Configuring cached accessory: [Enchufe Tuya_4] undefined 5bb216b1-21d4-4b9a-9099-2c2d40efd8d3 Aug 21 10:22:52 COTO_HBR homebridge[8585]: [2018-8-21 10:22:52] [TuyaPlatform] Configuring cached accessory: [Enchufe Tuya_5] undefined 7f2d6873-9930-480d-a842-5b13fbb9c46f Aug 21 10:22:52 COTO_HBR homebridge[8585]: [2018-8-21 10:22:52] [TuyaPlatform] Configuring cached accessory: [Enchufe Tuya_6] undefined 5f2783d4-5d35-4552-9fd5-b3cc6b7bc648 Aug 21 10:22:52 COTO_HBR homebridge[8585]: [2018-8-21 10:22:52] [TuyaPlatform] Configuring cached accessory: [Puertos USB] undefined 5f7353f1-985e-45d0-874d-805235f5a929 Aug 21 10:22:52 COTO_HBR homebridge[8585]: [2018-8-21 10:22:52] [yeelight] DidFinishLaunching Aug 21 10:22:52 COTO_HBR homebridge[8585]: no ble cap, skip ble device discovery Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Device has IP: 03200296dc4f22297819 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] New Device Online: 03200296dc4f22297819 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Adding: 03200296dc4f22297819 Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.139Z TuyAPI Device: Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.147Z TuyAPI { name: 'Enchufe Tuya_1', Aug 21 10:22:53 COTO_HBR homebridge[8585]: ip: '192.168.1.57', Aug 21 10:22:53 COTO_HBR homebridge[8585]: id: '03200296dc4f22297819', Aug 21 10:22:53 COTO_HBR homebridge[8585]: key: '8e5679384b75c620', Aug 21 10:22:53 COTO_HBR homebridge[8585]: port: 6668, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1, Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: TuyaCipher { Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: false }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: decipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: true }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1 } } Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Device has IP: 03200296dc4f22297804 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] New Device Online: 03200296dc4f22297804 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Adding: 03200296dc4f22297804 Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.150Z TuyAPI Device: Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.151Z TuyAPI { name: 'Enchufe Tuya_2', Aug 21 10:22:53 COTO_HBR homebridge[8585]: ip: '192.168.1.59', Aug 21 10:22:53 COTO_HBR homebridge[8585]: id: '03200296dc4f22297804', Aug 21 10:22:53 COTO_HBR homebridge[8585]: key: '26839ea0e3d4XXXX', Aug 21 10:22:53 COTO_HBR homebridge[8585]: port: 6668, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1, Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: TuyaCipher { Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: false }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: decipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: true }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1 } } Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Device has IP: 01200874dc4f220f1620 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] New Device Online: 01200874dc4f220f1620 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Adding: 01200874dc4f220f1620 Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.154Z TuyAPI Device: Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.155Z TuyAPI { name: 'Enchufe Tuya_3', Aug 21 10:22:53 COTO_HBR homebridge[8585]: ip: '192.168.1.65', Aug 21 10:22:53 COTO_HBR homebridge[8585]: id: '01200874dc4f220f1620', Aug 21 10:22:53 COTO_HBR homebridge[8585]: key: '4b0ee46f2edXXXX', Aug 21 10:22:53 COTO_HBR homebridge[8585]: port: 6668, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1, Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: TuyaCipher { Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: false }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: decipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: true }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1 } } Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Device has IP: 01200874dc4f220f2814 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] New Device Online: 01200874dc4f220f2814 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Adding: 01200874dc4f220f2814 Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.158Z TuyAPI Device: Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.159Z TuyAPI { name: 'Enchufe Tuya_4', Aug 21 10:22:53 COTO_HBR homebridge[8585]: ip: '192.168.1.67', Aug 21 10:22:53 COTO_HBR homebridge[8585]: id: '01200874dc4f220f2814', Aug 21 10:22:53 COTO_HBR homebridge[8585]: key: '57f9cc322f0eXXXX', Aug 21 10:22:53 COTO_HBR homebridge[8585]: port: 6668, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1, Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: TuyaCipher { Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: false }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: decipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: true }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1 } } Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Device has IP: 01200874ecfabc8183b7 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] New Device Online: 01200874ecfabc8183b7 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Adding: 01200874ecfabc8183b7 Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.162Z TuyAPI Device: Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.163Z TuyAPI { name: 'Enchufe Tuya_5', Aug 21 10:22:53 COTO_HBR homebridge[8585]: ip: '192.168.1.68', Aug 21 10:22:53 COTO_HBR homebridge[8585]: id: '01200874ecfabc8183b7', Aug 21 10:22:53 COTO_HBR homebridge[8585]: key: '116a71a6196cXXXX', Aug 21 10:22:53 COTO_HBR homebridge[8585]: port: 6668, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1, Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: TuyaCipher { Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: false }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: decipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: true }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1 } } Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Device has IP: 01200874dc4f220ec9e2 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] New Device Online: 01200874dc4f220ec9e2 Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Adding: 01200874dc4f220ec9e2 Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.166Z TuyAPI Device: Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.167Z TuyAPI { name: 'Enchufe Tuya_6', Aug 21 10:22:53 COTO_HBR homebridge[8585]: ip: '192.168.1.69', Aug 21 10:22:53 COTO_HBR homebridge[8585]: id: '01200874dc4f220ec9e2', Aug 21 10:22:53 COTO_HBR homebridge[8585]: key: 'a0129104db06XXXX', Aug 21 10:22:53 COTO_HBR homebridge[8585]: port: 6668, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1, Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: TuyaCipher { Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: false }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: decipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: true }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1 } } Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Device has IP: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] New Device Online: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Adding: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.170Z TuyAPI Device: Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.171Z TuyAPI { name: '1. Router', Aug 21 10:22:53 COTO_HBR homebridge[8585]: ip: '192.168.1.66', Aug 21 10:22:53 COTO_HBR homebridge[8585]: id: '0013528384f3eb8ff0fa', Aug 21 10:22:53 COTO_HBR homebridge[8585]: key: '1ee29a422124XXXX', Aug 21 10:22:53 COTO_HBR homebridge[8585]: dps: 1, Aug 21 10:22:53 COTO_HBR homebridge[8585]: port: 6668, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1, Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: TuyaCipher { Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: false }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: decipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: true }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1 } } Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Device has IP: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] New Device Online: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Adding: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.175Z TuyAPI Device: Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.176Z TuyAPI { name: '2. HA', Aug 21 10:22:53 COTO_HBR homebridge[8585]: ip: '192.168.1.66', Aug 21 10:22:53 COTO_HBR homebridge[8585]: id: '0013528384f3eb8ff0fa', Aug 21 10:22:53 COTO_HBR homebridge[8585]: key: '1ee29a422124XXXX', Aug 21 10:22:53 COTO_HBR homebridge[8585]: dps: 2, Aug 21 10:22:53 COTO_HBR homebridge[8585]: port: 6668, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1, Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: TuyaCipher { Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: false }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: decipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: true }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1 } } Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Device has IP: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] New Device Online: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Adding: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.179Z TuyAPI Device: Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.180Z TuyAPI { name: '3. HB', Aug 21 10:22:53 COTO_HBR homebridge[8585]: ip: '192.168.1.66', Aug 21 10:22:53 COTO_HBR homebridge[8585]: id: '0013528384f3eb8ff0fa', Aug 21 10:22:53 COTO_HBR homebridge[8585]: key: '1ee29a422124XXXX', Aug 21 10:22:53 COTO_HBR homebridge[8585]: dps: 3, Aug 21 10:22:53 COTO_HBR homebridge[8585]: port: 6668, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1, Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: TuyaCipher { Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: false }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: decipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: true }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1 } } Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Device has IP: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] New Device Online: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: [2018-8-21 10:22:53] [TuyaPlatform] Adding: 0013528384f3eb8ff0fa Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.182Z TuyAPI Device: Aug 21 10:22:53 COTO_HBR homebridge[8585]: 2018-08-21T08:22:53.183Z TuyAPI { name: 'Puertos USB', Aug 21 10:22:53 COTO_HBR homebridge[8585]: ip: '192.168.1.66', Aug 21 10:22:53 COTO_HBR homebridge[8585]: id: '0013528384f3eb8ff0fa', Aug 21 10:22:53 COTO_HBR homebridge[8585]: key: '1ee29a422124XXXX', Aug 21 10:22:53 COTO_HBR homebridge[8585]: dps: 4, Aug 21 10:22:53 COTO_HBR homebridge[8585]: port: 6668, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1, Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: TuyaCipher { Aug 21 10:22:53 COTO_HBR homebridge[8585]: cipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: false }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: decipher: Aug 21 10:22:53 COTO_HBR homebridge[8585]: { algorithm: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: mode: [Object], Aug 21 10:22:53 COTO_HBR homebridge[8585]: blockSize: 16, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _finish: false, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _input: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: output: null, Aug 21 10:22:53 COTO_HBR homebridge[8585]: _op: [Function], Aug 21 10:22:53 COTO_HBR homebridge[8585]: _decrypt: true }, Aug 21 10:22:53 COTO_HBR homebridge[8585]: version: 3.1 } } �ŽŽIDMŽŽ

codetheweb commented 6 years ago

I think I found the bug. See #6 for details.

kalety commented 6 years ago

Thanks!!. Hope you catch the bug soon!

codetheweb commented 6 years ago

This should be fixed now, although I can't currently test it. Update homebridge-tuya and try again.

kalety commented 6 years ago

Thanks!!!, I’ve updated the plugin, and now, seems all work flawlessly. Now appears at home iOS app the four sockets of my outlet.

Thank you again for your work!

codetheweb commented 6 years ago

Glad to hear it's working 👍.

Feel free to re-open this issue if you have any more problems.

kalety commented 6 years ago

👏🏼👏🏼👏🏼👏🏼👏🏼