Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Error from socket #16

Closed
ToracX opened this issue Jun 7, 2019 · 10 comments
Closed

Error: Error from socket #16

ToracX opened this issue Jun 7, 2019 · 10 comments

Comments

@ToracX
Copy link

ToracX commented Jun 7, 2019

Hey i keep getting this? You know what to do?
root@raspberrypi:~# tuya-cli get --ip 192.168.178.59 --id 03462186ecfabc3331a3 --key 9b8cf008fb86040f -a
events.js:182
throw er; // Unhandled 'error' event
^

Error: Error from socket
at Socket.client.on.err (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/tuyapi/index.js:365:30)
at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

@codetheweb
Copy link
Member

Going by some of the errors you reported in the other comment, it looks like it could be a network error. You may want to double check that nothing else is trying to access the device, including an app open in the background on your phone.

Please try prefixing the command with DEBUG=* and post the output of that.

@ToracX
Copy link
Author

ToracX commented Jun 8, 2019

Going by some of the errors you reported in the other comment, it looks like it could be a network error. You may want to double check that nothing else is trying to access the device, including an app open in the background on your phone.

Please try prefixing the command with DEBUG=* and post the output of that.

Im positive nothing is trying to connect to it. I deleted the app of my iphone after i got the id and key.
What do you mean with DEBUG=*?

You mean this?
root@raspberrypi:~# tuya-cli get --ip 192.168.178.61 --id 03462186ecfabc3331a3 --key 9b8cf008fb86040f -a DEBUG=*
(node:7687) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: options.outputHelp is not a function
(node:7687) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@ToracX
Copy link
Author

ToracX commented Jun 8, 2019

Now i keep getting these errors.
Error communicating with device. Make sure nothing else is trying to control it or connected to it.

@ToracX
Copy link
Author

ToracX commented Jun 8, 2019

root@raspberrypi:~# sudo DEBUG=* homebridge
[2019-6-8 08:49:55] Loaded config.json with 10 accessories and 0 platforms.
[2019-6-8 08:49:55] ---
[2019-6-8 08:49:55] Warning: skipping plugin found at '/usr/lib/node_modules/homebridge-gpio-blinds' since we already loaded the same plugin from '/usr/local/lib/node_modules/homebridge-gpio-blinds'.
[2019-6-8 08:49:56] Loaded plugin: homebridge-camera-ffmpeg
[2019-6-8 08:49:56] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[2019-6-8 08:49:56] ---
[2019-6-8 08:49:56] Loaded plugin: homebridge-cmd
[2019-6-8 08:49:56] Registering accessory 'homebridge-cmd.CMD'
[2019-6-8 08:49:56] ---
[2019-6-8 08:49:56] Loaded plugin: homebridge-cmd4
[2019-6-8 08:49:57] Registering accessory 'homebridge-cmd4.Cmd4'
[2019-6-8 08:49:57] Registering platform 'homebridge-cmd4.Cmd4'
[2019-6-8 08:49:58] ---
[2019-6-8 08:49:58] Loaded plugin: homebridge-cmdaccessory
[2019-6-8 08:49:58] Registering platform 'homebridge-cmdaccessory.cmdAccessory'
[2019-6-8 08:49:58] ---
[2019-6-8 08:49:58] Loaded plugin: homebridge-dht-rpi
[2019-6-8 08:49:58] Registering accessory 'homebridge-dht-rpi.dht-rpi'
[2019-6-8 08:49:58] ---
[2019-6-8 08:49:58] Loaded plugin: homebridge-gpio-blinds
[2019-6-8 08:49:58] Registering accessory 'homebridge-gpio-blinds.Blinds'
[2019-6-8 08:49:58] ---
[2019-6-8 08:49:58] Loaded plugin: homebridge-gpio-ledstrip
[2019-6-8 08:49:58] Registering accessory 'homebridge-gpio-ledstrip.GPIORGBLEDStrip'
[2019-6-8 08:49:58] ---
[2019-6-8 08:49:59] Loaded plugin: homebridge-marantz-volume
[2019-6-8 08:49:59] Registering accessory 'homebridge-marantz-volume.marantz-volume'
[2019-6-8 08:49:59] ---
[2019-6-8 08:49:59] Loaded plugin: homebridge-raspberrypi-temperature
[2019-6-8 08:49:59] Registering accessory 'homebridge-raspberrypi-temperature.RaspberryPiTemperature'
[2019-6-8 08:49:59] ---
[2019-6-8 08:49:59] Loaded plugin: homebridge-tuya-colorlight
[2019-6-8 08:49:59] Registering accessory 'homebridge-tuya-colorlight.TuyaColorLight'
[2019-6-8 08:49:59] ---
TuyaAccessory constructor +0ms
[2019-6-8 08:50:01] Loaded plugin: homebridge-tuya-smartlamp
[2019-6-8 08:50:01] Registering accessory 'homebridge-tuya-smartdevice.TuyaSmartDevice'
[2019-6-8 08:50:01] ---
[2019-6-8 08:50:01] Loaded plugin: homebridge-tuyalight
[2019-6-8 08:50:01] Registering accessory 'homebridge-tuyalight.tuyalight'
[2019-6-8 08:50:01] ---
[2019-6-8 08:50:01] Loaded plugin: homebridge-tv-cec
[2019-6-8 08:50:01] Registering accessory 'homebridge-tv-cec.TV-CEC'
[2019-6-8 08:50:01] ---
[2019-6-8 08:50:01] Loaded plugin: eurodomest-rgb1
[2019-6-8 08:50:01] Registering accessory 'homebridge-fake-rgb1.Fake-RGB1'
[2019-6-8 08:50:01] ---
[2019-6-8 08:50:01] Loaded plugin: eurodomest-rgb2
[2019-6-8 08:50:01] Registering accessory 'homebridge-fake-rgb2.Fake-RGB2'
[2019-6-8 08:50:01] ---
[2019-6-8 08:50:01] Loaded plugin: eurodomest-rgb3
[2019-6-8 08:50:01] Registering accessory 'homebridge-fake-rgb3.Fake-RGB3'
[2019-6-8 08:50:01] ---
[2019-6-8 08:50:01] Loaded plugin: homebridge-gpio-device
homebridge-gpio-device API version: 2.4
[2019-6-8 08:50:01] Registering accessory 'homebridge-gpio-device.GPIODevice'
[2019-6-8 08:50:01] ---
[2019-6-8 08:50:01] Loading 0 platforms...
[2019-6-8 08:50:01] Loading 10 accessories...
[2019-6-8 08:50:01] [RaspberryPi CPU Temperature] Initializing RaspberryPiTemperature accessory...
[2019-6-8 08:50:01] [Woonkamer Stereo] Initializing marantz-volume accessory...
[2019-6-8 08:50:01] [Bedstrip] Initializing GPIORGBLEDStrip accessory...
[2019-6-8 08:50:02] [Bedstrip] Setting rgb values to: Red: 0 Green: 0 Blue: 0
[2019-6-8 08:50:02] [Bulb 1] Initializing Fake-RGB1 accessory...
[2019-6-8 08:50:02] [Bulb 1] Initialized 'Bulb 1'
[2019-6-8 08:50:02] [Bulb 2] Initializing Fake-RGB2 accessory...
[2019-6-8 08:50:02] [Bulb 2] Initialized 'Bulb 2'
[2019-6-8 08:50:02] [Bulb 3] Initializing Fake-RGB3 accessory...
[2019-6-8 08:50:02] [Bulb 3] Initialized 'Bulb 3'
[2019-6-8 08:50:02] [lamp3] Initializing TuyaColorLight accessory...
[2019-6-8 08:50:02] [lamp3] Polling at interval... 60 seconds
[2019-6-8 08:50:02] [lamp2] Initializing TuyaColorLight accessory...
[2019-6-8 08:50:02] [lamp2] Polling at interval... 60 seconds
[2019-6-8 08:50:02] [lamp1] Initializing TuyaColorLight accessory...
[2019-6-8 08:50:02] [lamp1] Polling at interval... 60 seconds
[2019-6-8 08:50:02] [Garage] Initializing Blinds accessory...
Load homebridge-camera-ffmpeg.Camera-ffmpeg
Load homebridge-cmdaccessory.cmdAccessory
Setup Payload:
X-HM://00246K4MEC99E
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 430-43-430 │     
└────────────┘     

EventedHTTPServer Server listening on port 51826 +0ms
[2019-6-8 08:50:02] Homebridge is running on port 51826.
EventedHTTPServer [::ffff:192.168.178.64] New connection from client +1s
EventedHTTPServer [::ffff:192.168.178.64] HTTP server listening on port 36473 +4ms
EventedHTTPServer [::ffff:192.168.178.58] New connection from client +15ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP server listening on port 46453 +2ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /pair-verify +109ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: POST /pair-verify +1ms
HAPServer [CC:22:3D:A3:CE:32] Pair verify step 1/2 +14ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +286ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /pair-verify +4ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: POST /pair-verify +1ms
HAPServer [CC:22:3D:A3:CE:32] Pair verify step 1/2 +2ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +96ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /pair-verify +105ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: POST /pair-verify +1ms
HAPServer [CC:22:3D:A3:CE:32] Pair verify step 2/2 +4ms
HAPServer [CC:22:3D:A3:CE:32] Client BBAE989D-8A2F-4576-B271-318A9BFA337C verification complete +95ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +3ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /pair-verify +29ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: POST /pair-verify +0ms
HAPServer [CC:22:3D:A3:CE:32] Pair verify step 2/2 +2ms
HAPServer [CC:22:3D:A3:CE:32] Client BBAE989D-8A2F-4576-B271-318A9BFA337C verification complete +73ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +3ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /accessories +6ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: GET /accessories +0ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +24ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /accessories +78ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: GET /accessories +1ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +14ms
[2019-6-8 08:50:38] [Tuya Color Light - lamp3] Error communicating with device. Make sure nothing else is trying to control it or connected to it.
[2019-6-8 08:50:38] [Tuya Color Light - lamp2] Error communicating with device. Make sure nothing else is trying to control it or connected to it.
[2019-6-8 08:50:38] [Tuya Color Light - lamp1] Error communicating with device. Make sure nothing else is trying to control it or connected to it.
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /characteristics +43s
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +3ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":135,"iid":10,"ev":true},{"aid":135,"iid":11,"ev":true},{"aid":135,"iid":12,"ev":true},{"aid":135,"iid":13,"ev":true}] +8ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +8ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +3ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +1ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +5ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /characteristics +24ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +2ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":134,"iid":10,"ev":true},{"aid":134,"iid":11,"ev":true},{"aid":134,"iid":12,"ev":true},{"aid":134,"iid":13,"ev":true}] +3ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +2ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +2ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +1ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +2ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /characteristics +12ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":115,"iid":10,"ev":true},{"aid":115,"iid":11,"ev":true},{"aid":115,"iid":12,"ev":true},{"aid":115,"iid":13,"ev":true}] +2ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +0ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +2ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /characteristics +11ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":113,"iid":10,"ev":true},{"aid":113,"iid":11,"ev":true},{"aid":113,"iid":12,"ev":true},{"aid":113,"iid":13,"ev":true}] +2ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +1ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +1ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /characteristics +13ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":137,"iid":10,"ev":true},{"aid":137,"iid":11,"ev":true},{"aid":137,"iid":12,"ev":true}] +2ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Current Position" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Target Position" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Position State" for events +0ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +2ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /characteristics +25ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":112,"iid":10,"ev":true},{"aid":112,"iid":11,"ev":true}] +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +0ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +1ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /characteristics +9ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":110,"iid":10,"ev":true}] +3ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Current Temperature" for events +3ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +1ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /characteristics +12ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":136,"iid":10,"ev":true},{"aid":136,"iid":11,"ev":true},{"aid":136,"iid":12,"ev":true},{"aid":136,"iid":13,"ev":true}] +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +1ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +1ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /characteristics +12ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +2ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":129,"iid":9,"ev":true},{"aid":129,"iid":10,"ev":true},{"aid":129,"iid":11,"ev":true},{"aid":129,"iid":12,"ev":true}] +2ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +1ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +1ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /characteristics +18ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +1ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":114,"iid":10,"ev":true},{"aid":114,"iid":11,"ev":true},{"aid":114,"iid":12,"ev":true},{"aid":114,"iid":13,"ev":true}] +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +2ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP Response is finished +3ms
EventedHTTPServer [::ffff:192.168.178.58] HTTP request: /characteristics?id=113.13,113.11,113.12,113.10,115.13,115.12,115.10,115.11,134.13,134.10,134.12,134.11,137.11,137.10,136.10,136.13,136.12,136.11,114.13,114.12,114.10,114.11,110.10,129.11,129.12,129.10,129.9,135.10,135.11,135.13,135.12,112.10,112.11 +10ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: GET /characteristics?id=113.13,113.11,113.12,113.10,115.13,115.12,115.10,115.11,134.13,134.10,134.12,134.11,137.11,137.10,136.10,136.13,136.12,136.11,114.13,114.12,114.10,114.11,110.10,129.11,129.12,129.10,129.9,135.10,135.11,135.13,135.12,112.10,112.11 +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Saturation" +8ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Saturation" value: 0 +6ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Brightness" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Brightness" value: 100 +6ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '113.11' notification for this connection since it originated here. +6ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Hue" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Hue" value: 0 +2ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "On" +0ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "On" value: false +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Saturation" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Saturation" value: 0 +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Hue" +0ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Hue" value: 0 +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "On" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "On" value: false +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Brightness" +0ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Brightness" value: 100 +1ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '115.11' notification for this connection since it originated here. +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Brightness" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Brightness" value: 100 +1ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '134.13' notification for this connection since it originated here. +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "On" +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Saturation" +3ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Saturation" value: 100 +2ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '134.12' notification for this connection since it originated here. +3ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Hue" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Hue" value: 130 +2ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '134.11' notification for this connection since it originated here. +2ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Target Position" +3ms
[2019-6-8 08:50:48] [Garage] Open and close reed switches are active, setting to 50
[2019-6-8 08:50:48] [Garage] Target position: 50
Accessory [Homebridge-slaapkamer2] Got Characteristic "Target Position" value: 50 +9ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '137.11' notification for this connection since it originated here. +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Current Position" +1ms
[2019-6-8 08:50:48] [Garage] Current position: 50
Accessory [Homebridge-slaapkamer2] Got Characteristic "Current Position" value: 50 +2ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '137.10' notification for this connection since it originated here. +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "On" +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Brightness" +2ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Brightness" value: 100 +1ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '136.13' notification for this connection since it originated here. +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Saturation" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Saturation" value: 100 +1ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '136.12' notification for this connection since it originated here. +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Hue" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Hue" value: 130 +1ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '136.11' notification for this connection since it originated here. +2ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Saturation" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Saturation" value: 0 +2ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Hue" +0ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Hue" value: 0 +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "On" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "On" value: false +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Brightness" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Brightness" value: 100 +1ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '114.11' notification for this connection since it originated here. +2ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Current Temperature" +0ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Current Temperature" value: 66.6 +5ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '110.10' notification for this connection since it originated here. +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Hue" +0ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Hue" value: 0 +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Saturation" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Saturation" value: 0 +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Brightness" +0ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Brightness" value: 100 +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "On" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "On" value: false +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "On" +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Hue" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Hue" value: 130 +3ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '135.11' notification for this connection since it originated here. +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Brightness" +0ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Brightness" value: 100 +1ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '135.13' notification for this connection since it originated here. +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Saturation" +1ms
Accessory [Homebridge-slaapkamer2] Got Characteristic "Saturation" value: 100 +0ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '135.12' notification for this connection since it originated here. +1ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "On" +0ms
Accessory [Homebridge-slaapkamer2] Getting value for Characteristic "Brightness" +43ms
[2019-6-8 08:50:48] [Woonkamer Stereo] Receiver MainZone Volume power state is 0
Accessory [Homebridge-slaapkamer2] Got Characteristic "On" value: false +197ms
[2019-6-8 08:50:48] [Woonkamer Stereo] Get receiver volume 9
Accessory [Homebridge-slaapkamer2] Got Characteristic "Brightness" value: 9 +466ms
EventedHTTPServer [::ffff:192.168.178.58] Muting event '112.11' notification for this connection since it originated here. +0ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /characteristics +12s
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":114,"iid":10,"ev":true},{"aid":114,"iid":11,"ev":true},{"aid":114,"iid":12,"ev":true},{"aid":114,"iid":13,"ev":true}] +4ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +1ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +2ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /characteristics +14ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +1ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":110,"iid":10,"ev":true}] +2ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Current Temperature" for events +1ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +3ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /characteristics +13ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +1ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":129,"iid":9,"ev":true},{"aid":129,"iid":10,"ev":true},{"aid":129,"iid":11,"ev":true},{"aid":129,"iid":12,"ev":true}] +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +4ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +1ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +8ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /characteristics +20ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":136,"iid":10,"ev":true},{"aid":136,"iid":11,"ev":true},{"aid":136,"iid":12,"ev":true},{"aid":136,"iid":13,"ev":true}] +3ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +2ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +1ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +2ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /characteristics +9ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":115,"iid":10,"ev":true},{"aid":115,"iid":11,"ev":true},{"aid":115,"iid":12,"ev":true},{"aid":115,"iid":13,"ev":true}] +2ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +0ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +2ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /characteristics +10ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":137,"iid":10,"ev":true},{"aid":137,"iid":11,"ev":true},{"aid":137,"iid":12,"ev":true}] +3ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Current Position" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Target Position" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Position State" for events +1ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +2ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /characteristics +10ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +1ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":134,"iid":10,"ev":true},{"aid":134,"iid":11,"ev":true},{"aid":134,"iid":12,"ev":true},{"aid":134,"iid":13,"ev":true}] +2ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +3ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +3ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +2ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /characteristics +12ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +2ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":113,"iid":10,"ev":true},{"aid":113,"iid":11,"ev":true},{"aid":113,"iid":12,"ev":true},{"aid":113,"iid":13,"ev":true}] +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +0ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +1ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /characteristics +11ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +0ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":112,"iid":10,"ev":true},{"aid":112,"iid":11,"ev":true}] +2ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +0ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +6ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP request: /characteristics +16ms
HAPServer [CC:22:3D:A3:CE:32] HAP Request: PUT /characteristics +1ms
Accessory [Homebridge-slaapkamer2] Processing characteristic set: [{"aid":135,"iid":10,"ev":true},{"aid":135,"iid":11,"ev":true},{"aid":135,"iid":12,"ev":true},{"aid":135,"iid":13,"ev":true}] +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "On" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Hue" for events +0ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Saturation" for events +1ms
Accessory [Homebridge-slaapkamer2] Registering Characteristic "Brightness" for events +0ms
EventedHTTPServer [::ffff:192.168.178.64] HTTP Response is finished +2ms
EventedHTTPServer [::ffff:192.168.178.64] Sending HTTP event '110.10' with data: {"characteristics":[{"aid":110,"iid":10,"value":68.7}]} +572ms
EventedHTTPServer [::ffff:192.168.178.58] Sending HTTP event '110.10' with data: {"characteristics":[{"aid":110,"iid":10,"value":68.7}]} +2ms
[2019-6-8 08:51:02] [lamp3] Polling at interval... 60 seconds
[2019-6-8 08:51:02] [Tuya Color Light - lamp3] Error communicating with device. Make sure nothing else is trying to control it or connected to it.
[2019-6-8 08:51:02] [lamp2] Polling at interval... 60 seconds
[2019-6-8 08:51:02] [lamp1] Polling at interval... 60 seconds
[2019-6-8 08:51:02] [Tuya Color Light - lamp2] Error communicating with device. Make sure nothing else is trying to control it or connected to it.
[2019-6-8 08:51:02] [Tuya Color Light - lamp1] Error communicating with device. Make sure nothing else is trying to control it or connected to it.
^C2019-06-08 08:51:03 sigHandler: Unhandled signal 2, terminating

