Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
  • Concepts
  • Guides
  • Device capabilities & events
    • Browse by device type
    • Device capabilities
      • Common methods
      • Detection and alarms
      • Image
      • PTZ
      • Light
      • Recording
      • Audio
      • Media
      • Network
      • Power
      • Privacy
      • Call
      • Storage
      • System
      • Algorithm
      • Maintenance
      • Control
        • Infrared remote
        • Outlet and switching
          • control.outlet.countdownFailed (Countdown failed event)
          • control.outlet.countdownFinished (Countdown finished event)
          • control.outlet.overload (Power overload)
          • control.outlet.switch2Switched (Switch channel 2 changed)
          • control.outlet.switch3Switched (Switch channel 3 changed)
          • control.outlet.switched (Switch state changed)
          • control.outlet.timerFailed (Timer task failed event)
          • control.outlet.timerFinished (Timer task finished event)
          • control.outlet.childLock (Get child lock property)
          • control.outlet.enabled (Get switch / relay state property)
          • control.outlet.externalSwitchType (Get external switch type property)
          • control.outlet.masterEnabled (Read master switch)
          • control.outlet.multiControl (Get multi-channel switch property)
          • control.outlet.operationMode (Get switch operation mode property)
          • control.outlet.overchargeProtection (Read overcharge protection)
          • control.outlet.powerSaving (Get auto power-saving property)
          • control.outlet.pulseDuration (Read pulse duration)
          • control.outlet.restartState (Get multi-channel restart state property)
          • control.outlet.switch2Enabled (Read switch channel 2)
          • control.outlet.switch3Enabled (Read switch channel 3)
          • control.outlet.switch4Enabled (Read switch channel 4)
          • control.outlet.switch5Enabled (Read switch channel 5)
          • control.outlet.switch6Enabled (Read switch channel 6)
          • control.outlet.switchCount (Get switch count property)
          • control.outlet.countdownGet (Get countdown)
          • control.outlet.countdownSet (Set countdown)
          • control.outlet.taskList (Task list)
          • control.outlet.timerGet (Get timer)
          • control.outlet.timerList (Timer delay list)
          • control.outlet.timerSet (Set timer)
          • control.outlet.childLock (Set child lock property)
          • control.outlet.enabled (Set switch / relay state property)
          • control.outlet.externalSwitchType (Set external switch type property)
          • control.outlet.masterEnabled (Set master switch property)
          • control.outlet.multiControl (Set multi-channel switch property)
          • control.outlet.operationMode (Set switch operation mode property)
          • control.outlet.overchargeProtection (Set overcharge protection property)
          • control.outlet.powerSaving (Set auto power-saving property)
          • control.outlet.pulseDuration (Set pulse duration property)
          • control.outlet.restartState (Set multi-channel restart state property)
          • control.outlet.switch2Enabled (Set switch channel 2)
          • control.outlet.switch3Enabled (Set switch channel 3)
          • control.outlet.switch4Enabled (Set switch channel 4)
          • control.outlet.switch5Enabled (Set switch channel 5)
          • control.outlet.switch6Enabled (Set switch channel 6)
          • control.outlet.switchCount (Set switch count property)
        • Travel motor
        • Lock actuator
    • Events overview
    • Permission codes
    • Capability error codes
    • Alarm and capability messages
    • Capability FAQ
    • Legacy ability and push types
  • API reference
  • SDK and tools
  • Solutions
  • Platform and support
On this page
Scope
Reader notes
Index in this folder

Outlet and switching

Outlet and switching

Scope

Use property to configure switch state; invoke rows (countdown, timer, task list) use device.service.invoke. Event rows at the end of the table require Receive device messages with capabilityEvent via setMessageCallback and permission Alarm (not Config). Subscribe to switched and related events for switch changes. Permission Config, device scope. See Control.

Reader notes

Start with Using capabilities. Call device.capability.list before you use IDs on this page. See Permission codes and Capability errors.

Index in this folder

OperationID
Get switch / relay state propertycontrol.outlet.enabled
Set switch / relay state propertycontrol.outlet.enabled
Get master switch propertycontrol.outlet.masterEnabled
Set master switch propertycontrol.outlet.masterEnabled
Get channel 2 switch propertycontrol.outlet.switch2Enabled
Set channel 2 switch propertycontrol.outlet.switch2Enabled
Get channel 3 switch propertycontrol.outlet.switch3Enabled
Set channel 3 switch propertycontrol.outlet.switch3Enabled
Get channel 4 switch propertycontrol.outlet.switch4Enabled
Set channel 4 switch propertycontrol.outlet.switch4Enabled
Get channel 5 switch propertycontrol.outlet.switch5Enabled
Set channel 5 switch propertycontrol.outlet.switch5Enabled
Get channel 6 switch propertycontrol.outlet.switch6Enabled
Set channel 6 switch propertycontrol.outlet.switch6Enabled
Get child lock propertycontrol.outlet.childLock
Set child lock propertycontrol.outlet.childLock
Get overcharge protection propertycontrol.outlet.overchargeProtection
Set overcharge protection propertycontrol.outlet.overchargeProtection
Get auto power-saving propertycontrol.outlet.powerSaving
Set auto power-saving propertycontrol.outlet.powerSaving
Get switch count propertycontrol.outlet.switchCount
Set switch count propertycontrol.outlet.switchCount
Get multi-channel restart state propertycontrol.outlet.restartState
Set multi-channel restart state propertycontrol.outlet.restartState
Get external switch type propertycontrol.outlet.externalSwitchType
Set external switch type propertycontrol.outlet.externalSwitchType
Get switch operation mode propertycontrol.outlet.operationMode
Set switch operation mode propertycontrol.outlet.operationMode
Get pulse duration propertycontrol.outlet.pulseDuration
Set pulse duration propertycontrol.outlet.pulseDuration
Get multi-channel switch propertycontrol.outlet.multiControl
Set multi-channel switch propertycontrol.outlet.multiControl
Set countdowncontrol.outlet.countdownSet
Get countdowncontrol.outlet.countdownGet
Set timercontrol.outlet.timerSet
Get timercontrol.outlet.timerGet
Timer delay listcontrol.outlet.timerList
Task listcontrol.outlet.taskList
Switch changed eventcontrol.outlet.switched
Channel 2 switch eventcontrol.outlet.switch2Switched
Channel 3 switch eventcontrol.outlet.switch3Switched
Power overload eventcontrol.outlet.overload
Countdown failed eventcontrol.outlet.countdownFailed
Countdown finished eventcontrol.outlet.countdownFinished
Timer task failed eventcontrol.outlet.timerFailed
Timer task finished eventcontrol.outlet.timerFinished