Display Actions
Display Actions
Action Types
| Action | actionType | Description |
|---|---|---|
| ACTION_DISPLAY_NUMBER | 24 | Display number |
| ACTION_DISPLAY_TEXT | 25 | Display text |
| ACTION_DISPLAY_CLEAR | 26 | Clear screen |
| ACTION_OLED_DISPLAY | 27 | OLED multi-line template display |
Configuration Examples
Method 1: Web Interface Configuration (Recommended)
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:
Edit the rule in the Peripheral Execution Management page
Click the Add Action button
Fill in the action configuration:
Field Value Description Action Type Select Display Number Numeric display Target Peripheral Select tm1637_1Digital tube peripheral Display Value 23.5Number to display 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:
Edit the rule, add an action
Fill in:
- Action Type: Select Display Text
- Target Peripheral: Select
tm1637_1 - Display Text:
PLAY
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:
Edit the rule, add an action
Fill in:
- Action Type: Select Clear Screen
- Target Peripheral: Select
tm1637_1oroled1
Click Save
Example 4: OLED Multi-line Template Display
Scenario: Display environmental monitoring data on OLED
Configuration Steps:
Edit the rule, add an action
Fill in:
- Action Type: Select OLED Display
- Target Peripheral: Select
oled1 - Display Template:
#EnvMonitor Temp: ${dht1.temperature}°C Humidity: ${dht1.humidity}% IP: ${sys.ip}Click Save
💡 Tip:
- First line starting with
#is a centered title${id.field}references sensor cached data$valuereferences the received value at trigger time\nis a newline character
Method 2: JSON Configuration File Import
Compatible Peripherals
| Action | Compatible Peripherals |
|---|---|
| DISPLAY_NUMBER | TM1637(47), LCD(36) |
| DISPLAY_TEXT | TM1637(47), LCD(36) |
| DISPLAY_CLEAR | TM1637(47), LCD(36) |
| OLED_DISPLAY | LCD(36) - OLED only |
Precautions
- TM1637 Limitations: Only 4-digit display; longer content is automatically truncated
- OLED Lines: 128x64 displays approximately 4-6 lines; content beyond that is not shown
- Cache Dependency: Data referenced by
${id.field}must first be collected via SENSOR_READ - Refresh Frequency: Recommended OLED refresh interval ≥ 1 second
