Der Aufruf vom Shelly.Call ist asynchron, das Script arbeitet weiter bevor die Änderungen übrhaupt im Hauptteil vom Script ankommen.
Wie sich das umgehen lässt hab ich z.B. hier beschrieben:
Beitrag
RE: test and usage of KVS
Shelly.Call is asynchron, so the print at the end is executed before the kvsGet() has finished.
you can validate this by adding a delay (Timer).
(Quelltext, 32 Zeilen)
you can validate this by adding a delay (Timer).
(Quelltext, 32 Zeilen)
Seven of Nine