Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: smart-me Actions API
version: v1
security:
- OAuth2: []
- Basic: []
tags:
- name: Actions
paths:
/actions/{id}:
get:
tags:
- Actions
summary: Gets all available Actions of a Device
parameters:
- name: id
in: path
description: The ID of the device
required: true
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
text/plain:
schema:
type: array
items:
$ref: '#/components/schemas/ActionInformation'
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ActionInformation'
text/json:
schema:
type: array
items:
$ref: '#/components/schemas/ActionInformation'
operationId: getActionsById
x-operation-id-source: derived
/actions:
post:
tags:
- Actions
summary: Set an action for the specified device
description: Set an action for the specified device.
requestBody:
description: The Action Data
content:
application/json-patch+json:
schema:
$ref: '#/components/schemas/ActionToPost'
application/json:
schema:
$ref: '#/components/schemas/ActionToPost'
text/json:
schema:
$ref: '#/components/schemas/ActionToPost'
application/*+json:
schema:
$ref: '#/components/schemas/ActionToPost'
required: true
responses:
'200':
description: OK
operationId: postActions
x-operation-id-source: derived
components:
schemas:
ActionType:
enum:
- 0
- 1
type: integer
description: 'Enumeration of the different action types of a device<p>Members: </p><ul><li><i>0</i> - OnOffAction</li><li><i>1</i> - AnalogAction</li></ul>'
format: int32
ActionInformation:
type: object
properties:
name:
type:
- string
- 'null'
description: The Name of this action
obisCode:
type:
- string
- 'null'
description: The Obis Code of this action. This is used as ID.
actionType:
$ref: '#/components/schemas/ActionType'
minValue:
type:
- number
- 'null'
description: The minimum value of this action (e.g. for an AnalogAction)
format: double
maxValue:
type:
- number
- 'null'
description: The maximum value of this action (e.g. for an AnalogAction)
format: double
additionalProperties: false
description: The Information about an Action of a device
ActionToPost:
type: object
properties:
deviceID:
type: string
description: The ID of the Device
format: uuid
actions:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/ActionToPostItem'
description: List with all Actions for this device
additionalProperties: false
description: Container Class for an action to post
ActionToPostItem:
type: object
properties:
obisCode:
type:
- string
- 'null'
description: The ObisCode (ID) of the Action
value:
type: number
description: The Value to Post
format: double
additionalProperties: false
description: Container class for an action item
securitySchemes:
OAuth2:
type: oauth2
description: OAuth 2.0 authorization
flows:
clientCredentials:
authorizationUrl: /oauth/authorize
tokenUrl: /oauth/token
scopes:
user.read: Read the user settings
user.readwrite: Read and write the user settings
device.read: Read data from the devices
device.readswitch: Read data from the device and controll the outputs
device.readwrite: Read data from the device and add/update the values
auditlog.read: Read the audit log
partner.read: Read the device of a partner
partner.write: Read and write the device of a partner
partner.updatefirmware: Update the firmware of all devices of a partner
realtimeapi.read: Read the realtime api registrations
realtimeapi.readwrite: Read and write the realtime api registrations
oauthapp.write: Write and change of oauth applications
authorizationCode:
authorizationUrl: /oauth/authorize
tokenUrl: /oauth/token
scopes:
user.read: Read the user settings
user.readwrite: Read and write the user settings
device.read: Read data from the devices
device.readswitch: Read data from the device and controll the outputs
device.readwrite: Read data from the device and add/update the values
auditlog.read: Read the audit log
partner.read: Read the device of a partner
partner.write: Read and write the device of a partner
partner.updatefirmware: Update the firmware of all devices of a partner
realtimeapi.read: Read the realtime api registrations
realtimeapi.readwrite: Read and write the realtime api registrations
oauthapp.write: Write and change of oauth applications
Basic:
type: http
description: Basic authorization
scheme: Basic