Consume Web of Things

This handler (com.rierino.handler.wot.WOTConsumerEventHandler) provides ability to consume WoT data and invoke actions on IoT and similar endpoints

Handler Parameters

Parameter
Definition
Example
Default

thing.state

Name of the state manager with WOT configurations

iot

thing

thing.domain

Name of the thing domain to include (for filtering thing.state records)

factory

-

saga.handler

Name of the saga event handler that executes tool sagas

ai_saga

saga

Actions

GetWOTEntry

Returns details of a "Thing" using its discovery endpoint. Uses "domain" event meta to refer to the "Thing" id.

GetWOTProperty

Reads a specific property from a "Thing". Event metadata fields applicable for this action are as follows:

Field
Definition
Example
Default

domain

ID of the "Thing" to read from

coffee_machine

-

outputElement

Json path for the output in response event payload

output

-

With event metadata parameters as:

Parameter
Definition
Example
Default

property

Name of the property to read

level

-

WriteWOTProperty

Writes a specific property to a "Thing". Event metadata fields applicable for this action are as follows:

Field
Definition
Example
Default

domain

ID of the "Thing" to write to

coffee_machine

-

inputElement

Json path for the input in event payload to write from

input

-

outputElement

Json path for the output in response event payload

output

-

With event metadata parameters as:

Parameter
Definition
Example
Default

property

Name of the property to write

level

-

InvokeWOTAction

Invokes specific property on a "Thing". Event metadata fields applicable for this action are as follows:

Field
Definition
Example
Default

domain

ID of the "Thing" to invoke action on

coffee_machine

-

inputElement

Json path for the input in event payload to use as action parameters

input

-

outputElement

Json path for the output in response event payload

output

-

With event metadata parameters as:

Parameter
Definition
Example
Default

action

Name of the action to call

cleanup

-

For more information on WoT specifications:

WoT Specification

Last updated