The switch component is a type of control component, which is used to send commands to devices by binding the data source.
Basic settings
width: component width in the editor
height: component height in the editor
top: distance between the component and the top of editor
left: distance between the component and the left side of editor
Switch ON value: represent the ON state of the switch
Switch OFF value: represent the OFF state of the switch
Text description in ON state: text description in the ON state of switch
Text description in OFF state: text description in the OFF state of switch
Command content: content of the command sent to devices in the switching state
return [{
value: 0
}]