10.07.2015, 13:39
Good job, though you can do it without any event-based scripts
Some suggestions:
1. You don't need to use storage inside of resident script as variables are kept between each call. You can simply use a Lua table to store timer values for each group address.
2. You should use storage instead of grp.update for counters as you don't need to display this info in visualization or pass it to gateways.
Some suggestions:
1. You don't need to use storage inside of resident script as variables are kept between each call. You can simply use a Lua table to store timer values for each group address.
2. You should use storage instead of grp.update for counters as you don't need to display this info in visualization or pass it to gateways.