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

Two lights OK, third light intermittently drops off #11

Open
jezzaaa opened this issue Sep 30, 2019 · 0 comments
Open

Two lights OK, third light intermittently drops off #11

jezzaaa opened this issue Sep 30, 2019 · 0 comments

Comments

@jezzaaa
Copy link

jezzaaa commented Sep 30, 2019

Weird problem with a newly added light. I'm hoping you can help me work out the source of the problem.

I'm using the Docker instance v0.0.2.6 on a RPi, and I updated the DH and SmartApp a few hours ago. I have two lights working just fine. I added a third light, the same brand as one of the other two, and configured it much the same (different IP, ID and key, of course). However, the ty-connector logs show that strange behaviour in relation to the new light, and I have intermittent dropouts where I can't control the light from ST.

The log shows frequent dumps of the dps values, at a rate of two per second; the other lights don't show these logs (at least not at that rate). After a while the connection to the light drops out, presumably because of the excess traffic. After 5-10 minutes it sometimes comes good again. But sometimes I have to restart the ty-connector docker process.

2019-09-30 10:48:11 [info]: Enabled Custom HTTPS
2019-09-30 10:48:12 [info]: robe: Device is connected
2019-09-30 10:48:12 [info]: Day Bed Light: Device is connected
2019-09-30 10:48:12 [info]: Study Lamp: Device is connected
2019-09-30 10:48:12 [info]: robe: {"20":true,"21":"white","22":127,"23":0,"24":"002e01e6003c","25":"04464602007803e803e800000000464602007803e8000a00000000"}
2019-09-30 10:48:12 [info]: Day Bed Light: {"1":false,"2":"colour","3":27,"4":113,"5":"120e1b01037c1b","6":"00ff0000000000","7":"ffff500100ff00","8":"ffff8003ff000000ff000000ff000000000000000000","9":"ffff5001ff0000","10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"}
2019-09-30 10:48:12 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:48:12 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:48:13 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:48:13 [info]: robe is already registered to SmartThings. IP(192.168.1.89)
2019-09-30 10:48:13 [info]: Day Bed Light is already registered to SmartThings. IP(192.168.1.88)
2019-09-30 10:48:13 [info]: Study Lamp is already registered to SmartThings. IP(192.168.1.96)
2019-09-30 10:48:13 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:48:14 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:48:14 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:48:15 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:48:15 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:49:00 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:49:01 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:49:01 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:49:02 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:49:02 [info]: Study Lamp: Device is error >> Error: Error from socket
2019-09-30 10:49:02 [info]: Study Lamp: Device is disconnected
2019-09-30 10:49:32 [info]: Study Lamp: Device is connected
2019-09-30 10:49:32 [info]: Study Lamp: Device is error >> Error: Error from socket
2019-09-30 10:49:32 [info]: Study Lamp: Device is disconnected
2019-09-30 10:50:02 [info]: Study Lamp: Device is connected
2019-09-30 10:50:02 [info]: Study Lamp: Device is error >> Error: Error from socket
2019-09-30 10:50:02 [info]: Study Lamp: Device is disconnected
2019-09-30 10:50:32 [info]: Study Lamp: Device is connected
2019-09-30 10:50:32 [info]: Study Lamp: Device is error >> Error: Error from socket
2019-09-30 10:50:32 [info]: Study Lamp: Device is disconnected
2019-09-30 10:51:02 [info]: Study Lamp: Device is connected
2019-09-30 10:51:02 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:51:03 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:51:03 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}
2019-09-30 10:51:04 [info]: Study Lamp: {"20":true,"21":"colour","22":255,"23":255,"24":"ffffffffffff","25":"000e0d00002e03e8000000c80000"}

At the very moment of the disconnect, the light sends a reset:

23:12:54.306384 IP 192.168.1.96.6668 > 192.168.1.91.40232: Flags [S.], seq 178277, ack 1198253578, win 4380, options [mss 1460], length 0
23:12:54.306516 IP 192.168.1.91.40232 > 192.168.1.96.6668: Flags [.], ack 1, win 29200, length 0
23:12:54.309781 IP 192.168.1.91.40232 > 192.168.1.96.6668: Flags [P.], seq 1:89, ack 1, win 29200, length 88
23:12:54.316014 IP 192.168.1.96.6668 > 192.168.1.91.40232: Flags [.], ack 89, win 4292, length 0
23:12:54.317292 IP 192.168.1.96.6668 > 192.168.1.91.40232: Flags [R.], seq 1, ack 89, win 4380, length 0
23:13:02.779678 IP 192.168.1.91.37646 > 192.168.1.89.6668: Flags [P.], seq 550:605, ack 281, win 30016, length 55

At each retry, the connection is established but another reset is sent:

23:15:24.664854 IP 192.168.1.91.40262 > 192.168.1.96.6668: Flags [S], seq 2947561079, win 29200, options [mss 1460,sackOK,TS val 1134209477 ecr 0,nop,wscale 7], length 0
23:15:24.674006 IP 192.168.1.96.6668 > 192.168.1.91.40262: Flags [S.], seq 215533, ack 2947561080, win 4380, options [mss 1460], length 0
23:15:24.674104 IP 192.168.1.91.40262 > 192.168.1.96.6668: Flags [.], ack 1, win 29200, length 0
23:15:24.677200 IP 192.168.1.91.40262 > 192.168.1.96.6668: Flags [P.], seq 1:89, ack 1, win 29200, length 88
23:15:24.694053 IP 192.168.1.96.6668 > 192.168.1.91.40262: Flags [.], ack 89, win 4292, length 0
23:15:24.694516 IP 192.168.1.96.6668 > 192.168.1.91.40262: Flags [R.], seq 1, ack 89, win 4380, length 0

While it's working, I can turn the light off and on using the ST app, and even from Google Assistant. But when the connection drops out, both of these stop working - but I can control using tuya-cli.

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

1 participant