Files
awtrix-light/docs/mqtt.md
Stephan Mühl c51c769cb5 v0.42
- App transistion is now inacitve if there is only 1 app
- Adds bargraph to notify and customapps
- Every awtrix now gets a unique id for AP, MQTT and HA
- Adds firmware as HA sensor
- Adds wifi strength as HA sensor
- Adds ram usage as HA sensor
- Adds version as HA sensor
- Adds uptime as ISO 8601 as HA sensot
- HA discorvery now gets correct device classes
- fixes bug where date formats are not saved

closes #24
closes #23
closes #21
2023-03-29 00:24:38 +02:00

1.8 KiB

MQTT Commands

Dismiss Notification

Dismiss a notification which was set to "hold"=true.

Topic Payload
[PREFIX]/notify/dismiss empty payload

Switch Apps

Switch to next or previous app.

Topic Payload
[PREFIX]/nextapp empty payload
[PREFIX]/previousapp empty payload

Switch to Specific App

Switch to a specific app by name.

Topic Payload
[PREFIX]/switch {"name":"time"}

Built-in app names are:

  • time
  • date
  • temp
  • hum
  • bat

For custom apps, use the name you set in the topic. For example, if [PREFIX]/custom/test is your topic, then test is the name.

Change Settings

Change various settings related to the app display.

Topic Payload
[PREFIX]/settings JSON properties

Each property is optional; you do not need to send all.

Key Type Description Value Range Default
apptime number Determines the duration an app is displayed in milliseconds. Any positive integer value. 7000
transition number The time the transition to the next app takes in milliseconds. Any positive integer value. 500
textcolor string A color in hexadecimal format. Any valid 6-digit hexadecimal color value, e.g. "#FF0000" for red. N/A
fps number Determines the frame rate at which the matrix is updated. Any positive integer value. 23
brightness number Determines the brightness of the matrix. An integer between 0 and 255. N/A
autobrightness boolean Determines if automatic brightness control is active. true or false. N/A
autotransition boolean Determines if automatic switching to the next app is active. true or false. N/A