codetheweb / tuyapi

🌧 An easy-to-use API for devices that use Tuya's cloud services. Documentation: https://codetheweb.github.io/tuyapi.
MIT License
2.1k stars 343 forks source link

support set and forget dps #421

Closed NyaomiDEV closed 3 years ago

NyaomiDEV commented 3 years ago

this helps with some dps such as 27 (music data) which can be exploited as a direct mode for light sources

basic testing is done, but it really needs more testing

codetheweb commented 3 years ago

Related to #420.

Does it make sense to have it as a global option for every device instance like it currently is? Or should it be set on a per-SET request basis?

NyaomiDEV commented 3 years ago

Related to #420.

Does it make sense to have it as a global option for every device instance like it currently is? Or should it be set on a per-SET request basis?

it is fine to have it per-SET, but I guess that is what I have done there

codetheweb commented 3 years ago

Sorry for the late response. I've been busy lately but I hope to take a look at this next week.

codetheweb commented 3 years ago

Again, sorry for the wait. This is now published in v6.3.0.

I tweaked the name slightly, check the docs for details.