Trigger to execute the specified scene

Last Updated on : 2023-12-07 03:33:51download

Used to trigger the execution of the specified scene.

API address

POST: /v1.0/homes/{home_id}/scenes/{scene_id}/trigger

Request parameter

Parameter nameTypeINRequiredDescription
home_idStringuritrueFamily ID
scene_idStringuritrueScene ID

Return parameter

Parameter nameTypeDescription
resultBooleanExecution scenario status
  • true: successful execution
  • false: execution failed

Request example

POST: /v1.0/homes/242****/scenes/53IYS****/trigger

Return example

{
    "result": true,
    "t": 1541072348540,
    "success": true
}

Error code

For more information, see error code.