Explore Plans
Mobile menu Close menu

Turn on/off a switch

Developer info

API endpoint slug
webehome.switch
Filter code method
Webehome.switch.skip(string?: reason)
Runtime method
runAction("webehome.switch", {})

Action fields

Subunitid Dropdown list

Label
Accessory(Switch)
Helper text
Select which switch to be controlled
Slug
subunitid
Required
true
Can have default value
false

Operationstatus Dropdown list

Label
Status(On/Off)
Slug
operationstatus
Required
true
Can have default value
true
Filter code method
Webehome.switch.setOperationstatus(string: operationstatus)