Closed CStan77 closed 1 year ago
This actually exists already as .set_multiple_values()
. I see the documentation is missing for this function, I'l try to get it added.
That said, have you tried it yet? Some devices get really upset if you try and set multiple options at once. The thermostats I have do not like changing the temperature if anything else (fan, system mode, etc) is changed within 2-3 seconds; they'll display the new temperature, however they will not actually use it.
In the core and the doc, there was nothing so I had done it.
I tested .set_multiple_values()
it works perfectly
in my case the equipment takes well, all the values at once
Hi friend, I am French, excuse me for my English ;)
I have equipment of the 'qn' category Until now, I used the Cloud OpenAPI but it's a trial version that needs to be extended every 6 months... not great for home automation. 👎🏻
While searching I came across your module 'tinytuya' what happiness with local commands 🥇
On the other hand, in my case, my equipment is a heater so when I send an ignition command, I also want to adjust the set temperature, the ventilation speed.
Rather than making 3 successive commands, I added a '_set_valuedict()' function in the 'Device' class in order to pass all the commands at once.
in my Python script :
can you include it in your module? thank you very much for your work