Gravio HubKit Manual

Gravio Action Component Reference

This document explains the functionality and usage of various action components available in the Gravio platform. Each component has specific functions and can be combined in action flows to perform various tasks such as sensor data processing and integration with external services.

Table of Contents

  1. Amazon Nova
  2. Amazon Polly Speech
  3. Aqara Smart Plug
  4. AWS S3 Download
  5. AWS S3 Upload
  6. BindingOnOff
  7. Box Download
  8. Box List
  9. Box Upload
  10. BrightSign
  11. Call
  12. Call If
  13. Camera Take Photos
  14. Camera Take Video
  15. Chatwork
  16. Chromecast
  17. Claude
  18. CSV File Write
  19. CSV Read
  20. CSV Write
  21. Exec
  22. Execute Inference Model
  23. File Copy
  24. File Delete
  25. File List
  26. File Read
  27. File Rename
  28. File Write
  29. Filter
  30. GCS Download
  31. GCS Upload
  32. Gemini
  33. Go To
  34. Go To If
  35. Google Analytics Send Event
  36. GoogleDriveDownload
  37. GoogleDriveList
  38. GoogleDriveUpload
  39. GPS
  40. Gravio Distance
  41. Gravio Matrix
  42. HTTP Request
  43. If
  44. Join
  45. LINE Notify
  46. LINE Push
  47. LINE WORKS
  48. LINE WORKS (API 2.0)
  49. Mail Send
  50. Microsoft Drive Download
  51. Microsoft Drive Upload
  52. Microsoft Exchange List Events
  53. Microsoft Exchange Update Event
  54. MQTT Publish
  55. MSTeams Send Message
  56. MySQL Exec
  57. MySQL Query
  58. OpenAIAudio
  59. OpenAIChat
  60. OpenAICompletion
  61. OpenAIImage
  62. Parallel
  63. Parallel If
  64. PATLITE
  65. Philips Hue
  66. PostgreSQL Exec
  67. PostgreSQL Query
  68. Sensor Data DB
  69. Sensor Data DB If Zero
  70. SharePoint Download
  71. SharePoint Upload
  72. Slack Files Upload
  73. Slack Files Upload2
  74. Slack Post Message
  75. Sleep
  76. SORACOMDataPost
  77. SORACOMFileUpload
  78. Sound Effect
  79. Sound Play
  80. Split
  81. SQL Server Exec
  82. SQL Server Query
  83. Statistics
  84. Template
  85. Transform
  86. Twilio SMS
  87. Write To Excel (365)
  88. Write To Excel (Local)
  89. Write To GoogleSheets
  90. Zigbee Light

Amazon Nova

The Amazon Nova component uses Amazon Nova LLM hosted on AWS Bedrock to return model-generated messages. It can analyze text, images, and video files.

Properties

Property Description
AWS Session AWS connection settings
Model Select the Amazon Nova model to use
System Instruction System message to assign a role to the AI
Message User message to send to the AI
Input Select input from file or payload
Automatic S3 Upload When checked, automatically uploads attachments to S3. Required for files larger than 25MB
Bucket S3 bucket name
Delete Uploaded File When checked, deletes S3 file after use
File MIME Type MIME type of the attached file
Filename Path of the file to analyze
Max Tokens Maximum output token count
TopP TopP value (0-1)
Temperature Temperature parameter that controls creativity of generation
Timeout Timeout in seconds
Retry Count Number of automatic retries
Access Key ID AWS Access Key ID
Secret Access Key AWS Secret Access Key
Region AWS Region

Amazon Polly Speech

Amazon Polly converts input text to speech and plays it as audio.

Properties

Property Description
Text Specify the message text to be spoken
Voice Specify the voice type of the speaker. Select a voice type in the same language as the text
Voice Engine Standard or Neural
Audio Processing Play or Save to File
Filename Filename when saving audio to file
Timeout Timeout setting for transmission
Access Key ID Access key obtained from AWS
Secret Access Key Secret access key obtained from AWS
Region Specify the AWS region to use

Note: ValidationException will occur if the voice engine does not support Neural Engine (NTTS).

Aqara Smart Plug

This component allows you to turn Aqara smart plugs On/Off.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Base Property Specify the base property for "Aqara Smart Plug" category
Device ID Device ID to turn On/Off. When not set, ON/OFF is executed for all Aqara smart plugs. Multiple devices can be specified with comma separation
On On/Off specification. Value for cp.On is "true" or "false"

AWS S3 Download

This component can be used to download files from AWS S3 when you want to use files in HubKit. Files are saved in the Action Manager's Data directory.

Properties

Property Description
Output Specify whether to hold in Payload within the Action program or hold as a file. Values for cp.Output are "Payload" or "File"
Filename Filename when holding as a file
Bucket Bucket name in AWS S3
Object Key Object key in AWS S3
Timeout Transmission timeout setting
Access Key ID Access key obtained from AWS
Secret Access Key Secret access key obtained from AWS
Region Specify the AWS region to use

*Note: If no file path is specified, the file save destination is actmgr/data.

AWS S3 Upload

AWS S3 Upload uploads files to Amazon S3. Files in the action's data folder are the target.

Properties

Property Description
Input Specify whether to read from Payload within the Action program or read from a file. Values for cp.Input are "Payload" or "File"
Filename Input filename
Bucket Bucket name in AWS S3 for upload
Object Key Object key in AWS S3
ACL ACL permissions in AWS S3
Storage Class Storage type in AWS S3
Timeout Transmission timeout setting
Access Key ID Access key obtained from AWS
Secret Access Key Secret access key obtained from AWS
Region Specify the AWS region to use

BindingOnOff

You can change the binding settings of devices connected to areas/layers at the time of action execution.

Properties

Property Description
Field Specify whether to designate the device by Device ID or Logical Device ID
Device ID Specify the device for binding by Device ID
Logical Device ID Specify the device for binding by Logical Device ID
On/Off Specify On or Off for the binding of the specified device (settings will not change if "No Change" is selected)

Box Download

The Box Download component allows you to download files from Box.

Output Payload

Output Payload Description
cv.Payload Downloaded file if Payload is specified in output property. Previous component's output payload if filename is specified (passthrough)

Properties

Property Description
Output Payload or File
Overwrite Existing File If "Output Property" is set to File and an existing file exists, a number is added to the filename when "Overwrite Existing File" is off
Specification Method Search by file path and filename, search by folder ID and filename, or search by file ID
Download Only Newest When multiple files match the search, download only the newest file or download all
Target When specification method is not File ID, specify Box filename with exact match or partial match
Box Folder Path Box folder path for download target when specification method is file path
Box Filename Box filename to download when specification method is filename
File ID File ID to download when specification method is file ID
Today's Added/Modified Files Specify files added or updated on the execution day
Get Files Modified After This Time Download files modified after the specified time
Get Files Modified Before This Time Download files modified before the specified time
Timeout HTTP request response timeout value
Timezone Timezone for specified time
OAuth2 Client ID Specify API 2.0 Client ID from Box
OAuth2 Client Secret Specify Client Secret from Box
OAuth2 Redirect URL Specify Redirect URL from Box
OAuth2 Access Token Obtain by pressing Get Token button. Can also be updated with Refresh Token button

Component Variables

Component Variable Description
cv.FileID File ID
cv.ReadLength Byte count of read data
cv.Filename Downloaded filename when "Output" property is filename

Box List

The Box List component allows you to retrieve a list of files from Box.

Output Payload

File list is output.

Box List output Payload example:

{
  "Filename": "test.txt",
  "ID": "1365057753092",
  "IsDir": false,
  "ModifiedTime": "2023-11-17T01:20:35-08:00",
  "ParentFolderID": "235207463831",
  "Path": "a/b/test.txt",
  "Size": 6
}

Properties