@codetheweb
Copy link
Member

What's your network setup like?

I think the issue likely lies with your network rather than the device or TuyAPI.

Have you ever been able to successfully set the device state at all with TuyAPI? If not, it may have v2 firmware on it. TuyAPI is currently incompatible with these devices.

@ToracX
Copy link
Author

ToracX commented Jun 9, 2019

@codetheweb
How do i know the firmware version?
I guess i have V1. It says 1.0.5.

Network setup? Im not sure what you mean.
I have an raspberry pi connected to fritzbox over lan. The bulbs are connected via 2,4ghz band to the fritzbox.

Do you need to port forward? Maybe that could be it.

@codetheweb
Copy link
Member

Is the brand Teckin by any chance? v1.0.5 of firmware on Teckin devices upgrades the protocol to 3.3, which we don't support yet.

See here: ct-Open-Source/tuya-convert#140.

@codetheweb
Copy link
Member

Closing this because of inactivity, feel free to reopen if you still have issues.

@anrolmar
Copy link

Hi @codetheweb.

I use DEBUG=* tuya-cli get --ip XXX.XXX.XXX.XXX --id YYYYYYYYY --key KKKKKKKK --all, but I'm still have the same error: Error: connect EHOSTUNREACH

Can you give some hints?

@codetheweb
Copy link
Member

Please open a new issue if you're having problems @anrolmar.

Be sure to include the output of that command, and some more details about your network setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants