ym88659208ym87991671
on_off | Documentation SmartMarket
Skip to main content

on_off

Data type: BOOL.

Method of use: a device status is stored and can be changed.

Purpose: controls the device status:

  • true - the device is on. For example, the light bulb is on.
  • false - the device is turned off. For example, the light bulb is turned off through Salute mobile app.

Devices having this feature

  • led_strip means LED strips.
  • light means lamps, nightlights, etc.
  • socket means sockets, outlets, extension cords, etc.
  • relay means a relay.
  • hvac_ac means air conditioners.

Sample voice commands

Note that currently only commands in Russian are supported. The translation of the commands into English is given in parentheses.

Sample commands:

— Салют, включи лампу (Salute, turn on the lamp)

— Салют, выключи розетку (Salute, turn off the socket)

Function description in the device model

"features": [
"on_off",
// ...
]

Sample description of a function state

The example describes a switched-off device.

{
"states": [
{
"key": "on_off",
"value": {
"type": "BOOL",
"bool_value": false
}
}
]
}