i need some help cause i´m not able to find out how to control the newer version of shelly components Gen2.
First of all i'm not the Java-Script expert ... more the copy&paste with try'n error.
So, other (older) Gen1 components (Shelly Plug s) are able to control with a function node like this:
msg.payload = {
switch:0,
on:true
};
return msg;
the newer Version (Gen2) Shelly Plus Plug S needs other commands. i tried some i could find here:
There´s a chapter for Shelly Node (Generation 2 and Generation 3) and the first Position is for the Shelly Plug S but not Plus Plug S i`m not sure if there´s a difference. Here I find a sample like this commad:
{
method : 'Switch.Set'
parameters : {
id : 0,
on : true,
toggle_after : 2 // optional flip back time in seconds
}
}
If i copy it it shows me some red signs in the function node and i have no clue ... so i need help.
I have a few Plug S which are working fine but i´d like to work the same way with the new Plus Plug S without change to MQTT ... maybe some of you can help me find a solution.