This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Alexa and windows control
#5
(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
Reply


Messages In This Thread
Alexa and windows control - by MichelDeLigne - 14.10.2020, 20:12
RE: Alexa and windows control - by Sral1987 - 15.10.2020, 08:50
RE: Alexa and windows control - by MichelDeLigne - 17.10.2020, 11:42

Forum Jump: