Hello,
I would like to replace the injection nodes with a slider. To do this, I created a global variable “Slider”. How can I replace this with the fixed number 50 in JSON?
You aren't setting a global context variable solely to get the output of your slider into json format for passing to the Shelly are you?
If so, here is an alternative approach:
Thanks for the quick responses! All 3 solutions work. In this use case I really just want to control the Shelly, but I also wanted to know how to assign global variables variably. Thank you very much!