23.11.2020, 15:58
Hi, I have a Sonos system and a Homelynk, and I want to control a large script, so that I can pause it.
I wrote the following script:
1-General structure:
if value_n then
-play sonos
-do some knx
-Every X orders, I call to stop the function and check if I pressed the button.
end
I have 15 if like this in 8k lines.
2- Function stop (), where I compare in a group address and I pause Sonos if a button is pushed. I do os.sleep (1) until the button is released.
When I run the script without interruptions it works, but when I try it with the stop function the homelynk starts to work slow.
I am doing something wrong? (Sure I am xD)
Thank you for your help.
I wrote the following script:
1-General structure:
if value_n then
-play sonos
-do some knx
-Every X orders, I call to stop the function and check if I pressed the button.
end
I have 15 if like this in 8k lines.
2- Function stop (), where I compare in a group address and I pause Sonos if a button is pushed. I do os.sleep (1) until the button is released.
When I run the script without interruptions it works, but when I try it with the stop function the homelynk starts to work slow.
I am doing something wrong? (Sure I am xD)
Thank you for your help.