def query_shelly_status(event):
    index = 0
    for shelly in itemRegistry.getItem("gShellyGeneralCommands").members:
        ScriptExecution.createTimerWithArgument(
            DateTime.now().plusSeconds(5 * index), StringType("announce"),
            shelly.send)
        index += 1
Esempio n. 2
0
def query_shelly_status(event):
    index = 0
    for shelly in itemRegistry.getItem("gShellyGeneralCommands").members:
        ScriptExecution.createTimerWithArgument(DateTime.now().plusSeconds(5 * index), shelly.name, timer_function)
        index += 1