30.11.2020, 07:29
The device should support multiple connections so the easiest way is to have a single resident script (always connected) for periodical status retrieval and several event scripts that write values to the hub (one-time connection: connect-write-disconnect).