Enable Automation

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

Used to enable designated automation scenarios in the home.

API address

PUT: /v1.0/homes/{home_id}/automations/{automation_id}/actions/enable

Request parameter

Parameter nameTypeINRequiredDescription
home_idStringuritrueFamily ID
automation_idStringuritrueAutomation Scene ID

Return parameter

Parameter nameTypeDescription
resultBooleanActivation status of automation scene
  • true: successful activation
  • false: failed activation

Request example

PUT: /v1.0/homes/242****/automations/53IYSXI3gEn2w3Oc/actions/enable

Return example

true

Error code

For more information, see error code.