Common Parameters of Device Control (Voice Version) API

Last Updated on : 2021-10-21 03:45:27download

This article introduces the common parameters of device control (voice version) API. For more information about the APIs, please refer to device control (voice version) API.

Power status

  • interface_name: Tuya.SmartHome.PowerstateController

  • attributes:

    • code: attribute code powerstate
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • TurnOn: Turn on the power
    • TurnOff: Turn off the power

Brightness

  • interface_name: Tuya.SmartHome.BrightnessController

  • attributes:

    • code: attribute code brightness
    • range_type: value type percentage, percentage
    • range_value: The maximum value is 100, the minimum value is 1, and the step size is 1
  • commands:

    • SetBrightness: Set the brightness
    • IncrementBrightness: Increase brightness
    • DecrementBrightness: Decrement brightness

Color temperature

  • interface_name: Tuya.SmartHome.ColorTemperatureController

  • attributes:

    • code: attribute code colorTemperature
    • range_type: value type percentage, percentage
    • range_value: The maximum value is 100, the minimum value is 1, and the step size is 1
  • commands:

    • SetColorTemperature: Set the color temperature
    • IncrementColorTemperature: increase the color temperature
    • DecrementColorTemperature: lower the color temperature

Colour

  • interface_name: Tuya.SmartHome.ColorController

  • attributes:

    • code: attribute code color
    • range_type: Value type color_hsv, HSV format.
    • range_value:
      • h:0 to 360
      • s: 0 to 100
      • v: 0 to 100
  • commands:

    • SetColor: Set the color

WindDrySwitch

  • interface_name: Tuya.SmartHome.WindDrySwitchController

  • attributes:

    • code: attribute code windDrySwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenWindDry: Turn on the windDrySwitch
    • CloseWindDry: Turn off the windDrySwitch

Wet

  • interface_name: Tuya.SmartHome.WetController

  • attributes:

    • code: attribute code wet
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenWet: Turn on the wet
    • CloseWet: Turn off the wet

UV

  • interface_name: Tuya.SmartHome.UvController

  • attributes:

    • code: attribute code uv
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenUV: Turn on the uv
    • CloseUV: Turn off the uv

UpAndDownSwingSwitch

  • interface_name: Tuya.SmartHome.UpAndDownSwingSwitchController

  • attributes:

    • code: attribute code upAndDownSwingSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenUpAndDownSwing: Turn on the upAndDownSwingSwitch
    • CloseUpAndDownSwing: Turn off the upAndDownSwingSwitch

Swing3D

  • interface_name: Tuya.SmartHome.Swing3DController

  • attributes:

    • code: attribute code swing3D
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenSwing3D: Turn on the swing3D
    • CloseSwing3D: Turn off the swing3D

SwingSwitch

  • interface_name: Tuya.SmartHome.SwingSwitchController

  • attributes:

    • code: attribute code swingSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenSwing: Turn on the swingSwitch
    • CloseSwing: Turn off the swingSwitch

Subtitle

  • interface_name: Tuya.SmartHome.SubtitleController

  • attributes:

    • code: attribute code subtitle
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenSubtitle: Turn on the subtitle
    • CloseSubtitle: Turn off the subtitle

Spray

  • interface_name: Tuya.SmartHome.SprayController

  • attributes:

    • code: attribute code spray
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenSpray: Turn on the spray
    • CloseSpray: Turn off the spray

SoothingModeSwitch

  • interface_name: Tuya.SmartHome.SoothingModeSwitchController

  • attributes:

    • code: attribute code soothingModeSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenSoothingModeSwitch: Turn on the soothingModeSwitch
    • CloseSoothingModeSwitch: Turn off the soothingModeSwitch

Smart

  • interface_name: Tuya.SmartHome.SmartController

  • attributes:

    • code: attribute code smart
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenSmart: Turn on the smart
    • CloseSmart: Turn off the smart

Roller

  • interface_name: Tuya.SmartHome.RollerController

  • attributes:

    • code: attribute code roller
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenRoller: Turn on the roller
    • CloseRoller: Turn off the roller

Purification

  • interface_name: Tuya.SmartHome.PurificationController

  • attributes:

    • code: attribute code purification
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenPurification: Turn on the purification
    • ClosePurification: Turn off the purification

PreHeat

  • interface_name: Tuya.SmartHome.PreHeatController

  • attributes:

    • code: attribute code preHeat
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenPreHeat: Turn on the preHeat
    • ClosePreHeat: Turn off the preHeat

Plasma

  • interface_name: Tuya.SmartHome.PlasmaController

  • attributes:

    • code: attribute code plasma
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenPlasma: Turn on the plasma
    • ClosePlasma: Turn off the plasma

MemoryModeSwitch

  • interface_name: Tuya.SmartHome.MemoryModeSwitchController

  • attributes:

    • code: attribute code memoryModeSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenMemoryModeSwitch: Turn on the memoryModeSwitch
    • CloseMemoryModeSwitch: Turn off the memoryModeSwitch

LeftAndRightSwingSwitch

  • interface_name: Tuya.SmartHome.LeftAndRightSwingSwitchController

  • attributes:

    • code: attribute code leftAndRightSwingSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenLeftAndRightSwing: Turn on the leftAndRightSwingSwitch
    • CloseLeftAndRightSwing: Turn off the leftAndRightSwingSwitch

Holiday

  • interface_name: Tuya.SmartHome.HolidayController

  • attributes:

    • code: attribute code holiday
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenHoliday: Turn on the holiday
    • CloseHoliday: Turn off the holiday

IpcMotionAlertSwitch

  • interface_name: Tuya.SmartHome.IpcMotionAlertSwitchController

  • attributes:

    • code: attribute code ipcMotionAlertSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenIpcMotionAlert: Turn on the ipcMotionAlertSwitch
    • CloseIpcMotionAlert: Turn off the ipcMotionAlertSwitch

IndicatorLightSwitch

  • interface_name: Tuya.SmartHome.IndicatorLightSwitchController

  • attributes:

    • code: attribute code indicatorLightSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenIndicatorLight: Turn on the indicatorLightSwitch
    • CloseIndicatorLight: Turn off the indicatorLightSwitch

IceMake

  • interface_name: Tuya.SmartHome.IceMakeController

  • attributes:

    • code: attribute code iceMake
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenIceMake: Turn on the iceMake
    • CloseIceMake: Turn off the iceMake

HeatSwitch

  • interface_name: Tuya.SmartHome.HeatSwitchController

  • attributes:

    • code: attribute code heatSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenHeat: Turn on the heatSwitch
    • CloseHeat: Turn off the heatSwitch

Health

  • interface_name: Tuya.SmartHome.HealthController

  • attributes:

    • code: attribute code health
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenHealth: Turn on the health
    • CloseHealth: Turn off the health

Fridge

  • interface_name: Tuya.SmartHome.FridgeController

  • attributes:

    • code: attribute code fridge
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenFridge: Turn on the fridge
    • CloseFridge: Turn off the fridge

EcoSwitch

  • interface_name: Tuya.SmartHome.EcoSwitchController

  • attributes:

    • code: attribute code ecoSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenEco: Turn on the ecoSwitch
    • CloseEco: Turn off the ecoSwitch

DrySwitch

  • interface_name: Tuya.SmartHome.DrySwitchController

  • attributes:

    • code: attribute code drySwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenDry: Turn on the drySwitch
    • CloseDry: Turn off the drySwitch

Anion

  • interface_name: Tuya.SmartHome.AnionController

  • attributes:

    • code: attribute code anion
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenAnion: Turn on the anion
    • CloseAnion: Turn off the anion

LockState

  • interface_name: Tuya.SmartHome.LockStateController

  • attributes:

    • code: attribute code lockState
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • QueryLockState: Turn on the lockState

Menu

  • interface_name: Tuya.SmartHome.MenuController

  • attributes:

    • code: attribute code menu
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenMenu: Turn on the menu
    • CloseMenu: Turn off the menu

SleepSwitch

  • interface_name: Tuya.SmartHome.SleepSwitchController

  • attributes:

    • code: attribute code sleepSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenSleep: Turn on the sleepSwitch
    • CloseSleep: Turn off the sleepSwitch

ScreenDisplay

  • interface_name: Tuya.SmartHome.ScreenDisplayController

  • attributes:

    • code: attribute code screenDisplay
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenScreenDisplay: Turn on the screenDisplay
    • CloseScreenDisplay: Turn off the screenDisplay

Drinks

  • interface_name: Tuya.SmartHome.DrinksController

  • attributes:

    • code: attribute code drinks
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenDrinks: Turn on the drinks
    • CloseDrinks: Turn off the drinks

DisinfectionSwitch

  • interface_name: Tuya.SmartHome.DisinfectionSwitchController

  • attributes:

    • code: attribute code disinfectionSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenDisinfection: Turn on the disinfectionSwitch
    • CloseDisinfection: Turn off the disinfectionSwitch

Defog

  • interface_name: Tuya.SmartHome.DefogController

  • attributes:

    • code: attribute code defog
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenDefog: Turn on the defog
    • CloseDefog: Turn off the defog

Cool

  • interface_name: Tuya.SmartHome.CoolController

  • attributes:

    • code: attribute code cool
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenCool: Turn on the cool
    • CloseCool: Turn off the cool

ColdSwitch

  • interface_name: Tuya.SmartHome.ColdSwitchController

  • attributes:

    • code: attribute code coldSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenCold: Turn on the coldSwitch
    • CloseCold: Turn off the coldSwitch

CleanSwitch

  • interface_name: Tuya.SmartHome.CleanSwitchController

  • attributes:

    • code: attribute code cleanSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenClean: Turn on the cleanSwitch
    • CloseClean: Turn off the cleanSwitch

ChildLock

  • interface_name: Tuya.SmartHome.ChildLockController

  • attributes:

    • code: attribute code childLock
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenChildLock: Turn on the childLock
    • CloseChildLock: Turn off the childLock

ChargeGoSwitch

  • interface_name: Tuya.SmartHome.ChargeGoSwitchLockController

  • attributes:

    • code: attribute code chargeGoSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenChargeGo: Turn on the chargeGoSwitch
    • CloseChargeGo: Turn off the chargeGoSwitch

ChangeAirSwitch

  • interface_name: Tuya.SmartHome.ChangeAirSwitchController

  • attributes:

    • code: attribute code changeAirSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenChangeAir: Turn on the changeAirSwitch
    • CloseChangeAir: Turn off the changeAirSwitch

Bluetooth

  • interface_name: Tuya.SmartHome.BluetoothController

  • attributes:

    • code: attribute code bluetooth
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenBluetooth: Turn on the bluetooth
    • CloseBluetooth: Turn off the bluetooth

BlowSwitch

  • interface_name: Tuya.SmartHome.BlowSwitchController

  • attributes:

    • code: attribute code blowSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenBlow: Turn on the blowSwitch
    • CloseBlow: Turn off the blowSwitch

BeepSwitch

  • interface_name: Tuya.SmartHome.BeepSwitchController

  • attributes:

    • code: attribute code beepSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenBeep: Turn on the beepSwitch
    • CloseBeep: Turn off the beepSwitch

Bath

  • interface_name: Tuya.SmartHome.BathController

  • attributes:

    • code: attribute code bath
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenBath: Turn on the bath
    • CloseBath: Turn off the bath

BacklightSwitch

  • interface_name: Tuya.SmartHome.BacklightSwitchController

  • attributes:

    • code: attribute code backlightSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenBacklightSwitch: Turn on the backlightSwitch
    • CloseBacklightSwitch: Turn off the backlightSwitch

AuxiliaryHeat

  • interface_name: Tuya.SmartHome.AuxiliaryHeatController

  • attributes:

    • code: attribute code auxiliaryHeat
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenAuxiliaryHeat: Turn on the auxiliaryHeat
    • CloseAuxiliaryHeat: Turn off the auxiliaryHeat

AutoSwitch

  • interface_name: Tuya.SmartHome.AutoSwitchController

  • attributes:

    • code: attribute code autoSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenAuto: Turn on the autoSwitch
    • CloseAuto: Turn off the autoSwitch

Freeze

  • interface_name: Tuya.SmartHome.FreezeController

  • attributes:

    • code: attribute code freeze
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • OpenFreeze: Turn on the freeze
    • CloseFreeze: Turn off the freeze

WindSpeed

  • interface_name: Tuya.SmartHome.WindSpeedController

  • attributes:

    • code: attribute code windSpeed
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetWindSpeed: set windSpeed
    • IncrementWindSpeed: increase windSpeed
    • DecrementWindSpeed: decrement windSpeed

Weight

  • interface_name: Tuya.SmartHome.WeightController

  • attributes:

    • code: attribute code weight
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetWeight: set weight

SuckLevel

  • interface_name: Tuya.SmartHome.SuckLevelController

  • attributes:

    • code: attribute code suckLevel
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetSuckLevel: set suckLevel
    • IncrementSuckLevel: increase suckLevel
    • DecrementSuckLevel: decrement suckLevel

SprayVolume

  • interface_name: Tuya.SmartHome.SprayVolumeController

  • attributes:

    • code: attribute code sprayVolume
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetSprayVolume: set sprayVolume

Shoulder

  • interface_name: Tuya.SmartHome.ShoulderController

  • attributes:

    • code: attribute code shoulder
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetShoulder: set shoulder
    • IncrementShoulder: increase shoulder
    • DecrementShoulder: decrement shoulder

Range

  • interface_name: Tuya.SmartHome.RangeController

  • attributes:

    • code: attribute code range
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetRange: set range
    • IncrementRange: increase range
    • DecrementRange: decrement range

Quantity

  • interface_name: Tuya.SmartHome.QuantityController

  • attributes:

    • code: attribute code quantity
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetQuantity: set quantity
    • IncrementQuantity: increase quantity
    • DecrementQuantity: decrement quantity

Pressure

  • interface_name: Tuya.SmartHome.PressureController

  • attributes:

    • code: attribute code pressure
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetPressure: set pressure
    • IncrementPressure: increase pressure
    • DecrementPressure: decrement pressure

NoseSuckingLevel

  • interface_name: Tuya.SmartHome.NoseSuckingLevelController

  • attributes:

    • code: attribute code noseSuckingLevel
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetNoseSuckingLevel: set noseSuckingLevel
    • IncrementNoseSuckingLevel: increase noseSuckingLevel
    • DecrementNoseSuckingLevel: decrement noseSuckingLevel

Level

  • interface_name: Tuya.SmartHome.LevelController

  • attributes:

    • code: attribute code level
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetLevel: set level
    • IncrementLevel: increase level
    • IncrementLevel: decrement level

LactationLevel

  • interface_name: Tuya.SmartHome.LactationLevelController

  • attributes:

    • code: attribute code lactationLevel
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetLactationLevel: set lactationLevel
    • IncrementLactationLevel: increase lactationLevel
    • DecrementLactationLevel: decrement lactationLevel

Intensity

  • interface_name: Tuya.SmartHome.IntensityController

  • attributes:

    • code: attribute code intensity
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetIntensity: set intensity
    • IncrementIntensity: increase intensity
    • DecrementIntensity: decrement intensity

Height

  • interface_name: Tuya.SmartHome.HeightController

  • attributes:

    • code: attribute code height
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetHeight: set height
    • IncrementHeight: increase height
    • DecrementHeight: decrement height

HeadRunPercent

  • interface_name: Tuya.SmartHome.HeadRunPercentController

  • attributes:

    • code: attribute code headRunPercent
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetHeadRunPercent: set headRunPercent
    • IncrementHeadRunPercent: increase headRunPercent
    • DecrementHeadRunPercent: decrement headRunPercent

BreastSuckingLevel

  • interface_name: Tuya.SmartHome.BreastSuckingLevelController

  • attributes:

    • code: attribute code breastSuckingLevel
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetBreastSuckingLevel: set breastSuckingLevel
    • IncrementBreastSuckingLevel: increase breastSuckingLevel
    • DecrementBreastSuckingLevel: decrement breastSuckingLevel

Humidity

  • interface_name: Tuya.SmartHome.HumidityController

  • attributes:

    • code: attribute code humidity
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetHumidity: set humidity
    • IncrementHumidity: increase humidity
    • DecrementHumidity: decrement humidity

Fog

  • interface_name: Tuya.SmartHome.FogController

  • attributes:

    • code: attribute code fog
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetFog: set fog
    • IncrementFog: increase fog
    • DecrementFog: decrement fog

Angle

  • interface_name: Tuya.SmartHome.AngleController

  • attributes:

    • code: attribute code angle
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetAngle: set angle
    • IncrementAngle: increase angle
    • DecrementAngle: decrement angle

CookTime

  • interface_name: Tuya.SmartHome.CookTimeController

  • attributes:

    • code: attribute code cookTime
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetCookTime: set cookTime
    • IncrementCookTime: increase cookTime
    • DecrementCookTime: decrement cookTime

Lefttime

  • interface_name: Tuya.SmartHome.LefttimeController

  • attributes:

    • code: attribute code lefttime
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • QueryLefttime: query lefttime

UpAndDownSwingAngle

  • interface_name: Tuya.SmartHome.UpAndDownSwingAngleController

  • attributes:

    • code: attribute code upAndDownSwingAngle
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetUpAndDownSwingAngle: set upAndDownSwingAngle

RotationDegree

  • interface_name: Tuya.SmartHome.RotationDegreeController

  • attributes:

    • code: attribute code rotationDegree
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetRotationDegree: set rotationDegree
    • IncrementRotationDegree: increase rotationDegree
    • DecrementRotationDegree: decrement rotationDegree

Power

  • interface_name: Tuya.SmartHome.PowerController

  • attributes:

    • code: attribute code power
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetPower: set power
    • IncrementPower: increase power
    • DecrementPower: decrement power

Power

  • interface_name: Tuya.SmartHome.PowerController

  • attributes:

    • code: attribute code power
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetPower: set power
    • IncrementPower: increase power
    • DecrementPower: decrement power

EnvironmentHumidity

  • interface_name: Tuya.SmartHome.EnvironmentHumidityController

  • attributes:

    • code: attribute code environmentHumidity
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • QueryEnvironmentHumidity: query environmentHumidity

Countdown

  • interface_name: Tuya.SmartHome.CountdownController

  • attributes:

    • code: attribute code countdown
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • SetCountdown: set countdown

Co2

  • interface_name: Tuya.SmartHome.Co2Controller

  • attributes:

    • code: attribute code co2
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • QueryCo2: query co2

Battery

  • interface_name: Tuya.SmartHome.BatteryController

  • attributes:

    • code: attribute code battery
    • range_type: value type minMax
    • range_value: value returned by the interface
  • commands:

    • QueryBattery: query battery

WorkStatus

  • interface_name: Tuya.SmartHome.WorkStatusController

  • attributes:

    • code: attribute code workStatus
    • range_type: value type textEnum
    • range_value:
      • standby
      • cooking
      • done
      • grinding
      • keepWarm
      • waterFalling
      • timing
      • pause
      • start
  • commands:

    • SetWorkStatus: set workStatus

WindDirection

  • interface_name: Tuya.SmartHome.WindDirectionController

  • attributes:

    • code: attribute code windDirection
    • range_type: value type textEnum
    • range_value:
      • forward
      • reverse
  • commands:

    • SetWindDirection: set windDirection

SprayMode

  • interface_name: Tuya.SmartHome.SprayModeController

  • attributes:

    • code: attribute code sprayMode
    • range_type: value type textEnum
    • range_value:
      • auto
      • baby
      • sleep
      • work
      • health
      • manual
      • wet
      • one
      • two
      • three
  • commands:

    • SetSprayMode: set sprayMode