Property Description
Box Folder Path Box folder path for download target
Search Target Specify filename to search
Search Type Search method for "Search Target" string - exact match or partial match for filename
Include Files Include files in search results
Include Directories Include directories in search results
Sort Order Output order of search results: filename (asc), filename (desc), modified time (asc), modified time (desc), file size (asc), file size (desc)
Today's Added/Modified Files Specify files added or updated on the execution day
Get Files Modified After This Time Download files modified after the specified time
Get Files Modified Before This Time Download files modified before the specified time
Timeout HTTP request response timeout value
Timezone Timezone including "Today's Added/Modified Files"
OAuth2 Client ID Specify API 2.0 Client ID from Box
OAuth2 Client Secret Specify Client Secret from Box
OAuth2 Redirect URL Specify Redirect URL from Box
OAuth2 Access Token Obtain by pressing Get Token button. Can also be updated with Refresh Token button

Box Upload

The Box Upload component allows you to upload files to Box.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Input Payload or Filename
Filename Filename to send when "Input" property is filename. Path specified as relative path from Data folder
Specification Method Folder path or Folder ID
Box Folder Path Folder path to save when "Specification Method" is folder path
Folder ID Folder ID to save when "Specification Method" is folder ID
Box Filename When specifying filename in "Input Property" and not specifying "Box Filename" property, sends with original filename
Timeout HTTP request response timeout value
OAuth2 Client ID Specify API 2.0 Client ID from Box
OAuth2 Client Secret Specify Client Secret from Box
OAuth2 Redirect URL Specify Redirect URL from Box
OAuth2 Access Token Obtain by pressing Get Token button. Can also be updated with Refresh Token button

Component Variables

Component Variable Description
cv.FileID File ID
cv.FolderID Folder ID
cv.BoxFilename Box destination filename

BrightSign

The BrightSign component allows you to send commands to BrightSign.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Hostname BrightSign hostname or IP address
Port Number BrightSign UDP port number
Command Command to send to BrightSign

Call

The Call component executes another action and continues the current action after execution. It allows you to reuse previously created actions.

Properties

Property Description
Action ID Action ID to execute

The action ID is the action filename without the extension (.acs).

Call If

The Call If component executes another action based on a condition and continues the current action after execution. It allows you to reuse previously created actions.

Properties

Property Description
Action ID Action ID to execute
Condition Expression Condition for executing the action

Condition examples: - Numeric Payload: cv.Payload > 10 - String: cv.Payload =~ "^abc" - JSON array: cv.Payload[1] > 10 - JSON Object: cv.Payload.key1 == "abc"

The action ID is the action filename without the extension (.acs).

Camera Take Photos

You can save photos from connected cameras at the time of action execution. Please check the physical device ID of the connected camera in the device list beforehand.

Output Payload

Output Payload Description
cv.Payload Outputs saved photo filenames as an array

Properties

Property Description
Physical Device ID Specify the physical device ID of the camera connected in the device list
Count Specify the number of photos to save when component executes (maximum 5)
Interval (seconds) Specify the interval for saving photos
Save Location Specify a subfolder of actmgr/data as the file save destination. Photos are saved in this subfolder

*Note: Component execution requires time equal to count × interval, so avoid settings that result in very long times.

Camera Take Video

You can save videos from connected cameras at the time of action execution. Please check the physical device ID of the connected camera in the device list beforehand.

Output Payload

Output Payload Description
cv.Payload Outputs saved video filenames as an array

Properties

Property Description
Physical Device ID Specify the physical device ID of the camera connected in the device list
Video Length (seconds) Specify the video recording duration when component executes (in seconds)
Interval (seconds) Specify the interval for saving
Save Location Specify a subfolder of actmgr/data as the file save destination. Videos are saved in this subfolder
Auto Naming Automatically generate filename
Filename Specify when auto naming property is not set to automatic

Chatwork

The Chatwork component allows you to post messages to Chatwork.

*Note: To use the Chatwork component, an administrator must configure service integration and obtain an API token.

Properties

Property Description Example
Base Property Specify the base property for "Chatwork Token" category
Room ID Room ID of the group to post to (obtained in initial setup)
Text Message string to post to Chatwork "Current temperature is "+cv.Payload+" degrees"
Filename Send file
Timeout API timeout
Token API token (obtained in initial setup)

*Note: If both text and file are specified, both text and file will be sent.

Chromecast

The Chromecast component plays videos and audio specified by the Filename property on Chromecast devices.

Properties

Property Description
Device IP address of Chromecast device
Filename Filename of the file to load (supported formats: mp4/webm and mp3/ogg/wav)

Claude

The Claude component integrates with AI functionality provided by Anthropic.

*Note: To use this Claude component, you need to obtain an API Key in advance to call Anthropic's AI functionality.

Properties

Property Description Example
Base Property Specify the base property for "Claude" category
Platform Platform to use Claude functionality Select from Anthropic, Bedrock, Vertex
Model Model name to use according to Claude functionality and platform "claude-3-5-sonnet-20240620"
System Message Initial message to set AI's role and behavioral guidelines
Image File Sample Sample image file for setting conversation context
User Message Input Example Sample user message for setting conversation context
Assistant Response Output Example Sample assistant response for setting conversation context
Image File Image file to use in actual conversation
Max Tokens Maximum token count for response
Temperature (0-1.0) Controls output diversity
TopP (0-1.0) Selects tokens based on cumulative probability
TopK (Integer) Limits the number of most likely tokens considered
Stop Sequence Specify specific strings to stop text generation ["END", "STOP", "."]
Timeout API timeout
API Key Enter when Anthropic is selected for platform
Access Key Enter when Bedrock is selected for platform
Secret Access Key Enter when Bedrock is selected for platform
Region Select when Bedrock is selected for platform
Project ID Enter when Vertex is selected for platform
Location Enter when Vertex is selected for platform
Private Key JSON Enter when Vertex is selected for platform

Output Payload

Output Payload Description
cv.Payload Stores response from Claude API as-is

Output Component Local Variables

Component Local Variable Description
id Processing ID
model Model name used
stop_reason Reason for stopping
stop_sequence Sequence that caused stop
input_tokens Input tokens
output_tokens Output tokens

CSV File Write

CSVFileWrite generates CSV from input payload as input. Interprets input payload as one record and saves. With the append property, data can be appended on each action execution. Therefore, header output is not performed.

Input Payload

Input Payload Example
JSON array payload example [123, "abc", "xxx"]
JSON Object payload example {"field1": 123, "field2":"abc", "field3":"xxx"}

Properties

Property Description
Filename Specify filename for file output
Append When true, appends data if file already exists. When false, overwrites file
Output Field Order When input payload is JSON Object, list field names to output in desired order, separated by commas
Encoding Specify encoding for file output

CSV Read

The CSV Read component takes CSV data as input, parses it, and creates output payload in the format specified by the "Output Format" component property.

Output Payload

Output Format Description
When "Array" is selected Outputs each CSV field as a string array, putting each row in output payload and passing to next component
When "Object" is selected Treats CSV first row as keys, generates JSON Object, puts each row in output payload and passes to next component

Properties

Property Description
Input Specify input as "Payload" or "File"
Filename Filename for file input
Encoding Specify encoding for file output (utf-8, shift_jis, euc-jp, iso-2022-jp)
Output Format Specify output format as "JSON Array" or "JSON Object"
Start Row Specify starting row to read as CSV data
Row Count Specify how many rows to read. -1 reads all rows

CSV Write

CSVWrite generates CSV from input payload. Accepts input payload as array of JSON arrays or array of JSON Objects.

Input Payload

Input Payload Example
JSON array payload example [[123, "abc", "xxx"], [456, "def", "yyy"], [789, "hij", "zzz"]]
JSON Object payload example [{"field1": 123, "field2":"abc", "field3":"xxx"}, {"field1": 456, "field2":"def", "field3":"yyy"}, {"field1": 789, "field2":"hij", "field3":"zzz"}]

The "Output Destination" property allows selecting file or payload as output destination.

Output Payload

"Output Destination" Property Description
When "File" is selected Writes generated CSV to file, output payload passes through input payload
When "Payload" is selected Puts generated CSV byte sequence in output payload

Properties

Property Description
Output Destination Specify output destination as "File" or "Payload"
Filename Specify filename for file output
Output Field Order When input payload is JSON Object, list field names to output in desired order, separated by commas
Encoding Specify encoding for file output (utf-8, shift_jis, euc-jp, iso-2022-jp)

Exec

The Exec component allows you to execute OS standard scripts. When HubKit is running on Windows, batch files and programs callable from command line can be executed. When running on Linux or Mac, shell scripts and programs callable from command line can be executed.

Properties

Property Description
Command Specify the program to execute. Files are saved in actmgr/data
Output Source Specify output source. "Standard Output Only" uses standard output from command execution as output Payload. "Standard Output and Standard Error" uses both as output Payload
Timeout Execution timeout setting
Output Type Output format setting

Execute Inference Model

You can execute inference on photos by specifying a deployed image inference file.

Output Payload

Output Payload Description
cv.Payload Outputs inference execution results

Properties

Property Description
Image File Specify file path of photo saved as file
Inference Model Specify the inference model name to execute
Filter 1 Select to filter inference results
Condition Specify filter condition
Filter 2 Select to filter inference results
Condition Specify Filter 2 condition
Transform Specify transformation
Draw Specify when saving inference results as image
Copy Destination Specify image save destination when "Copy" is specified in Draw

Filter

Used to extract only results matching conditions from inference results:

Filter Description
None Do not use filter
Model Default Use filter defined in model
Top n Predictions Get n data with highest predictions from multiple predictions as specified in condition
Bottom n Predictions Get n data with lowest predictions from multiple predictions as specified in condition
Predictions with Score Above x Get data with score above x from multiple predictions
Predictions with Score Below x Get data with score below x from multiple predictions
Predictions with "○○" Label Get data containing string specified in condition from labels in multiple predictions

Transform

Used to transform inference results:

Transform Description
None Do not use transform
Model Default Use transform defined in model
Count Get count of inference results
First Label Get first label from inference results
All Labels Get all labels from inference results

Draw

Used when saving inference results as image:

Draw Description
None Do not save inference result image
Original Image Save inference results to original image
Copy Create separate file at copy destination and save inference results

File Copy

Component that copies files specified by the filename property.

Properties

Property Description
File Name Filename of file to copy
Output File Path Folder name for output file
Output File Name Destination filename
Overwrite Handling Select handling when file already exists: Don't Overwrite, Overwrite, Keep Both, Overwrite Only If Newer, or Error
Preserve Update Time Select whether to set output file update time to match source file

File Delete

The File Delete component deletes files in the specified directory.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Filename Specify filename to delete
All Specify whether to delete all

File List

The File List component retrieves a list of files in the specified directory.

Output Payload

Output Payload Description
cv.Payload Outputs contents of the read directory

Directory contents have the following data:

Data Name Description
IsDir true for directory, false for file
ModTime Modification datetime
Name Filename
Path File path
Size File size

Properties

Property Description
Pattern Write condition expression
Include Files Specify whether to include files
Include Directories Specify whether to include directories

File Read

The FileRead component reads the file specified by the Filename property and outputs it as a stream.

Output Payload

Output Payload Description
cv.Payload File contents

Properties

Property Description
Filename Filename of file to read

File Rename

Component that renames files specified by the filename property.

Properties

Property Description
File Name Filename of file to rename
New File Name New filename after change
Allow Overwrite Specify whether to overwrite if file with new filename already exists

File Write

The File Write component writes contents passed in input payload to a file.

Output Payload

Output Payload Description
cv.Payload Contents of written file

Properties

Property Description
Filename Filename of file to write
Append When true, appends data if file already exists. When false, overwrites file

Filter

The Filter component filters data from input payload and outputs to output payload for the next component.

You can input a condition expression to determine whether to pass action processing. When true, passes through; when false, does not pass. When not passing, action terminates.

Properties

Property Description
Condition Type Expression, First Payload Only, Last Payload Only
Condition Expression When "Expression" is selected for condition type, write condition expression

When Condition Type is "Expression"

Condition examples: - Numeric Payload: cv.Payload > 10 - String: cv.Payload =~ "^abc" - JSON array: cv.Payload[1] > 10 - JSON Object: cv.Payload.key1 == "abc"

Component Local Variables Available in Expression

Component Local Variable Description
Index Represents order of Payload received by component, starting from 0
Passed Represents count of Payloads that passed through this component

GCS Download

The GCS Download component can receive data from Google Cloud Storage as a file. Using this component requires a Google Cloud contract and pre-configuration.

Properties

Property Description
Output Specify whether to output downloaded object to payload or save as file
Filename When file is selected, specify file to download as relative path from Data directory
Bucket Specify bucket name to download
Object Specify object name to download
Timeout API timeout
Private Key JSON Specify private key JSON file required for service account authentication created in Google Cloud

GCS Upload

The GCS Upload component can send data to Google Cloud Storage as a file. Using this component requires a Google Cloud contract and pre-configuration.

Properties

Property Description
Input Select whether to upload payload contents or specify filename to upload
Filename When file is selected, specify file to upload as relative path from Data directory
Bucket Specify destination bucket name for upload
Object Specify destination object name for upload. When specifying with folders, separate with slashes
ACL Specify access control list
Storage Class Specify storage class
ContentType Specify ContentType of object. If empty, automatically appended
Timeout API timeout
Private Key JSON Specify private key JSON file required for service account authentication created in Google Cloud

Gemini

The Gemini component allows you to use Gemini including VQA functionality. You can do the following:

Get answers based on user messages

Get answers by analyzing photos and video files

Output Payload

Output Payload Description
cv.Payload Outputs response from Gemini

Component Properties

Property Description
Model Select model to use from gemini-2.0-flash or gemini-2.0-flash-lite
System Instruction Specify system instructions for Gemini
User Message Enter prompt or question for Gemini
Filename Specify file for Gemini to analyze. Multiple files can be specified separated by commas
File MIME Type MIME type of file to upload. Multiple file MIME types can be specified separated by commas
Delete Uploaded File Specify to delete file after uploading to Gemini
Conversation History Provide JSON array representing previous conversation turns
Response MIME Type MIME type of response from Gemini - specify either text/plain or application/json
Max Tokens Set maximum number of tokens allowed in generated response
Temperature Specify randomness and creativity of Gemini's response from 0.0 to 2.0. Lower values produce more deterministic and focused output. Higher values lead to more diverse and creative responses
TopP Specify nucleus sampling from 0.0 to 1.0. Affects diversity of generated text. Lower values allow model to select from smaller set of possible words, resulting in more predictable text. Higher values allow model to consider wider range of words, increasing diversity but potentially reducing coherence
Stop Sequence Define list of strings (words or phrases) in JSON format that cause Gemini to stop generating text. Example: ["a","b","c"]
Safety Settings Set content filtering level. Helps prevent generation of potentially harmful or sensitive content. See Gemini API manual for safety settings details
Timeout HTTP request response timeout value
API Key Specify API key for using Gemini

Supported MIME Types

Image types: - PNG – image/png - JPEG – image/jpeg - WEBP – image/webp - HEIC – image/heic - HEIF – image/heif - WAV – audio/wav - MP3 – audio/mp3 - AIFF – audio/aiff - AAC – audio/aac - OGG Vorbis – audio/ogg - FLAC – audio/flac

Video types: - video/mp4, video/mpeg, video/mov, video/avi, video/x-flv, video/mpg, video/webm, video/wmv, video/3gpp

Text types: - PDF – application/pdf - JavaScript – application/x-javascript, text/javascript - Python – application/x-python, text/x-python - TXT – text/plain - HTML – text/html - CSS – text/css - Markdown – text/md - CSV – text/csv - XML – text/xml - RTF – text/rtf

Component Variables

Component Variable Description
cv.ConversationHistory JSON of conversation history. Can be used as input to Gemini component in subsequent calls to maintain conversation context
cv.FinishReasons Indicates why model stopped generating tokens. Useful for debugging or understanding model behavior
cv.UploadedFileURI List of URIs for successfully uploaded files
cv.UploadedMIMEType List of MIME types corresponding to uploaded files

Go To

The Go To component continues execution in another action. It allows you to reuse previously created actions.

Properties

Property Description
Action ID Action ID to execute

The action ID is the action filename without the extension (.acs).

Go To If

The Go To If component continues execution in another action when conditions match. It allows you to reuse previously created actions.

You can input a condition expression to determine whether to process another action. When true, executes another action; when false, does not execute. When not executing another action, action processing continues.

Properties

