The first Variable category is the “Action Variable” category.

When expanding the view by clicking on the left arrow button you will see an overview of the available Action Variables:

On Gravio Studio Mac, you can see the available variables by clicking on the action icon on the top left

The various colours refer to the different types such as int, double, string, bool, datetime and generic:

These fields in the “Action Variables” can be referred to in the “Processing” pane later.

To refer to these variables, prefix them with “av.” (for Action Variable) before the Action Variable name. eg. “av.SenderId”

Initially, each Action has its predefine variables.

TriggerName The name of the trigger as defined by you
TriggerDataKind The layer type, e.g. Aqara-Door, Aqara-Temperature etc.
Id The database row Id
DataKind The kind of data, e.g. Aqara-TwoButton, Aqara-Temperature etc.
DataType The type of data, string, int, bool etc.
Kind Detailed data type of the reading, e.g. Button press, Door open etc.
DataId The ID of the data item
SenderId The ID/MAC Address of the sensor, e.g. “05-00-0A-3D”
SensorDeviceId The ID of the device, e.g. the USB adapter
Data The data itself
Timestamp The UTC time the reading was received by Hubkit at

You can click on the “+” button to add your own Action Variables:

Give your new variable a name and optionally assign a default value to it.

To assign a devault value, double click and edit this field again:

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment