English
English
简体中文
Contact Us
Register
Log In

Tuya IoT Development Platform

layoutIndex

Standard Instruction Set

Last Updated on : 2022-01-17 07:31:54download

This topic describes the standard instruction set of smart cameras (sp).

Code Name Data type Value constraint
ipc_work_mode Working mode Enum {“range”:[“0”,“1”]}
basic_device_volume Volume control Integer {“min”:1,“max”:10,“scale”:0,“step”:1}
floodlight_lightness Floodlight brightness Integer {“min”:1,“max”:100,“scale”:0,“step”:1}
wireless_batterylock Battery lock Boolean {}
siren_switch Siren Boolean {}
zoom_stop Stop zooming Boolean {}
cry_detection_switch Cry detection Boolean {}
decibel_switch Sound detection alarm switch Boolean {}
record_switch SD card video recording switch Boolean {}
motion_record SD card video recording mode Boolean {}
sd_umount Unmount the SD card Boolean {}
sd_format SD card formatting Boolean {}
device_restart Remote restart Boolean {}
basic_indicator Status indicator light Boolean {}
basic_private Privacy mode Boolean {}
basic_flip Flip Boolean {}
basic_osd Time watermark Boolean {}
basic_wdr Wide dynamic range (WDR) mode Boolean {}
basic_shimmer Shimmer full color Boolean {}
ptz_calibration PTZ calibration Boolean {}
ptz_stop Stop PTZ Boolean {}
cruise_switch Cruise switch Boolean {}
motion_tracking Motion tracking Boolean {}
motion_switch Motion alarm switch Boolean {}
motion_timer_switch Motion detection mode selection Boolean {}
flight_warn_switch Warning switch Boolean {}
flight_pir_a PIR sensor 1 Boolean {}
flight_pir_b PIR sensor 2 Boolean {}
flight_pir_c PIR sensor 3 Boolean {}
floodlight_switch Floodlight Boolean {}
zoom_control Zoom control Enum {“range”:[“0”,“1”]}
decibel_sensitivity Sound detection sensitivity Enum {“range”:[“0”,“1”]}
record_mode Video recording mode Enum {“range”:[“1”,“2”]}
basic_nightvision IR night vision Enum {“range”:[“0”,“1”,“2”]}
basic_anti_flicker Anti-flicker Enum {“range”:[“0”,“1”,“2”]}
ptz_control PTZ control Enum {“range”:[“0”,“1”,“2”,“3”,“4”,“5”,“6”,“7”]}
motion_interval Alarm interval Enum {“range”:[“1”,“3”,“5”]}
motion_sensitivity Motion detection sensitivity Enum {“range”:[“0”,“1”,“2”]}
flight_bright_mode Brightness mode Enum {“range”:[“0”,“1”]}
pir_sensitivity PIR sensitivity Enum {“range”:[“0”,“1”,“2”]}

ipc_work_mode

IPC working mode:

  • 0: low power mode
  • 1: continuous working mode

Code example:

{
    "commands":[
        {
            "code":"ipc_work_mode",
            "value":"0"
        }
    ]
}

zoom_control

Zoom control:

  • 0: decrease the focal length
  • 1: increase the focal length

decibel_sensitivity

The sensitivity of the sound detection alarm switch:

  • 0: low sensitivity
  • 1: high sensitivity

record_mode

Video recording mode:

  • 1: record videos for events (motion is detected and then recorded to SD card)
  • 2: continuous recording

basic_nightvision

IR night vision setting:

  • 0: auto
  • 1: off
  • 2: on

basic_anti_flicker

Anti-flicker setting

  • 0: disable
  • 1: 50 Hz
  • 2: 60 Hz

ptz_control

PTZ setting:

  • 0: up
  • 1: upper right
  • 2: right
  • 3: lower right
  • 4: down
  • 5: lower left
  • 6: left
  • 7: upper left

motion_interval

The alarm interval in minutes. Enumeration value. The corresponding minute option is displayed according to the enumeration value.

  • 1: 1 minute
  • 3: 3 minutes
  • 5: 5 minutes

motion_sensitivity

Motion detection sensitivity:

  • 0: low sensitivity
  • 1: medium sensitivity
  • 2: high sensitivity

flight_bright_mode

Brightness mode:

  • 0: manual mode
  • 1: automatic mode

pir_sensitivity

PIR sensitivity:

  • 0: low sensitivity
  • 1: medium sensitivity
  • 2: high sensitivity