English
English
简体中文
Contact Us
Register
Log In

Tuya IoT Development Platform

layoutIndex

Standard Status Set

Last Updated on : 2022-01-13 06:11:12download

This topic describes the standard status set of CO detectors (cobj).

Support reporting instructions to the cloud and sending instructions to the device

Code Name Data type Value constraint
muffling Mute Boolean {}
self_checking Device self-check Boolean {}
alarm_time Alarm duration Integer {“unit”:“”,“min”:1,“max”:60,“scale”:0,“step”:1}
alarm_ringtone Alarm ringtone Enum {“range”:[“1”,“2”,“3”,“4”,“5”]}
alarm_volume Alarm volume Enum {“range”:[“low”,“middle”,“high”,“mute”]}
alarm_switch Alarm switch Boolean {}
alarm_bright Brightness adjustment Integer {“unit”:“”,“min”:0,“max”:100,“scale”:0,“step”:1}

Support reporting instructions to the cloud only

Note: Only some legacy versions support the instructions marked with an asterisk (*).

Code Name Data type Value constraint
co_value CO detection result Integer {“unit”:“”,“min”:0,“max”:1000,“scale”:1,“step”:1}
co_status CO detection status (character) Enum {“range”:[“alarm”,“normal”]}
battery_percentage Battery capacity percentage Integer {“unit”:“%”,“min”:0,“max”:100,“scale”:0,“step”:1}
battery_state Battery capacity status Enum {“range”:[“low”,“middle”,“high”]}
battery_value Battery capacity value Integer {“unit”:“”,“min”:0,“max”:30000,“scale”:0,“step”:1}
preheat Preheating or not Boolean {}
temper_alarm Tamper alarm Boolean {}
lifecycle Service life Boolean {}
checking_result Device self-check result Enum {“range”:[“checking”,“check_success”,“check_failure”,“others”]}
*co_state CO detection status Enum {“range”:[“1”,“2”]}

co_state

CO detection status description:

  • 1: Alarm
  • 2: Alarm is cleared