Hi!
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!
Hi!
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!
You might try this (change the device #3 to match yours)
luup.call_action("urn:dcineco-com:serviceId:MSwitch1","SetStatus1",{newStatus1=0},3)
The actions are listed here: https://drive.google.com/file/d/0BykZKwGsCBsAaTJiWnNKLWdvR2c/edit
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
SetStatus5
newStatus5=0
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:
luup.call_action(“urn:dcineco-com:serviceId:MSwitch2”,“SetStatus2”,{newStatus1=0},389)
Device no, Button no 2, off?!?!!!
HELP!
For those other newbies out there:
luup.call_action(“urn:dcineco-com:serviceId:MSwitch1”,“SetStatus2”,{newStatus2=0},389)
Button 2, OFF, Device 389
THANKS YOU ALL!
Best Home Automation shopping experience. Shop at Ezlo!
© 2024 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules