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
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:
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:
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:
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:
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:
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:
action
Name of the action to call
cleanup
-
For more information on WoT specifications:
Last updated