Skip to content

Rule Scripts ​

Groovy scripts for transforming device data between custom and standard formats.

Use Cases ​

  • Convert binary protocol data to platform JSON format
  • Filter, calculate, or enrich reported data
  • Transform platform commands to device-compatible format

Example ​

groovy
def decode(rawData) {
    def result = [:]
    result.temperature = rawData[0] * 0.1
    result.humidity = rawData[1]
    return result
}

Debug ​

Use the online debugger to test scripts with simulated data before deploying.

FastBee | fastbee.cn