devices.types.switch
Switch.
Examples of devices
A wall-mounted light switch, a toggle switch, an automatic switch in the electrical control panel, smart relay, or smart button.
Device control phrases
Each device type has a specific set of phrases. The user can control the device using these phrases without specifying the device name.
- Phrases:
-
Yasmina, turn on the toggle switch.
Yasmina, turn on the switch.
- Open the Yango Play app.
- Select the desired device in the list of devices.
- Go to the Device section at the bottom of the page.
- Tap Device.
Specifics of use
In the Yango Play app, the user can change the device type from
devices.types.switch
todevices.types.light
. This will enable voice commands for light. Example: the switch is used to control a chandelier.- If the switch consists of several buttons, we recommend describing each switch button as a separate
devices.types.switch
device.
Recommended capabilities
The table of capabilities is based on popular device functions in a given category. It provides general recommendations for describing devices. Yango Smart Home does not restrict the provider to the specified list. You can combine capabilities and devices as you wish based on your awareness of the device features.
Capability | Instances and values |
---|---|
devices.capabilities.on_off | Functions and values are not applicable. |
devices.capabilities.toggle | Function: Values: not supported. |
Capability | Instances and values |
---|---|
devices.capabilities.on_off | Functions and values are not applicable. |
devices.capabilities.toggle | Function: Values: not supported. |
Recommended properties for devices
The table of properties is based on popular device functions in a given category. It provides general recommendations for describing devices. Yango Smart Home does not restrict the provider to the specified list. You can combine properties and devices as you wish based on your awareness of the device features.
Property type | Instances |
---|---|
devices.properties.float | Function: |
Function: | |
Function: |
Property type | Instances |
---|---|
devices.properties.float | Function: |
Function: | |
Function: |
Examples of capability and property descriptions
These structures are sent in response to the device list request.
{
"capabilities": [{
"type": "devices.capabilities.on_off",
"retrievable": false
}],
"properties": []
}
{
"capabilities": [{
"type": "devices.capabilities.on_off",
"retrievable": true
}],
"properties": []
}
{
"capabilities": [
{
"type": "devices.capabilities.color_setting",
"retrievable": true,
"parameters": {
"color_model": "hsv"
}
},
{
"type": "devices.capabilities.toggle",
"retrievable": true,
"parameters": {
"instance": "backlight"
}
}, {
"type": "devices.capabilities.on_off",
"retrievable": true
}
],
"properties": []
}
{
"capabilities": [{
"type": "devices.capabilities.on_off",
"retrievable": true
}],
"properties": [{
"type": "devices.properties.float",
"retrievable": true,
"parameters": {
"instance": "amperage",
"unit": "unit.ampere"
}
}, {
"type": "devices.properties.float",
"retrievable": true,
"parameters": {
"instance": "voltage",
"unit": "unit.volt"
}
}, {
"type": "devices.properties.float",
"retrievable": true,
"parameters": {
"instance": "power",
"unit": "unit.watt"
}
}]
}