Property Description
Action ID Action ID to execute
Condition Expression Condition for executing action

Condition examples: - Numeric Payload: cv.Payload > 10 - String: cv.Payload =~ "^abc" - JSON array: cv.Payload[1] > 10 - JSON Object: cv.Payload.key1 == "abc"

The action ID is the action filename without the extension (.acs).

Google Analytics Send Event

The GoogleAnalyticsSendEvent component sends events using Google Analytics Measurement Protocol.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description Example
Version Analytics version number 1
TrackingId Analytics tracking ID UA-XXXXX-Y
ClientId Client ID - Specify unique ID for recording client
Event Category Event category "DataType - " + av.DataType
Event Action Event action "DataValue - " + av.DataValue
Event Label Event label "Sender - " + av.SenderId
Event Value Data to send 1
DebugMode Debug mode - Use when errors occur in settings
Timeout API timeout - Usually no need to change

GoogleDriveDownload

The Google Drive Download component can download files from Google Drive.

Output Payload

Output Payload Description
cv.Payload Downloaded file if Payload is specified in output property. Previous component's output payload if filename is specified (passthrough)

Properties

Property Description
Output Payload or Filename
Output Folder Path When "Input Property" is filename, save folder path. Relative path from Data folder, auto-created if folder doesn't exist
Output Filename When "Input Property" is filename, save filename. If omitted, saves with download source filename
Specification Method Search by filename, search by file path and filename, search by folder ID and filename, or search by file ID
Download Only Newest When multiple files match search, download only newest or download all
Target When specification method is not File ID, specify Drive folder path and Drive filename with exact match or partial match
Folder ID Folder ID of download target when specification method is folder ID
Drive Folder Path Drive folder path of download target when specification method is folder path
Drive Filename Drive filename to download when specification method is filename
File ID File ID to download when specification method is file ID
Today's Added/Modified Files Specify files added or updated on execution day
Get Files Modified After This Time Download files modified after specified time
Get Files Modified Before This Time Download files modified before specified time
Timeout HTTP request response timeout value
Timezone Timezone for specified time
OAuth2 Client ID Specify API 2.0 Client ID from GCP
OAuth2 Client Secret Specify Client Secret from GCP
OAuth2 Redirect URL Specify Redirect URL from GCP
OAuth2 Access Token Obtain by pressing Get Token button. Can also be updated with Refresh Token button

Component Variables

Component Variable Description
cv.FileID File ID
cv.ReadLength Byte count of read data
cv.Filename Downloaded filename when "Output" property is filename

GoogleDriveList

The Google Drive List component can retrieve a list of files from Google Drive.

Output Payload

Output Payload Description
cv.Payload File list is output

Google Drive List output Payload example:

{
  "Filename": "test.txt",
  "ID": "17CMCa4dsNDD6U0duQEBhVI7QZzXqIPYL",
  "IsDir": false,
  "MimeType": "text/plain",
  "ModifiedTime": "2023-09-28T10:33:46.189Z",
  "ParentFolderID": "1-KTO7YslI4iFD-7sxn7CKDNs-UkKMtf8",
  "Path": "a/b/test.txt",
  "Size": 8
}

Note: For Google Drive directories, "Size" is 0.

Properties

Property Description
Drive Folder Path Drive folder path of download target
Search Target Specify filename to search
Search Type Search method for "Search Target" string - exact match or partial match for filename
Include Files Include files in search results
Include Directories Include directories in search results
Sort Order Output order of search results: filename (asc), filename (desc), modified time (asc), modified time (desc), file size (asc), file size (desc)
Today's Added/Modified Files Specify files added or updated on execution day
Get Files Modified After This Time Download files modified after specified time
Get Files Modified Before This Time Download files modified before specified time
Timeout HTTP request response timeout value
Timezone Timezone including "Today's Added/Modified Files"
OAuth2 Client ID Specify API 2.0 Client ID from GCP
OAuth2 Client Secret Specify Client Secret from GCP
OAuth2 Redirect URL Specify Redirect URL from GCP
OAuth2 Access Token Obtain by pressing Get Token button. Can also be updated with Refresh Token button

GoogleDriveUpload

The Google Drive Upload component can upload files to Google Drive.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Input Payload or Filename
Filename Filename to send when "Input" property is filename. Path specified as relative path from Data folder
Content-Type MIME type of file to save
Specification Method Folder path or Folder ID
Drive Folder Path Google Drive destination folder name
Folder ID Google Drive destination folder ID
Drive Filename When specifying filename in "Input Property" and not specifying "Drive Filename" property, sends with original filename
Timeout HTTP request response timeout value
OAuth2 Client ID Specify API 2.0 Client ID from GCP
OAuth2 Client Secret Specify Client Secret from GCP
OAuth2 Redirect URL Specify Redirect URL from GCP
OAuth2 Access Token Obtain by pressing Get Token button. Can also be updated with Refresh Token button

Component Variables

Component Variable Description
cv.ContentType HTTP header Content-Type
cv.FileID File ID
cv.FolderID Folder ID
cv.DriveFilename Google Drive destination filename

GPS

You can receive and output GPS data from GPS devices.

Output Payload

Output Payload Description
cv.Payload GPS data is output

When data is RMC:

Data Description
Time UTC time of GPS data (hhmmss.ss format)
Status A: Data is valid, V: Data is invalid
Latitude Latitude (DMM format)
LatitudeDir Latitude direction (N or S)
Longitude Longitude (DMM format)
LongitudeDir Longitude direction (E or W)
SpeedKn Device movement speed (knots)
Course Device movement bearing (0 to 359.9 degrees clockwise from north) -1 if bearing is invalid
Date GPS data date (ddmmyy format)
MagneticVarDeg Angle difference between magnetic north and true north (0 to 359.9 degrees)
MagneticVarDir Direction of angle difference between magnetic north and true north (E or W)
Mode GPS mode (N: No data, A: Autonomous, D: Differential, E: Estimated)

When data is GGA:

Data Description
Utc GPS data receive time (hhmmss.ss format)
Latitude Latitude (DMM format)
LatitudeDir Latitude direction (N or S)
Longitude Longitude (DMM format)
LongitudeDir Longitude direction (E or W)
FixQuality Position fix quality (0: Cannot fix, 1: Standard positioning service mode, 2: Differential mode)
SatellitesInUse Number of satellites in use
HDOP Horizontal dilution of precision
Altitude Antenna altitude above sea level (unit: M)
Undulation Geoid height (unit: M)
Age Time elapsed since last correction information received
StnID Station ID

Properties

Property Description
RMC or GGA Select GPS device data output format as RMC or GGA
GSA Specify when GPS device output data includes GSA
Device ID GPS ID. When not set, executes data output from all GPS devices. Multiple GPS devices can be specified with comma-separated device IDs

Gravio Distance

The Gravio Distance component can retrieve measured distance values from Gravio Distance. To use this component, Gravio Distance must be paired in advance.

Output Payload

Output Payload Description
cv.Payload Measured distance is output. If physical ID is specified or target device is single, outputs as value; for multiple devices, outputs as array

Properties

Property Description
Device ID Device ID to measure distance. When not set, executes distance measurement for all Gravio Distance devices. Multiple devices can be specified with comma-separated device IDs

Execution Errors

Error Code Error Description Solution
ERR-10 low power Insufficient current Verify USB cable between power and sensor is correctly connected
ERR-14 calculation error Execution error Try again
ERR-15 weak signal Weak signal Keep device stationary and remove obstacles
ERR-16 unstable laser transition Unstable laser Keep device and target object stationary
ERR-18 ambient light too strong Ambient light too strong Reduce ambient light
ERR-26 out of display range Out of display range Try again

Gravio Matrix

The Gravio Matrix component can set text or images on Gravio Matrix. To use this component, Gravio Matrix must be paired in advance.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Device ID Device ID to set text/image or On/Off. When not set, executes for all Gravio Matrix. Multiple devices can be specified with comma-separated device IDs
Input Set "16x16 BMP file", "ASCII", or template. Templates: "Temperature°C", "Temperature°F", "Humidity%", "Pressure hPa", "CO2 Concentration", "Open/Close", "Date", "Time"
Content When Input is "16×16 BMP file", save BMP file in actmgr/data/icons and specify "icons/BMP filename" in "Content" property. For "ASCII", specify 1 or 2 alphabetic characters
Font Color Color specification (select from White, Black, Red, Green, Blue, Auto)
On On/Off specification
Brightness Brightness selection (select from 0-100)

Template Display

Template Description
Temperature°C Display temperature (Celsius) sensor value. Enter number in Content
Temperature°F Display temperature (Fahrenheit) sensor value. Enter number in Content
Humidity% Display humidity sensor value. Enter number in Content
Pressure hPa Display pressure sensor value. Enter number in Content
CO2 Concentration Display CO2 sensor value. Enter number in Content
Open/Close Display door open/close. Enter 0: Close, 1: Open in Content
Date Display current date (month/day). Enter cp.Content = now() in PreMapping for Content
Time Display current time (hour:minute). Enter cp.Content = now() in PreMapping for Content

HTTP Request

The HTTP Request component allows you to send HTTP requests to specified URLs. The HTTP Request component executes HTTP requests with input payload as HTTP request Body content according to properties, and writes HTTP response Body to output payload.

If

The If component jumps to the specified component when the condition expression evaluates to true.

Properties

Property Description
Component ID Component ID of jump destination
Condition Expression Condition expression to evaluate. Jumps when true

Join

The Join component combines multiple input payloads into an array and outputs.

Output Payload

Output Payload Description
cv.Payload Combined array

Properties

Property Description
Capacity Specify how many incoming items to combine and output

LINE Notify

The LINE Notify action component can post messages specified in component properties using LINE Notify service.

Properties

Property Description Example
Message Message string to post to LINE "Current temperature is "+cv.Payload+" degrees"
Package ID Send stamp with message. Specify with Sticker ID 446
Sticker ID Send stamp with message. Specify with Package ID 1988
Image File Send image with message. Specify JPEG or PNG file path image.jpg
Timeout API timeout
Token Access token issued by LINE Notify service

LINE Push

The LINE Push action component can post messages from official LINE account specified in properties using LINE Messaging API.

Properties

Property Description Example
Send to All Send message to all registered users
Recipient ID Send message to specific user
Message Type Select from Payload (Text), Text, Stamp, Image, Video, or Audio
Text When "Text" is selected for Message Type, specify text message to post to LINE "The current temperature is "+cv.Payload+" degrees"
Package ID When "Stamp" is selected for Message Type, specify stamp to send with Sticker ID 446
Sticker ID When "Stamp" is selected for Message Type, specify stamp to send with Package ID 1988
File URL When "Image", "Video", or "Audio" is selected for Message Type, specify file URL to post to LINE
Preview Image URL When "Image" or "Video" is selected for Message Type, specify preview image URL to post to LINE
Timeout API timeout
Token Channel access token issued for LINE Messaging API

LINE WORKS

The LINE WORKS component can post messages specified in component properties using LINE WORKS.

Properties

Property Description Example
Base Property Specify the base property for "LINE WORKS Bot Connection" category
Message Message string to post to LINE WORKS "Current temperature is "+cv.Payload+" degrees"
Package ID Send stamp with message. Specify with Sticker ID 446
Sticker ID Send stamp with message. Specify with Package ID 1988
Image File Send image with message. Specify JPEG or PNG file path image.jpg
File Send file with message. Extensions bat, cmd, com, cpl, exe, scr, js, vbs, wsf, hta cannot be sent
Destination Type Select member account or talk room ID as message destination
Destination ID Specify member account or talk room ID selected in destination type aaaa@bbbb for member account, 12345 for talk room ID
Timeout API timeout
OAuth2 Client ID Specify API 2.0 Client ID from LINE WORKS Developer Console
OAuth2 Client Secret Specify Client Secret from LINE WORKS Developer Console
OAuth2 Redirect URL Specify Redirect URL from LINE WORKS Developer Console
OAuth2 Access Token Obtain by pressing Get Token button. Can also be updated with Refresh Token button
Bot No Specify Bot No from LINE WORKS Developer Console

LINE WORKS (API 2.0)

The LINE WORKS (API 2.0) component posts messages to LINE WORKS using API 2.0. It can send text messages, stamps, images, and files.

Properties

Property Description
Message Input Format Select whether to use payload or specify in property
Message Message to send
Package ID Stamp package ID
Sticker ID Sticker ID
Image File Image file to send
File File to send
Destination Type Select Member or Chat Room
Destination ID Destination ID
Timeout Timeout (milliseconds)
LINE WORKS Bot Connection LINE WORKS Bot connection settings (API 2.0)
OAuth2 Client ID OAuth2 Client ID
OAuth2 Client Secret OAuth2 Client Secret
OAuth2 Redirect URL OAuth2 Redirect URL
OAuth2 Scope OAuth2 Scope
Bot ID LINE WORKS Bot ID

Note: Using LINE WORKS API 2.0 requires configuration in LINE WORKS Developer Console and OAuth2 authentication.

Mail Send

The Mail Send component sends email. It sends email with input payload as mail body.

Component Variables

Component Variable Description
cv.Payload Set content to include in mail body to this variable

Properties

Property Description
To Specify destination email address
Cc Specify Cc email address
Bcc Specify Bcc email address
Subject Specify email subject
From Specify sender email address
Attachment Specify attachment file
Message is HTML Send message body as HTML
Hostname SMTP server hostname
Port Number SMTP server port number
Authentication Method Modern authentication (OAuth2) or Basic authentication (SMTP)
Username Login username for SMTP server
Password Login password for SMTP server
OAuth2 Client ID Client ID
OAuth2 Client Secret Client Secret
OAuth2 Redirect URL Redirect URL
OAuth2 Scope Scope
OAuth2 Authorization URL Authorization URL
OAuth2 Token URL Token URL
OAuth2 Access Token Obtain by pressing Get Token button. Can also be updated with Refresh Token button

Microsoft Drive Download

The Microsoft Drive Download component downloads files from Microsoft Drive including OneDrive and SharePoint. Uses OAuth2 Client Credentials.

Properties

Property Description
OAuth2 Client ID OAuth2 Client ID
OAuth2 Client Secret OAuth2 Client Secret
Tenant ID Tenant ID of Microsoft OAuth application
Drive Id Drive ID to download from
File Path on Server File path on server (excluding filename)
Filename on Server Filename on server
File Destination Download destination
Download To Download destination within Gravio action data folder
Conflict Option Handling when file with same name exists
Target Filter condition for target files
Today's Added/Modified Files Get only files updated today
Get Files Modified After This Time Get files updated after specified time
Get Files Modified Before This Time Get files updated before specified time
Timeout Timeout (seconds)

Microsoft Drive Upload

The Microsoft Drive Upload component uploads files to Microsoft Drive endpoints including OneDrive and SharePoint. Uses OAuth2 Client Credentials.

Properties

Property Description
OAuth2 Client ID OAuth2 Client ID
OAuth2 Client Secret OAuth2 Client Secret
Tenant ID Tenant ID of Microsoft OAuth application
Drive Id Drive ID to upload to
Destination Folder Destination folder for upload. Root if empty
Create Destination Folders When checked, creates folders that don't exist
Input Select input from file or payload
Gravio File Gravio file to upload
Destination Filename Filename after upload
Timeout Timeout (seconds)
Conflict Option Handling when file with same name exists

Microsoft Exchange List Events

The Microsoft Exchange List Events component retrieves calendar events from Microsoft Exchange 365 Online. Uses OAuth2 Client Credentials.

Properties

Property Description
OAuth2 Client ID OAuth2 Client ID
OAuth2 Client Secret OAuth2 Client Secret
Tenant ID Tenant ID of Microsoft OAuth application
User Resource ids Comma-separated list of user IDs to get events from
Limit Maximum number of events per user
Use Freeform Filter Check to use custom $filter query
Custom $filter String Custom filter string
Use Freeform Select Check to use custom $select query
Custom $select String Custom select string
Include Cancelled Include cancelled events
Events Happening Today Limit to events happening today
Events Currently Ongoing Limit to currently ongoing events
Events Starting Before Events starting before this time
Events Starting After Events starting after this time
Events Ending Before Events ending before this time
Events Ending After Events ending after this time
Subject Subject filter
Subject Match Condition Subject match condition

