windkh / node-red-contrib-shelly

Shelly control nodes for node red.
MIT License
34 stars 21 forks source link

Shelly Plus RGBW PM - Documentation irritating #189

Closed mvondemhagen closed 1 week ago

mvondemhagen commented 2 weeks ago

Just in case somebody else tries to control a Shelly Plus RGBW PM via this in white mode:

The payload to control needs to look as follows:

msg.payload = {
    method: "Light.Set",
    parameters : {
        id : 0,
        on: true,
        brightness: 100,
    }
};
return msg;

Using the method "RGBW.Set" doesn't work here. id: {0..3} addresses the four channels.

windkh commented 2 weeks ago

So RGBW.Set only works in colour mode then?

mvondemhagen commented 2 weeks ago

I guess so, I don't have that device in RGB(W) mode, so can't test. Just have been spending a few hours to get white mode running, with a function as above it finally works.

However, it would make sense, since the device simulates four regular lights in that mode. Also, https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen2/ShellyPlusRGBWPM (first paragraph) suggests that.

mvondemhagen commented 2 weeks ago

SCR-20241109-uoon

Just to make sure, this is the mode I'm talking about. Technically, it'd be possible to attach four different white LED strips to the device and control them via RGBW.Set in RGBW-mode, but then they wouldn't be id:{0..3} but the respective RGBW values. Not recommended.