Hey,
I’m using latest OH3 Snapshot.
I’m using new UI, and set rules in there.
After update to new snapshot I’m getting this errors from my rule :
2020-12-05 01:43:40.358 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID '256a1d2237' failed: Thread::sleep(60000)
val mqttActions = getActions("mqtt", "mqtt:broker:5aa2c65a64")
mqttActions.publishMQTT("/lampa-pod-tv/switch/cmd", "get")
mqttActions.publishMQTT("/lampa-sofa/switch/cmd", "get")
mqttActions.publishMQTT("/wlacznik2/switch2/cmd", "get")
mqttActions.publishMQTT("/wlacznik2/switch1/cmd", "get")
mqttActions.publishMQTT("/wlacznik1/switch/cmd", "get")
mqttActions.publishMQTT("cmnd/wlacznik-przedpokoj/POWER1", "get")
mqttActions.publishMQTT("cmnd/lampkidom/POWER", "get")
1. The method publishMQTT(String, String) is undefined for the type ThingActions; line 3, column 96, length 11
2. The method publishMQTT(String, String) is undefined for the type ThingActions; line 4, column 155, length 11
3. The method publishMQTT(String, String) is undefined for the type ThingActions; line 5, column 212, length 11
4. The method publishMQTT(String, String) is undefined for the type ThingActions; line 6, column 269, length 11
5. The method publishMQTT(String, String) is undefined for the type ThingActions; line 7, column 326, length 11
6. The method publishMQTT(String, String) is undefined for the type ThingActions; line 8, column 382, length 11
7. The method publishMQTT(String, String) is undefined for the type ThingActions; line 9, column 448, length 11
rule is triggered with start of system.
and this is DSL rule script:
Thread::sleep(60000)
val mqttActions = getActions("mqtt", "mqtt:broker:5aa2c65a64")
mqttActions.publishMQTT("/lampa-pod-tv/switch/cmd", "get")
mqttActions.publishMQTT("/lampa-sofa/switch/cmd", "get")
mqttActions.publishMQTT("/wlacznik2/switch2/cmd", "get")
mqttActions.publishMQTT("/wlacznik2/switch1/cmd", "get")
mqttActions.publishMQTT("/wlacznik1/switch/cmd", "get")
mqttActions.publishMQTT("cmnd/wlacznik-przedpokoj/POWER1", "get")
mqttActions.publishMQTT("cmnd/lampkidom/POWER", "get")
What is wrong?