Microsoft Exchange Update Event

The Microsoft Exchange Update Event component updates calendar events on Microsoft Exchange 365 Online. Uses OAuth2 Client Credentials.

Properties

Property Description
OAuth2 Client ID OAuth2 Client ID
OAuth2 Client Secret OAuth2 Client Secret
Tenant ID Tenant ID of Microsoft OAuth application
User Resource id User ID that owns the event
Event Id to update ID of event to update
New Event Status New status to set on event
Continue on 404 Continue without error even if event is not found (e.g., past events)

MQTT Publish

The MQTT publisher action component allows you to publish messages to topics within an MQTT PubSub system.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description Example
Topic MQTT topic
Client ID MQTT client ID
QoS Select QoS value from 0, 1, 2
Retain Retain flag
Timeout Timeout Usually no need to change
URL MQTT server URL Specify with ssl:// schema. When not using ssl, specify hostname (IP address) only
Port MQTT server port
Username MQTT server authentication Specify when authentication is configured
Password MQTT server authentication Specify when authentication is configured
Certificate X.509 certificate based authentication certificate
Private Key X.509 certificate based authentication private key
Private Key Passphrase Private key passphrase
Root Certificate Certificate root certificate

MSTeams Send Message

The MSTeams Send Message action component can post messages to channels specified in component properties using Microsoft Teams API.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description Example
Incoming Webhook URL Teams API URL
Message Message to send "Current temperature is "+cv.Payload+" degrees"
Timeout API timeout Usually no need to change

MySQL Exec

The MySQL Exec component can execute SQL statements against MySQL to update/delete data. Supports MySQL 5.6 and above.

Output Payload

Output Payload Description
cv.Payload Passes LastInsertId or RowsAffected depending on executed SQL statement, in addition to input payload

Properties

Property Description
SQL Specify SQL statement to execute
Bulk Mode Select whether to use bulk mode for SQL statement execution
Bulk Size Specify size when using bulk mode
Host Specify MySQL host
Port Specify MySQL port
Username Specify MySQL username
Password Specify MySQL password
Database Specify database
Timezone Specify database timezone
TLS Specify communication encryption
Root Certificate Specify root certificate to use

MySQL Query

The MySQL Query component can execute query statements against MySQL to retrieve data. Supports MySQL 5.6 and above.

Output Payload

Output Format Description
Array Format Outputs each matching record in array format
Object Format Outputs each matching record in JSON object format

Properties

Property Description
SQL Specify SQL statement to execute
Output Format Select array format or object format
Host Specify MySQL host
Port Specify MySQL port
Username Specify MySQL username
Password Specify MySQL password
Database Specify database
Timezone Specify database timezone
TLS Specify communication encryption
Root Certificate Specify root certificate to use

OpenAIAudio

The OpenAIAudio component integrates with AI functionality provided by OpenAI. OpenAIAudio can call the function to transcribe input audio files.

Properties

Property Description Example
Base Property Specify the base property for "OpenAI" category
API Key API Key
Organization Id Organization ID
User Username
Operation Select operation from Transcribe or Translation Transcribe, Translation
Model Select or manually enter model name to use Whisper-1
Audio File Audio filename
Language Audio language in ISO-639-1 format. Default is English ja, en
Prompt Prompt
Temperature Sampling temperature specified 0-1
Response Format Select output data format from JSON, Verbose JSON, Text, srt file, vtt file JSON, Verbose JSON, Text, srt, vtt

Output Payload

Output Payload Description
cv.Payload Stores content specified in Response Format property

OpenAIChat

The OpenAIChat component integrates with AI functionality provided by OpenAI. OpenAIChat uses language models specialized for chat completion. It can call chat-based functionality designed to facilitate conversations with multiple exchanges.

Properties

Property Description Example
Base Property Specify the base property for "OpenAI" category
API Key API Key
Organization Id Organization ID
User Username
Model Select or manually enter model name to use. Available models vary by OpenAI contract GPT 3.5 Turbo, GPT 3.5 Turbo 16k, GPT 4, GPT 4 32k
System Message Role setting
User Message Sample Input Specify example user question
Assistant Message Sample Input Specify example response
User Message User question
Temperature Sampling temperature specified 0-1
Max Tokens Maximum token count for response
Top-P Nucleus sampling specified 0-1. Default is 1
N Number of responses to generate per prompt
Log Probabilities Include log probabilities of most likely tokens and selected token
Stop String to stop token generation
Presence Penalty Whether to reuse words already used, -2.0 to 2.0. Default is 0
Frequency Penalty Apply penalty based on frequency, -2.0 to 2.0. Default is 0
Logit Bias Parameter to modify likelihood of specified tokens appearing

Output Payload

Output Payload Description
cv.Payload Stores response from OpenAI Chat API as-is

OpenAICompletion

The OpenAICompletion component integrates with AI functionality provided by OpenAI. Returns completions for given prompts. For chat-based functionality, use the OpenAIChat component.

Properties

Property Description Example
Base Property Specify the base property for "OpenAI" category
API Key API Key
Organization Id Organization ID
User Username
Model Select or manually enter model name to use Text Davinci 003, Text Davinci 002, Text Curie 001, Text Babbage 001, Text Ada 001
Temperature Sampling temperature specified 0-1
Prompt Prompt
Suffix Suffix
Max Tokens Maximum number of tokens to generate
Top-P Nucleus sampling specified 0-1. Default is 1
N Number of responses to generate per prompt
Log Probabilities Include log probabilities of most likely tokens and selected token
Echo Append prompt to response
Stop String to stop token generation
Presence Penalty Whether to reuse words already used, -2.0 to 2.0. Default is 0
Frequency Penalty Apply penalty based on frequency, -2.0 to 2.0. Default is 0
Best Of Control number of candidate responses. Specify number to return but best_of must be greater than N
Logit Bias Parameter to modify likelihood of specified tokens appearing

Output Payload

Output Payload Description
cv.Payload Stores response from OpenAI Completion API as-is

OpenAIImage

The OpenAIImage component integrates with AI functionality provided by OpenAI. OpenAIImage can call the function to generate images from input prompts.

Properties

Property Description Example
Base Property Specify the base property for "OpenAI" category
API Key API Key
Organization Id Organization ID
User Username
Model Select model from DALLE-2 or DALLE-3
Operation Select operation from Create Image, Edit Image, or Make Image Variation Create Image, Edit Image, Make Image Variation
Prompt Prompt (only when operation is Create Image or Edit Image)
Image File Image PNG file (only when operation is Edit Image or Make Image Variation)
Mask File Mask PNG file - Use image under 4MB and same size as Image File (only when operation is Edit Image)
n Number of responses to generate per prompt
Image Size Generated image size 1024px by 1024px, 512px by 512px, 256px by 256px
Response Format Generated data format File URL, Base64
Quality Select Standard or High Definition (only when Model is DALLE-3)
Style Select Vivid or Natural (only when Model is DALLE-3)
Filename Output filename (only when generated data format is File)
File Overwrite Output file overwrite (only when generated data format is File). When not overwriting and same filename exists, saves with "-N" appended

Output Payload

Output Payload Description
cv.Payload When Response Format property is File, stores written file path; when URL, stores URL; when Base64, stores Base64 encoded generated data

Parallel

The Parallel component continues executing the current action while also executing another action. It allows you to reuse previously created actions.

Properties

Property Description
Action ID Action ID to execute

The action ID is the action filename without the extension (.acs).

Parallel If

The Parallel If component continues executing the current action while also executing another action when conditions match. It allows you to reuse previously created actions.

You can input a condition expression to determine whether to process another action. When true, also executes another action; when false, does not execute another action. When not executing another action, action processing still continues.

Properties

Property Description
Action ID Action ID to execute
Condition Expression Condition for executing action

Condition examples: - Numeric Payload: cv.Payload > 10 - String: cv.Payload =~ "^abc" - JSON array: cv.Payload[1] > 10 - JSON Object: cv.Payload.key1 == "abc"

The action ID is the action filename without the extension (.acs).

PATLITE

The PATLITE action component can control lights and play audio on PATLITE network-compatible signal towers. The signal tower must support HTTP commands.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description Example
IP Address Signal tower IP address
Red Control red lamp Off/On/Blink1/Blink2/No Change
Yellow Control yellow lamp Off/On/Blink1/Blink2/No Change
Green Control green lamp Off/On/Blink1/Blink2/No Change
Blue Control blue lamp Off/On/Blink1/Blink2/No Change
White Control white lamp Off/On/Blink1/Blink2/No Change
MP3 Play Check to play audio
Play Channel Specify channel to play as number. See device manual for details 65
Repeat Specify additional repeat play count. Leave blank for no repeat Specifying 1 plays twice
Timeout Timeout Usually no need to change

Philips Hue

This component allows you to change settings for specific Philips Hue lights. You need to specify color and opacity, and set the bridge IP address, user ID, and light ID.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description Example
On On/Off specification
Color Specify R, G, B, opacity values in hexadecimal from 00 to FF in order FFFFFFFF
Color Loop Switch colors at regular intervals
IP Address Philips Hue IP address
User ID Philips Hue user ID
Light ID Specify Philips Hue light ID. Light ID value is a number starting from "1"

PostgreSQL Exec

The PostgreSQL Exec component can execute SQL statements against PostgreSQL to update/delete data. Supports PostgreSQL 11 and above.

Output Payload

Output Payload Description
cv.Payload Passes LastInsertId or RowsAffected depending on executed SQL statement, in addition to input payload

Properties

Property Description
SQL Specify SQL statement to execute
Bulk Mode Select whether to use bulk mode for SQL statement execution
Bulk Size Specify size when using bulk mode
Host Specify PostgreSQL host
Port Specify PostgreSQL port
Username Specify PostgreSQL username
Password Specify PostgreSQL password
Database Specify database
Timezone Specify database timezone
SSLMode Specify communication encryption
Root Certificate Specify root certificate to use

PostgreSQL Query

The PostgreSQL Query component can execute query statements against PostgreSQL to retrieve data. Supports PostgreSQL 11 and above.

Output Payload

Output Format Description
Array Format Outputs each matching record in array format
Object Format Outputs each matching record in JSON object format

Properties

Property Description
SQL Specify SQL statement to execute
Output Format Select array format or object format
Host Specify PostgreSQL host
Port Specify PostgreSQL port
Username Specify PostgreSQL username
Password Specify PostgreSQL password
Database Specify database
Timezone Specify database timezone
SSLMode Specify communication encryption
Root Certificate Specify root certificate to use

Sensor Data DB

The SensorDataDB component can retrieve sensor data stored in Coordinator or HubKit.

Output Payload

Output Payload Description
cv.Payload Outputs each matching record as JSON Object type per record

Properties

Property Description
Coordinator Specify when retrieving Coordinator data
HubId HubId (when retrieving data from Coordinator)
Area Specify area name
Layer Specify layer name
Device ID Specify device ID
From Previous Number to retrieve
Timescale Unit of latest data to retrieve (select from Record, Milliseconds, Seconds, Minutes, Hours, Days, Weeks, Months, Years)
All Records Disable From Previous and Timescale conditions and retrieve all records
Round Time Round data when retrieving (see below). Disabled when Timescale is Record
Filter Expression Allow selecting whether to output payload with expression like Filter component

Round Time

Rounds the datetime when component is executed by the specified Timescale (unit of latest data to retrieve), and retrieves data going back by the value specified in From Previous (number to retrieve).

Sensor Data DB If Zero

The SensorDataDBIfZero component outputs input payload as output payload when zero records are found. When one or more records exist, outputs nothing.

Output Payload

Output Payload Description
cv.Payload Outputs input payload as output payload when zero records are found

Properties

Property Description
Area Specify area name
Layer Specify layer name
Device ID Specify device ID
From Previous Number to retrieve
Timescale Unit of latest data to retrieve (select from Record, Milliseconds, Seconds, Minutes, Hours, Days, Weeks, Months, Years)
All Records Disable From Previous and Timescale conditions and retrieve all records
Round Time Round data when retrieving. Disabled when Timescale is Record
Filter Expression Allow selecting whether to output payload with expression like Filter component

SharePoint Download

The SharePoint Download component downloads files from Microsoft SharePoint sites. Uses OAuth2 Client Credentials.

Properties

Property Description
OAuth2 Client ID OAuth2 Client ID
OAuth2 Client Secret OAuth2 Client Secret
Tenant ID Tenant ID of Microsoft OAuth application
Sharepoint Site Id SharePoint Site ID
File Path on Server File path on server (excluding filename)
Filename on Server Filename on server
File Destination Download destination
Download To Download destination within Gravio action data folder
Conflict Option Handling when file with same name exists
Target Filter condition for target files
Today's Added/Modified Files Get only files updated today
Get Files Modified After This Time Get files updated after specified time
Get Files Modified Before This Time Get files updated before specified time
Timeout Timeout (seconds)

SharePoint Upload

The SharePoint Upload component uploads files to Microsoft SharePoint sites. Uses OAuth2 Client Credentials.

Properties

Property Description
OAuth2 Client ID OAuth2 Client ID
OAuth2 Client Secret OAuth2 Client Secret
Tenant ID Tenant ID of Microsoft OAuth application
Sharepoint Site Id SharePoint Site ID
Destination Folder Destination folder for upload. Root if empty
Create Destination Folders When checked, creates folders that don't exist
Input Select input from file or payload
Gravio File Gravio file to upload
Destination Filename Filename after upload
Timeout Timeout (seconds)
Conflict Option Handling when file with same name exists

Slack Files Upload

The Slack Files Upload action component can post messages and files to Slack channels specified in component properties using Slack API.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Filename Specify file to send with message
Title Specify file title
Channel Specify Slack channel
Comment Specify message text to send
Timeout Transmission timeout setting
Token Slack OAuth Access Token

Slack Files Upload2

The Slack Files Upload action component can post messages and files to Slack channels specified in component properties using Slack API.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Filename Specify file to send with message
Title Specify file title
Channel Specify Slack channel. Can specify #channels, @people, and channel IDs
Comment Specify message text to send
Timeout Transmission timeout setting
Token Slack User OAuth Token

Slack Post Message

The Slack Post Message action component can post messages to Slack channels specified in component properties using Slack API.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Channel Specify Slack channel
Text Specify message text to send
Timeout Transmission timeout setting
Token OAuth Access Token configured in Slack

Sleep

The Sleep action component allows you to insert a pause between two steps of an action. The entered number is the time (in milliseconds) the action pauses.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Wait Time Specify pause time in milliseconds

SORACOMDataPost

The SORACOM Data Post component can send data to SORACOM Harvest.

Input and Output Payload

Input Payload Description
cv.Payload Data to send. See Harvest documentation for formats available in Harvest
Output Payload Description
cv.Payload Stored in appropriate format based on HTTP response Content-Type header

Properties

Property Description
Content-Type HTTP header Content-Type
Timestamp Data date
Timeout HTTP request response timeout value

Component Variables

Component Variable Description
cv.Payload Response body
cv.StatusCode Request result
cv.Headers Response headers
cv.ContentLength Response length

SORACOMFileUpload

The SORACOM File Upload component can send files to SORACOM Harvest.

Input and Output Payload

Input Payload Description
cv.Payload Data when input property is payload. See Harvest documentation for formats available in Harvest
Output Payload Description
cv.Payload Stored in appropriate format based on HTTP response Content-Type header

Properties

Property Description
Input Payload or Filename
Filename Filename to send when input property is filename
Content-Type HTTP header Content-Type
Harvest Folder Name Destination folder name on Harvest side. Saved to root folder if empty
Harvest Filename Destination filename on Harvest side
Timeout HTTP request response timeout value

Component Variables

Component Variable Description
cv.Payload Response body
cv.StatusCode Request result
cv.Headers Response headers
cv.ContentLength Response length

Sound Effect

You can play sound effects.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Sound Effect Specify sound effect. Select from "warning1", "warning2", "decision3", "decision4"

Sound Play

You can play specified mp3 files.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Properties

Property Description
Filename Specify filename for file input

Split

The Split component splits input payload by newlines if it's a string, or by elements if it's a JSON array, and passes to the next component. The Split component has filter functionality to determine whether to pass split output data to the next component.

You can input conditions as expressions. The following two variables are available in condition expressions for this component:

Variable Name Variable Meaning
Value Output data after split
Index Which output data number it is

Condition examples: - Pass only lines (or elements in JSON array) starting with abc to next component: Value =~ "^abc" - Pass only even-numbered lines: Index % 2 == 0

Properties

Property Description
Condition Expression Write condition expression (regular expressions can also be used)
Encoding Specify character encoding

SQL Server Exec

The SQL Server Exec component can execute SQL statements against SQL Server to update/delete data. Supports SQL Server 2005 and above.

Output Payload

Output Payload Description
cv.Payload Passes LastInsertId or RowsAffected depending on executed SQL statement, in addition to input payload

Properties

Property Description
SQL Specify SQL statement to execute
Bulk Mode Select whether to use bulk mode for SQL statement execution
Bulk Size Specify size when using bulk mode
Host Specify SQL Server host
Port Specify SQL Server port
Username Specify SQL Server username
Password Specify SQL Server password
Database Specify database
Encrypt Specify communication encryption
TrustServerCertificate Select whether to trust SQL Server's server certificate
Root Certificate Specify root certificate to use

SQL Server Query

The SQL Server Query component can execute query statements against SQL Server to retrieve data. Supports SQL Server 2005 and above.

Output Payload

Output Format Description
Array Format Outputs each matching record in array format
Object Format Outputs each matching record in JSON object format

Properties

Property Description
SQL Specify SQL statement to execute
Output Format Select array format or object format
Host Specify SQL Server host
Port Specify SQL Server port
Username Specify SQL Server username
Password Specify SQL Server password
Database Specify database
Encrypt Specify communication encryption
TrustServerCertificate Select whether to trust SQL Server's server certificate
Root Certificate Specify root certificate to use

Statistics

The Statistics component adds statistics (Min, Max, Mean/Average, Median, StandardDeviation, Sum, Mode) to component variables for specified values.

Output Payload/Variables

Output Payload/Variable Description
cv.Payload When capacity=0, previous component's output payload is output as array. When capacity≠0, previous component's output payloads are combined and output as array for capacity count
cv.Statistics.Average Average
cv.Statistics.Count Number of values included in statistics without exclusion
cv.Statistics.Max Maximum value
cv.Statistics.Mean Mean
cv.Statistics.Median Median
cv.Statistics.Min Minimum value
cv.Statistics.Mode Mode
cv.Statistics.StandardDeviation Standard deviation
cv.Statistics.Sum Sum

Properties

Property Description
Capacity Accumulate specified number and output statistics
Value Expression Expression for values to calculate statistics

Template

The Template component generates strings (text) from specified templates. Template syntax follows Go text/template syntax.

Output Payload

Output Payload Description
cv.Payload String (text) generated with variable parts replaced by variable values from template string

Properties

Property Description
Syntax Specify Text or HTML
Template String containing variables to be replaced

Transform

The Transform component processes Pre Mapping and Post Mapping. It is a dedicated component used for transforming input and output data.

Output Payload

Output Payload Description
cv.Payload Outputs the previous component's output payload as-is (passthrough)

Twilio SMS

The Twilio SMS action component can post messages specified in component properties to mobile phone SMS using Twilio service.

Properties

Property Description Example
To Destination phone number. Start with country code (81 for Japan) 8108012345678
From Sender phone number. Start with country code (1 for USA). Cannot send SMS from Japanese numbers
Message Message string to post to SMS "Current temperature is " + cv.Payload + "°C"
Timeout API timeout
Account SID Twilio service Account SID
AuthToken Twilio service AUTHTOKEN

Write To Excel (365)

The WriteToExcel365 component can output data in Excel format to Microsoft365. Using this component requires a Microsoft365 for Business contract and pre-configuration.

Input Payload

Input Payload Example
JSON array payload example [[123, "abc", "xxx"], [456, "def", "yyy"], [789, "hij", "zzz"]]
JSON Object payload example [{"field1": 123, "field2":"abc", "field3":"xxx"}, {"field1": 456, "field2":"def", "field3":"yyy"}, {"field1": 789, "field2":"hij", "field3":"zzz"}]

Properties

Property Description
Filename Specify Excel filename to output
Sheet Name Specify sheet name to output data
Write Mode Specify New File, Overwrite (cells), or Append (rows)
Output Header Select whether to output header when outputting data
Output Field Order Specify which Excel columns to output from step output columns
Start Column Specify first column to output
Start Row Specify first row to output
Authentication Method Modern authentication (OAuth2) or Basic authentication (Password)
Private App For modern authentication, specify when using client secret
Client Id Specify Application ID
Tenant Id Specify Directory (tenant) ID
Instance (Do not change)
Username For basic authentication, specify Microsoft365 Business account
Password For basic authentication, specify Microsoft365 Business account password
OAuth2 Client Secret For modern authentication, specify Client Secret from Azure
OAuth2 Redirect URL For modern authentication, specify Redirect URL from Azure
OAuth2 Scope (Do not change)
OAuth2 Access Token Obtain by pressing Get Token button. Can also be updated with Refresh Token button

Write To Excel (Local)

The WriteToExcelLocal component can output data in Excel format to xlsx files.

Input Payload

Input Payload Example
JSON array payload example [[123, "abc", "xxx"], [456, "def", "yyy"], [789, "hij", "zzz"]]
JSON Object payload example [{"field1": 123, "field2":"abc", "field3":"xxx"}, {"field1": 456, "field2":"def", "field3":"yyy"}, {"field1": 789, "field2":"hij", "field3":"zzz"}]

Properties

Property Description
Filename Specify filename for file output
Sheet Name Specify sheet name to output data
Write Mode Specify New File, Overwrite (cells), or Append (rows)
Output Header Select whether to output header when outputting data
Output Field Order When input payload is JSON Object, list field names to output in desired order, separated by commas
Start Column Specify first column to output
Start Row Specify first row to output

Write To GoogleSheets

The Write To GoogleSheets component can output data to Google Spreadsheets. Using this component requires a Google account and pre-configuration.

Input payload (cv.Payload) accepts array of JSON arrays or array of JSON Objects. Otherwise, converts to string and outputs as 1-row, 1-column spreadsheet.

Input Payload Examples

Properties

Property Description
Specification Method Specify method to output data to spreadsheet: "Folder Path", "Folder ID", or "File ID"
Folder Path Specify folder path in Google Drive. My Drive (root) is target if not specified
Folder ID Specify folder ID in Google Drive. My Drive (root) is target if not specified
Drive Filename Specify Google Spreadsheet filename on Google Drive. Creates new if existing file doesn't exist
File ID Specify specific file ID on Google Drive
Sheet Name Specify sheet name to output data. First sheet is target if not specified
Data Insert Mode Specify how to insert data from "RAW Data" or "User Input (Formulas & Formatting)"
Write Mode Specify New File, Overwrite (cells), or Append (rows)
Output Header Select whether to output header when outputting data
Output Field Order When input payload is JSON Object, list field names to output in desired order, separated by commas
Start Column Specify first column to output
Start Row Specify first row to output
OAuth2 Client ID Specify Client ID from GCP
OAuth2 Client Secret Specify Client Secret from GCP
OAuth2 Redirect URL Specify Redirect URL from GCP
OAuth2 Access Token Obtain by pressing Get Token button

Component Variables

Component Variable Description
cv.FileID File ID
cv.FolderID Parent folder ID of file saved to Google Drive
cv.DriveFilename Google Drive destination filename

Zigbee Light

The Zigbee Light component controls Gravio (Zigbee) Lights that have been paired in advance. It allows turning lights on or off, setting predefined colors (red, yellow, green, blue), and adjusting brightness by percentage. Multiple device IDs can be specified, or all paired lights will be affected if none are configured.

Properties

Property Description
Physical Device ID Specify the device ID of the target light. If empty, all lights will be affected
On Specify whether to turn the light on or off (true/false)
Color Specify the light color. Options: red, yellow, green, blue
Brightness Specify the brightness as a percentage (0-100)