Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

Description

Turn a specified Smappee Switch or Comfort plug ON. This can be done for a specific period or infinite.

Resource URL

https://app1pub.smappee.net/dev/v3/servicelocation/[SERVICELOCATIONID]/actuator/[ACTUATORID]/on

HTTP method

POST

HTTP header

Authorization: Bearer [ACCESS_TOKEN]

(info) [ACCESS_TOKEN] being the access token received from the Get token or Refresh token authentication calls.

HTTP body

{"duration": [DURATION]}

Parameters

Parameter

Type

Description

SERVICELOCATIONID

Path Parameter

The actual id of an accessible service location (see Get Servicelocations)

ACTUATORID

Path Parameter

The id of the actuator object that will be turned on (see Get Servicelocation Info)

duration

JSON attribute

The duration in seconds the actuator should be turned on.

Possible values are:

  • 300

  • 900

  • 1800

  • 3600

Any other value results in turning on for an infinite period of time.

Example

https://app1pub.smappee.net/dev/v3/servicelocation/123/actuator/2/on

HTTP body:

{"duration": 900}

Result

Empty body



Content


  • No labels