List of functions
The float
property has functions. Functions have parameters that let you describe the properties for the device.
Function |
Description |
Displays the current amperage. |
|
Displays the battery level. |
|
Displays the carbon dioxide level readings. |
|
Displays the current electricity meter readings. |
|
Displays the food level readings. |
|
Displays the current gas meter readings. |
|
Displays the current heat meter readings. |
|
Displays the humidity readings. |
|
Displays the illumination level. |
|
Displays the current universal meter readings. |
|
Displays the level of air pollution with PM1 particles. |
|
Displays the level of air pollution with PM2.5 particles. |
|
Displays the level of air pollution with PM10 particles. |
|
Displays the current power consumption. |
|
Pressure display. |
|
Displays the temperature readings. |
|
Displays the level of organic compounds in the air. |
|
Displays the current voltage. |
|
Displays the water level readings. |
|
Displays the current water meter readings. |
amperage
Displays the current amperage.
Below is the description of the parameters
object from the Property description section.
Alert
The current amperage value must be greater than or equal to 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "amperage",
"unit": "unit.ampere"
}
...
}
Examples of devices with the amperage function
battery_level
Displays the battery level.
Below is the description of the parameters
object from the Property description section.
Alert
The value of the current battery level must be in the range [0; 100].
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "battery_level",
"unit": "unit.percent"
}
...
}
Examples of devices with the battery_level function
co2_level
Displays the carbon dioxide level reading.
Below is the description of the parameters
object from the Property description section.
Alert
The value of the current carbon dioxide reading must be greater than 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "co2_level",
"unit": "unit.ppm"
}
...
}
Examples of devices with the co2_level function
electricity_meter
Displays the current electricity meter reading.
Below is the description of the parameters
object from the Property description section.
Alert
The current electricity meter reading must be greater than or equal to 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "electricity_meter",
"unit": "unit.kilowatt_hour"
}
...
}
Examples of devices with the electricity_meter function
food_level
Displays the food level reading.
Below is the description of the parameters
object from the Property description section.
Alert
The value of the food level reading must be in the range [0; 100].
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "food_level",
"unit": "unit.percent"
}
...
}
Examples of devices with the food_level function
gas_meter
Displays the current gas meter reading.
Below is the description of the parameters
object from the Property description section.
Alert
The current gas meter reading must be greater than or equal to 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "gas_meter",
"unit": "unit.cubic_meter"
}
...
}
Examples of devices with the gas_meter function
heat_meter
Displays the current heat meter reading.
Below is the description of the parameters
object from the Property description section.
Alert
The current heat meter reading must be greater than or equal to 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "heat_meter",
"unit": "unit.gigacalorie"
}
...
}
Examples of devices with the heat_meter function
humidity
Displays the humidity reading.
Below is the description of the parameters
object from the Property description section.
Alert
The value of the current humidity reading must be in the range [0; 100].
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Accepted values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "humidity",
"unit": "unit.percent"
}
...
}
Examples of devices with the humidity function
illumination
Displays the illumination level.
Below is the description of the parameters
object from the Property description section.
Alert
The illumination value must be greater than 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "illumination",
"unit": "unit.illumination.lux"
}
...
}
Examples of devices with the illumination function
meter
Displays the current universal meter reading.
Below is the description of the parameters
object from the Property description section.
Alert
The current universal meter reading must be greater than or equal to 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "meter"
}
...
}
Examples of devices with the meter function
pm1_density
Displays the level of air pollution with PM1 particles.
Below is the description of the parameters
object from the Property description section.
Alert
The current reading of PM1 particle pollution must be greater than 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "pm1_density",
"unit": "unit.density.mcg_m3"
}
...
}
Examples of devices with the pm1_density function
pm2.5_density
Displays the level of air pollution with PM2.5 particles.
Below is the description of the parameters
object from the Property description section.
Alert
The current reading of PM2.5 particle pollution must be greater than 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "pm2.5_density",
"unit": "unit.density.mcg_m3"
}
...
}
Examples of devices with the pm2.5_density function
pm10_density
Displays the level of air pollution with PM10 particles.
Below is the description of the parameters
object from the Property description section.
Alert
The current reading of PM10 particle pollution must be greater than 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "pm10_density",
"unit": "unit.density.mcg_m3"
}
...
}
Examples of devices with the pm10_density function
power
Displays the current power consumption.
Below is the description of the parameters
object from the Property description section.
Alert
The current power consumption must be greater than 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "power",
"unit": "unit.watt"
}
...
}
Examples of devices with the power function
pressure
Pressure display.
Below is the description of the parameters
object from the Property description section.
Alert
The pressure value must be greater than 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "pressure",
"unit": "unit.pressure.mmhg"
}
...
}
Examples of devices with the pressure function
temperature
Displays the temperature reading.
Below is the description of the parameters
object from the Property description section.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Accepted values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "temperature",
"unit": "unit.temperature.celsius"
}
...
}
Examples of devices with the temperature function
tvoc
Displays the level of organic compounds in the air.
Below is the description of the parameters
object from the Property description section.
Alert
The current reading of organic compounds in the air must be greater than 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "tvoc",
"unit": "unit.density.mcg_m3"
}
...
}
Examples of devices with the tvoc function
voltage
Displays the current voltage.
Below is the description of the parameters
object from the Property description section.
Alert
The current voltage value must be greater than 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "voltage",
"unit": "unit.volt"
}
...
}
Examples of devices with the voltage function
water_level
Displays the water level reading.
Below is the description of the parameters
object from the Property description section.
Alert
The value of the water level reading must be in the range [0; 100].
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "water_level",
"unit": "unit.percent"
}
...
}
Examples of devices with the water_level function
water_meter
Displays the current water meter reading.
Below is the description of the parameters
object from the Property description section.
Alert
The current water meter reading must be greater than or equal to 0.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for the property. Acceptable values: |
unit |
String |
Function value units. Acceptable values: |
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "water_meter",
"unit": "unit.cubic_meter"
}
...
}
Examples of devices with the water_meter function
String enclosed in quotation marks, for example: "Hello, world"
.
An array of elements separated by a comma. As array items, you can use standard JSON elements: a string, number, true
, false
, object, or array. Arrays are enclosed in square brackets []
:
"cities": ["Moscow", "Tokyo", "New York"]