Hi,
I am using a very simple homeyscript to be able to wait a variable amount of time:
await wait( args[0]*1000 ); // Seconds to ms,
return true;
It works well, when arguments are not too high (a few tens, maybe less than 100), when called with the card:
Run “script” with “argument”
However, with higher argument value, it never exits.
It is an important flow as it has to power on or off a heater that is not regulated. The regulation is done by the flow, depending on a temperature sensor.
I am testing both the success and error exits of the card, but none of them are hit when the argument is 500 for example.
Am I doing something wrong ?
Alexis