Luup Code for Multiswitch


I was wondering if anyone knows the correct luup code to set a Multiswitch button to Off?

Bonus: what does the code look like if I want to set 2 of them to off?

Have been searching like crazy…

Thanks in advance! :+1:t2:

You might try this (change the device #3 to match yours)


The actions are listed here:

I don’t have a multi-switch to try, so I can’t say for certain if this works or not…

This works for me:
luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”, “SetTarget”, {newTargetValue = “0”}, 20)
luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”, “SetTarget”, {newTargetValue = “0”}, 21)

I use the advanced editor in scenes to adjust multiswitches, so I don’t have the luup. However it is linked to:

Service: urn:dcineco-com:serviceId:MSwitch1


So you can probably figure the luup out from here. I believe this is for switch 5.

I must be retarded, WHAT am I doin wrong:


Device no, Button no 2, off?!?!!!


For those other newbies out there:


Button 2, OFF, Device 389

THANKS YOU ALL! :slight_smile: