Execute Action Using Rule

Having defined properties on the thing schema based on the key-value pairs of an executeService response, we can use the Support Rules service to execute the action on a schedule or a property value trigger.

First define a "swx:macro-action" with configuration details as follows:

  • action: 'executeService'
  • input: '{"sendAsTelemetry":true,"requestBody":""}'
  • thingId: the UID of the RapidMiner thing

This macro can now be triggered by a schedule or a listener.