17.10.2020, 11:42
(16.10.2020, 08:06)MichelDeLigne Wrote: Thanks for the support, I will test both solutions.
FYI, checkwrite is not the best approach: If someone moves partially the window, it does not use the same group address to do so.
Because of this, LM does not detect a change of value and does not send anything when the order comes from Alexa, because he thinks the window is still in the original position.
The proper solution is to use an instruction that always sends the value to the group address, like:
Code:
grp.write('13/0/5', not event.getvalue())
This works fine in any cases.
Michel