online
Last updated on June 17, 2024
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
The function must be added to the model descriptions of all devices that support it.
"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
}
}
]
}