Mode

  • interface_name: Tuya.SmartHome.ModeController

  • attributes:

    • code: attribute code mode
    • range_type: value type textEnum
    • range_value:
      • auto
      • sleep
      • eco
      • manual
      • cold
      • hot
      • smart
      • fresh
      • illumination
      • dry
      • childLock
      • disinfection
      • hygiene
      • windDry
      • ventilate
      • dehumidification
      • quick
      • program
      • comfortable
      • power
      • reading
      • movie
      • off
      • morning
      • night
      • nature
      • music
      • work
      • normal
      • mop
      • baby
      • random
      • health
  • commands:

    • SetMode: set mode

LightMode

  • interface_name: Tuya.SmartHome.LightModeController

  • attributes:

    • code: attribute code lightMode
    • range_type: value type textEnum
    • range_value:
      • white
      • colour
      • scene
  • commands:

    • SetLightMode: set lightMode

FeedState

  • interface_name: Tuya.SmartHome.FeedStateController

  • attributes:

    • code: attribute code feedState
    • range_type: value type textEnum
    • range_value:
      • standby
      • feeding
      • done
  • commands:

    • QueryFeedState: set feedState

Channel

  • interface_name: Tuya.SmartHome.ChannelController

  • attributes:

    • code: attribute code channel
    • range_type: value type channel
    • range_value: channel
  • commands:

    • SelectChannel: set channel
    • IncrementChannel: increase channel
    • DecrementChannel: decrement channel

SignalSource

  • interface_name: Tuya.SmartHome.SignalSourceController

  • attributes:

    • code: attribute code signalSource
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • SwitchSignalSource: switch signalSource

CancelMute

  • interface_name: Tuya.SmartHome.MuteSwitchController

  • attributes:

    • code: attribute code muteSwitch
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • CancelMute: cancel mute

WatersensorState

  • interface_name: Tuya.SmartHome.WatersensorStateController

  • attributes:

    • code: attribute code watersensorState
    • range_type: value type textEnum
    • range_value:
      • alarm
      • normal
  • commands:

    • QueryWatersensorState: query watersensorState

SmokeArmState

  • interface_name: Tuya.SmartHome.SmokeArmStateController

  • attributes:

    • code: attribute code smokeArmState
    • range_type: value type textEnum
    • range_value:
      • alarm
      • normal
      • detecting
      • unknown
  • commands:

    • QuerySmokeArmState: query smokeArmState

CoState

  • interface_name: Tuya.SmartHome.CoStateController

  • attributes:

    • code: attribute code coState
    • range_type: value type textEnum
    • range_value:
      • alarm
      • normal
  • commands:

    • QueryCoState: query coState

DoorContactStatus

  • interface_name: Tuya.SmartHome.DoorContactStatusController

  • attributes:

    • code: attribute code doorContactStatus
    • range_type: value type onOff
    • range_value: the value range is on or off
  • commands:

    • QueryDoorContactStatus: query doorContactStatus

DispenseNum

  • interface_name: Tuya.SmartHome.DispenseNumController

  • attributes:

    • code: attribute code dispenseNum
    • range_type: value type minMax
    • range_value: The maximum value is 100, the minimum value is 1, and the step size is 1
  • commands:

    • SetDispenseNum: set dispenseNum

Direction

  • interface_name: Tuya.SmartHome.DirectionController

  • attributes:

    • code: attribute code direction
    • range_type: value type textEnum
    • range_value:
      • forward(向前)
  • commands:

    • SetDirection: set direction

Co2State

  • interface_name: Tuya.SmartHome.Co2StateController

  • attributes:

    • code: attribute code co2State
    • range_type: value type textEnum
    • range_value:
      • alarm
      • normal
  • commands:

    • QueryCo2State: query co2State

Temperature

  • interface_name: Tuya.SmartHome.TemperatureController

  • attributes:

    • code: attribute code temperature
    • range_type: value type temperature
    • range_value: temperature
  • commands:

    • SetTemperature: set temperature
    • IncrementTemperature: increase temperature
    • DecrementTemperature: decrement temperature

Cf

  • interface_name: Tuya.SmartHome.CfController

  • attributes:

    • code: attribute code cf
    • range_type: value type textEnum
    • range_value:
      • c
      • f
  • commands:

    • SetCF: set cf
    • QueryCF: query cf