-
Notifications
You must be signed in to change notification settings - Fork 191
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
CoverDevice don't close #498
Comments
Hi @fdaforno that looks valid (I updated your post to format the python). Does it work outside the flask rest app if you just issue the commands as a script? If not, I would check to see if your Tuya cover device is using a different command. Run this monitor script and then use the controls on the device itself or the SmartLIfe app to open/close the cover. It may record and send the updates. Lines 10 to 66 in db9680d
|
Hi @jasonacox i tried the monitor, when i send the commnad to close from the app i receive this: i create a super easy app to test only the close function with debug mode true ad seems OPEN is hardcoded some where :-( look the debug output below import tinytuya
DEVICEID = "bfd94c4278d08b58a0qqug"
DEVICEIP = "192.168.250.134"
DEVICEKEY = "k1t}o:&Igw.h$>oN"
DEVICEVERS = "3.3"
print("TinyTuya - TEST [%s]\n" % tinytuya.__version__)
print('TESTING: Device %s at %s with key %s version %s' %
(DEVICEID, DEVICEIP, DEVICEKEY, DEVICEVERS))
d = tinytuya.CoverDevice(DEVICEID, DEVICEIP, DEVICEKEY)
tinytuya.set_debug(True)
d.set_version(3.3)
d.close_cover(switch=1) DEBUG RESULP TESTING: Device bfd94c4278d08b58a0qqug at 192.168.250.134 with key k1t}o:&Igw.h$>oN version 3.3 DEBUG:Python 3.9.19 (main, May 14 2024, 09:03:15) |
Yes, I see the problem. The import tinytuya
d = tinytuya.OutletDevice(DEVICEID, DEVICEIP, DEVICEKEY)
tinytuya.set_debug(True)
d.set_version(3.3)
# Close
d.set_value(1, 'close')
# Open
d.set_value(1, 'open') |
@fdaforno I had the same issue. It turned out the 2nd switch worked. Maybe you can give it a try
|
Hi all
i still implementing a http rest service that control my tuya devices at home
i have a issue wiht CoverDevices . i'm able to open it send the right command but i'm not able to close
What i doing wrong?
this is a snippet of my code
The text was updated successfully, but these errors were encountered: