Blueforcer / awtrix3

Custom firmware for the Ulanzi Smart Pixel clock or self made awtrix. Getting started is easy as 1-2-3
https://blueforcer.github.io/awtrix3/
Other
1.25k stars 108 forks source link

[BUG] #591

Closed FrankGiesecke closed 1 month ago

FrankGiesecke commented 1 month ago

Bug report

Describe the bug

I'd like to change the duration an app is displayed. I used Home Assistant to generate a MQTT message to modify the attribute "ATIME", but it doesn't change anithing. The duration is still 7 seconds.

Additional information

To Reproduce

Steps to reproduce the behavior:

domain: mqtt
service: publish
service_data:
  qos: 0
  retain: false
  topic: clock01/settings
  payload: |-
    {
      "ATIME": 3,
      "TIM": True,
      "TFORMAT": "%H:%M:%S",
      "TMODE": 0,
      "DAT": True,
      "SOM": true,
      "HUM": False,
      "TEMP": False,
      "BAT": False
    }
target: {}

Expected behavior

An app should only be displayed for 3 seconds.

Blueforcer commented 1 month ago

Your json is incorrect and cant be parsed correctly. Boolean values must be written in lower case.

FrankGiesecke commented 1 month ago

Your json is incorrect and cant be parsed correctly. Boolean values must be written in lower case.

Oh, I missed this because it was generated. Fixing this did the trick. Thanks very much :)