Closed caco3 closed 1 year ago
ok, I think I got it working now. It seems that the time needs to be set beforehand. If i dont do this, the timer (dps 119 is set to 0 and this might prevent it from switching on and giving a response.
So I do now this:
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 # Or what ever time you want to keep it on
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 1
I have a Water Irrigation Timer (SOP18) from here: https://www.amazon.de/dp/B09P3VRVVB/ref=pe_27091401_487027711_TE_SCE_dp_2
I would like to switch it on/off somehow using an API.
The Gateway and the Timer are linked and the wizard finds them:
With protocol 3.3 I am able to read the status:
I am always able to switch it off:
How ever I am only sporadically able to switch it on:
Most of the time how ever I get a timeout when trying to switch it on: