I am having trouble parsing the output from a Shelly 1PM.
The script is currently:
Code
Shelly.call(
"HTTP.GET",
{"url": "http://192.168.20.23/status"},
function (response) {
let status = JSON.stringify(response.inputs.0.input);
print(status);
},
null
);
The output comes back with an error. I am trying get the status of the input either a 0 or 1.
Thanks