Temperature & humidity sensor.
Device functions available
The device may have all the following functions or just some of them. For example, if a sensor cannot indicate the battery charge level, there is no need to include the
battery_percentage function in its model description.
online function is mandatory for the sensor. Also, at least one of the following functions must also be described:
temperature. For example, if you are describing a temperature sensor, you must list the
temperature functions for it, while there no need to specify the
If you are describing a temperature and humidity sensor, be sure to list all three functions:
|battery_low_power||Whether the batter is charged or not|
|battery_percentage||Battery charge level|
|humidity||✔︎||Humidity. This function is mandatory for humidity sensors and temperature and humidity sensors. For temperature sensors that do not measure humidity, there is no need to indicate it|
|online||✔︎||Device availability: offline or online|
|sensor_sensitive||The level of sensor sensitivity|
|signal_strength||The strength of the signal|
|temp_unit_view||Temperature scale, in which the sensor displays real-time temperature information on its screen in °C or °F. Use the function only for sensors with a screen that can display the temperature in different temperature scales|
|temperature||✔︎||Temperature. This function is mandatory for temperature sensors and temperature and humidity sensors. For humidity sensors that do not measure temperature, there is no need to indicate it|
Sample description of a temperature and humidity sensor model
The model is described in accordance with the model structure. The sample describes a temperature and humidity sensor that can report temperature, humidity and atmospheric pressure. The sensor also indicates the signal strength, the battery charge level and whether the battery is discharged; it also has a sensitivity setting. The sensor is equipped with a screen and can show temperature in °C and °F.
"description": "Xiaqara smart temperature and humidity sensor",
Temperature and humidity sensor sample description
The model is described in accordance with the device structure. In the sample there is no description of the sensor model, therefore we believe that the models are described in a separate file and it is sufficient to specify only the model ID (in this case, QWERTY124).
parent_id specified for the sensor is the identifier of the hub through which the sensor is connected to the smart home.
"name": "My temperature and humidity sensor",
"default_name": "Smart temperature and humidity sensor",
"home": "My home",
"room": "Living room",