OSTIP_EXARI v0.1.0 Swagger.Client.Api.ApiDocsdeviceStatesFormat View Source
API calls for all endpoints tagged ApiDocsdeviceStatesFormat.
Link to this section Summary
Functions
Destroy a device-state controlled by ARI
Retrieve the current state of a device
List all ARI controlled device states
Change the state of a device controlled by ARI. (Note - implicitly creates the device state)
Link to this section Functions
Link to this function
delete(connection, device_name, opts \\ [])
View Source
delete(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Destroy a device-state controlled by ARI.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- device_name (String.t): Name of the device
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
Link to this function
get(connection, device_name, opts \\ [])
View Source
get(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Retrieve the current state of a device.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- device_name (String.t): Name of the device
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
Link to this function
list(connection, opts \\ [])
View Source
list(Tesla.Env.client(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
List all ARI controlled device states.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
Link to this function
update(connection, device_name, device_state, opts \\ [])
View Source
update(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Change the state of a device controlled by ARI. (Note - implicitly creates the device state).
Parameters
- connection (Swagger.Client.Connection): Connection to server
- device_name (String.t): Name of the device
- device_state (String.t): Device state value
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure