ym88659208ym87991671
Function online | Documentation for developers
Skip to main content

online

Last updated on November 25, 2022

Data type: BOOL.

Usage method: stores the device state without changing it.

Purpose: shows the device availability status:

  • true – the device has network access. The device can be managed, e.g. turned on or off.
  • false – the device is currently unavailable. E.g. it can be de-energized.

Devices with this function

This is a basic function present in all devices.

Examples of voice commands

— Салют, жалюзи сейчас онлайн? (Salute, are the blinds online now?)

— Салют, есть ли связь с лампой? (Salute, is there a connection with the lamp?)

Please note that if the user tries to give a command to a device that is offline, the virtual assistant will reply that there is no connection with the device.

Function description for a device model

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

Function state description example

In the example, the function state is "online", i.e. there is network access to the device.

{
"states": [
{
"key": "online",
"value": {
"type": "BOOL",
"bool_value": true
}
}
]
}