+
+
+ Action Name |
+ Description |
+ Parameter Type |
+ Parameter Name |
+ Parameter Description |
+
+
+
+ blinkIndicator |
+ Blink an indicator LED. |
+ int |
+ indicatorId |
+ 1 for top indicator, 2 for center indicator or 3 for bottom indicator. |
+
+
+ int[] |
+ rgb |
+ Provide an array with exactly 3 values for red, green and blue (in the range 0-255). |
+
+
+ int |
+ blinkTimeInMs |
+ Provide the blink time in milliseconds. |
+
+
+ fadeIndicator |
+ Fade an indicator LED in and out. |
+ int |
+ indicatorId |
+ 1 for top indicator, 2 for center indicator or 3 for bottom indicator. |
+
+
+ int[] |
+ rgb |
+ Provide an array with exactly 3 values for red, green and blue (in the range 0-255). |
+
+
+ int |
+ fadeTimeInMs |
+ Provide the fade time in milliseconds. |
+
+
+ activateIndicator |
+ Activate an indicator LED. |
+ int |
+ indicatorId |
+ 1 for top indicator, 2 for center indicator or 3 for bottom indicator. |
+
+
+ int[] |
+ rgb |
+ Provide an array with exactly 3 values for red, green and blue (in the range 0-255). |
+
+
+ deactivateIndicator |
+ Deactivate an indicator LED. |
+ int |
+ indicatorId |
+ 1 for top indicator, 2 for center indicator or 3 for bottom indicator. |
+
+
+ reboot |
+ Reboot the device |
+ |
+ |
+ |
+
+
+ sleep |
+ Make the device sleep for a number of seconds. |
+ int |
+ seconds |
+ Device will wake up after the specified number of seconds. Sleep can only be interrupted by a press of the select button. |
+
+
+ upgrade |
+ Upgrade the device if a firmware update is available. |
+ |
+ |
+ |
+
+
+ playSound |
+ Play a sound file saved on the device. |
+ String |
+ melody |
+ The sound file name saved in the clocks MELODIES folder (without the file extension). |
+
+
+ playRtttl |
+ Play a rtttl sound. |
+ String |
+ rtttl |
+ The rtttl string to play. |
+
+
+ showNotification |
+ Show a notification. |
+ String |
+ message |
+ The message to show. |
+
+
+ String |
+ icon |
+ The name of the icon saved on the device that is shown with the message. |
+
+
+ showCustomNotification |
+ Show a notification with maximal customization options. |
+ Map<String, Object> |
+ appParams |
+ Map that holds any parameter that is available for an Awtrix App as shown in the App Channels section of the documentation. Use the channel ids as keys. |
+
+
+ boolean |
+ hold |
+ Whether the notification should stay on the screen until the user presses the select button. |
+
+
+ boolean |
+ wakeUp |
+ Whether the notification should wake up the device if the display is currently switched off. |
+
+
+ boolean |
+ stack |
+ Whether the notification should be stacked on top of the previous notification or replace the currently active notification. |
+
+
+ String |
+ rtttl |
+ Play the specified rtttl sound when displaying the notification. |
+
+
+ String |
+ rtttl |
+ Play the specified rtttl ringtone when displaying the notification. Set to null for no sound or when the sound parameter is set. |
+
+
+ String |
+ sound |
+ Play the specified sound file when displaying the notification. Set to null for no sound or when the rtttl parameter is set. |
+
+
+ boolean |
+ loopSound |
+ Whether the sound should be played in a loop until the notification is dismissed. |
+
+
+
+## Full Example
+
+### Things
+
+```java
+Bridge mqtt:broker:myBroker [ host="localhost", port=1883 ]
+Bridge mqtt:awtrix-clock:myBroker:myAwtrix "Living Room Display" (mqtt:broker:myBroker) [ basetopic="awtrix", appLockTimeout=10, lowBatteryThreshold=25 ] {
+ Thing awtrix-app clock "Clock App" [ appname="clock", useButtons=true ]
+ Thing awtrix-app weather "Weather App" [ appname="weather" ]
+ Thing awtrix-app calendar "Calendar App" [ appname="calendar" ]
+ Thing awtrix-app custom "Custom App" [ appname="custom" ]
+}
+```
+
+### Items
+
+```java
+// Bridge items (Living Room Display)
+Group gAwtrix "Living Room Awtrix Display"