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

Switching a Bluetooth device to on (dps 1) requires to first set the timer (dps 11) #71

Open
caco3 opened this issue Jun 28, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@caco3
Copy link

caco3 commented Jun 28, 2023

using 3.7.0-beta10 and a we are only able to switch the valve off, but not on again.

I traced it down to the issue that the timer first needs to be set before it can be switched on.

  • Switching off always works
  • Switching on only works, if I set dps 11 to a non-zero value beforehand, eg. using
    tuya-cli set --ip 192.168.1.170 --id bf641c545b9e1920da14vi --key 'V+IuH~QWR`)v6A{r' --protocol-version 3.3 --cid f2a63e4085f363b6 --set true --dps 11 --set 3600
    

See TuyaAPI/cli#162 (comment) and #70 (comment)

@caco3 caco3 added the bug Something isn't working label Jun 28, 2023
@Gyosa3
Copy link

Gyosa3 commented Jul 6, 2023

Hi,
in my setup I have a switch on DP 105 and a countdown on DP 106.
When I use the Tuya app, countdown is set to '10' (minutes I believe) and switch is set to 'on'.
I tried to mimic the same in localTuya and it does not work for me, but it may be for the other reason that people can read entities but not change them so far in protocol 3.4.
Weirdly enough, this is a 2-way water timer, and the other water line, with DP 104 for switch 2 and DP 103 for countdown 2 is not reacting the same with the Tuya app, the switch goes to 'on' but the countdown remains at 0. But this could be anything, a bad reading from localtuya, a bad API view, a bad app code...

@caco3
Copy link
Author

caco3 commented Jul 9, 2023

I also only could get it working with protocol 3.3!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants