Scripting Question with Shelly.call()

  • If I run the following script, everything works fine. (basically pulled from https://github.com/shelly-tools/s…_consumption.js)

    But if I enable the switching of the device(Shelly.call), it will not respond anymore.


    I found a couple of advices, but I guess I don't interpret them correctly.

    link

    i am running the code on a "pro 3" with Version: 0.10.2-beta2

    can someone point me to where I should have a look?

    2 Mal editiert, zuletzt von subbamaggus (19. Oktober 2023 um 08:10) aus folgendem Grund: it was late ;-)


  • this seems to work.

    so nesting is not a good idea.

    i will try to work on that.


    the json looks like:

    3 Mal editiert, zuletzt von subbamaggus (20. Oktober 2023 um 08:24)

  • so.

    i got my script running.

    for all of you who are interested... the script is supposed to read from a hichi (volkszaehler) wifi device. get the current powerflow and then decides to enable a heating element (3 Phases)

    Since i dont have a hichi yet. i tested with a regular json.

    the solution is meant to be stand alone without any other home technology like openhab/iobroker/...

    not finished yet. but the basic functionality is working.