Skip to content

Display Actions ​

Action Types ​

ActionactionTypeDescription
ACTION_DISPLAY_NUMBER24Display number
ACTION_DISPLAY_TEXT25Display text
ACTION_DISPLAY_CLEAR26Clear screen
ACTION_OLED_DISPLAY27OLED multi-line template display

Configuration Examples ​

The peripheral execution page is shown below. When configuring display actions, verify the target display peripheral, display content template, and refresh frequency.

When troubleshooting display actions, handle layer by layer according to the pipeline diagram: check if the data source exists, whether the template can be parsed, whether the target display peripheral is online, and whether the refresh frequency is too high.

Example 1: Display Number (TM1637 Digital Tube) ​

Scenario: Display temperature value 23.5 on the digital tube

Configuration Steps:

  1. Edit the rule in the Peripheral Execution Management page

  2. Click the Add Action button

  3. Fill in the action configuration:

    FieldValueDescription
    Action TypeSelect Display NumberNumeric display
    Target PeripheralSelect tm1637_1Digital tube peripheral
    Display Value23.5Number to display
  4. Click the Save button

💡 Tip: Supported formats: 1234 (integer), 12.34 (decimal), 12:34 (clock)


Example 2: Display Text ​

Scenario: Display "PLAY" on the digital tube

Configuration Steps:

  1. Edit the rule, add an action

  2. Fill in:

    • Action Type: Select Display Text
    • Target Peripheral: Select tm1637_1
    • Display Text: PLAY
  3. Click Save

💡 Tip: TM1637 only supports a limited character set; longer content is automatically truncated


Example 3: Clear Screen ​

Scenario: Clear digital tube or OLED display content

Configuration Steps:

  1. Edit the rule, add an action

  2. Fill in:

    • Action Type: Select Clear Screen
    • Target Peripheral: Select tm1637_1 or oled1
  3. Click Save


Example 4: OLED Multi-line Template Display ​

Scenario: Display environmental monitoring data on OLED

Configuration Steps:

  1. Edit the rule, add an action

  2. Fill in:

    • Action Type: Select OLED Display
    • Target Peripheral: Select oled1
    • Display Template:
    #EnvMonitor
    Temp: ${dht1.temperature}°C
    Humidity: ${dht1.humidity}%
    IP: ${sys.ip}
  3. Click Save

💡 Tip:

  • First line starting with # is a centered title
  • ${id.field} references sensor cached data
  • $value references the received value at trigger time
  • \n is a newline character

Method 2: JSON Configuration File Import ​

Compatible Peripherals ​

ActionCompatible Peripherals
DISPLAY_NUMBERTM1637(47), LCD(36)
DISPLAY_TEXTTM1637(47), LCD(36)
DISPLAY_CLEARTM1637(47), LCD(36)
OLED_DISPLAYLCD(36) - OLED only

Precautions ​

  1. TM1637 Limitations: Only 4-digit display; longer content is automatically truncated
  2. OLED Lines: 128x64 displays approximately 4-6 lines; content beyond that is not shown
  3. Cache Dependency: Data referenced by ${id.field} must first be collected via SENSOR_READ
  4. Refresh Frequency: Recommended OLED refresh interval ≥ 1 second

FastBee | fastbee.cn