Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Tester
  4. Test Adapter Awtrix-Light (Awtrix 3)

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    13
    1
    141

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    4.3k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.3k

Test Adapter Awtrix-Light (Awtrix 3)

Scheduled Pinned Locked Moved Tester
2.2k Posts 165 Posters 1.3m Views 142 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DJMarc75D DJMarc75

    @jb_sullivan sagte in Test Adapter Awtrix-Light:

    Bei mir sind alle Screens gleich aufgebaut

    Also steuerst Du quasi per MQTT oder Blockly an ?

    JB_SullivanJ Offline
    JB_SullivanJ Offline
    JB_Sullivan
    wrote on last edited by
    #941

    @djmarc75

    Per Blockly - siehe hier -> https://forum.iobroker.net/topic/65571/test-adapter-awtrix-light/869?_=1690122878578

    ioBroker (since 2018) auf Intel Core i3-5005U NUC und Windwos10 Pro

    1 Reply Last reply
    0
    • haus-automatisierungH haus-automatisierung

      @lemuba Alias anlegen, fertig

      L Offline
      L Offline
      lemuba
      wrote on last edited by lemuba
      #942

      @haus-automatisierung Geile Kiste - wusste nicht, dass die Alias Funktion, welche ich noch nicht genutzt hatte, auch on the Fly konvertieren kann.
      Aber habs nun hinbekommen und läuft tiptop...:

      IMB_sEkDEw.GIF

      Einheiten kWh, aktuelle Tages-PV-Erzeugung habe ich z.B. aus Platzgründen weggelassen - aber ist ja im Symbol mit enthalten.
      Auch klasse die Funktion im Adapter mit der der werteabhängigen Textfarbe und Symbol - konnte ich prima für Netzbezug (Rot), bzw, Einspeisung (Grün) verwenden.

      1 Reply Last reply
      0
      • JB_SullivanJ JB_Sullivan

        Was kann die Ursache dafür sein, das manche Screens, für die definitiv APP Daten vorhanden sind, gar nicht angezeigt, bzw. auch in der falschen Reihenfolge wiedergegeben werden?

        Bei mir sind alle Screens gleich aufgebaut - Erst der Name, dann der passende Wert dazu. Wie gesagt, in den Objekten der selbst angelegten DP`s stehen Werte drin. Da wo nichts drin steht, wird auch kein Screen im ULANZI angezeigt, was ja auch so OK und gewollt ist.

        Somit ist immer:

        • NAME
        • WERT

        ( https://photos.app.goo.gl/uHbSndYpVPtrf9y27 )

        Angezeigt wird es aber bei einigen so, obwohl die Sortierreihenfolge richtig ist.

        • NAME1
        • WERT1
        • NAME2
        • NAME3
        • WERT2
        • WERT3

        Oder es werden wie gesagt, ganze Screens weg gelassen und nur der Name ohne Wert, oder nur ein Wert ohne Name angezeigt.

        99792a09-70e6-47f7-acb2-0a1e80e4895b-image.png

        22f83c15-3432-44f9-baad-94932b041d4e-image.png

        Auch habe ich solche Fehlermeldungen zwischendrin:

        2023-07-23 16:12:18.840  - debug: javascript.0 (1336) Update C:/iobroker/SkriptBackup/Aktiv/Matrix_ULANZI.js on disk
        2023-07-23 16:12:18.847  - info: javascript.0 (1336) Stop script script.js.Aktiv.Matrix_ULANZI
        2023-07-23 16:12:18.848  - debug: javascript.0 (1336) File C:/iobroker/SkriptBackup/Aktiv/Matrix_ULANZI.js change
        2023-07-23 16:12:18.853  - debug: javascript.0 (1336) File C:/iobroker/SkriptBackup/Aktiv/Matrix_ULANZI.js change
        2023-07-23 16:12:18.888  - info: javascript.0 (1336) Start javascript script.js.Aktiv.Matrix_ULANZI
        2023-07-23 16:12:18.897  - info: javascript.0 (1336) script.js.Aktiv.Matrix_ULANZI: registered 70 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
        
        
        awtrix-light.0
        11268	2023-07-23 16:30:32.815	warn	(custom?name=pvertragvalue) Unable to update custom app "pvertragvalue": AxiosError: timeout of 3000ms exceeded
        
        awtrix-light.0
        11268	2023-07-23 16:30:12.762	warn	(custom?name=pvertragvalue) Unable to update custom app "pvertragvalue": AxiosError: maxContentLength size of -1 exceeded
        
        2023-07-23 16:08:42.449  - info: awtrix-light.0 (10572) error ECONNABORTED from /api/custom?name=pvertragvalue: timeout of 3000ms exceeded
        2023-07-23 16:08:42.450  - warn: awtrix-light.0 (10572) (custom?name=pvertragvalue) Unable to update custom app "pvertragvalue": AxiosError: timeout of 3000ms exceeded
        
        Pepsi1183P Offline
        Pepsi1183P Offline
        Pepsi1183
        wrote on last edited by Pepsi1183
        #943

        @jb_sullivan sagte in Test Adapter Awtrix-Light:

        > 2023-07-23 16:08:42.449  - info: awtrix-light.0 (10572) error ECONNABORTED from /api/custom?name=pvertragvalue: timeout of 3000ms exceeded
        

        Davon habe ich auch immer mal wieder Meldungen. Ich verstehe das so, dass der API Call kein Respond bekommt, also evtl. kurze WLAN aussetzer....
        Das wird es zumindest bei mir sein, da die Meldungen nur (oder vermehrt) auf Instanz 1 auftauchen.
        Instanz 0 läuft flüssiger. Und die Uhr von Instanz 1 steht an einem Ort wo sich 2 WLAN APs schneiden, somit kann ich mir vorstellen, das hier bei mir der wechsel zwischen den netzen nicht 100%ig sauber funktioniert.

        @DJMarc75 : Jetzt übrigend mit der aktuellsten Beta ;)

        1 Reply Last reply
        0
        • haus-automatisierungH haus-automatisierung
          Aktuelle Test Version 1.0.1
          Veröffentlichungsdatum 28.04.2024
          Github Link https://github.com/klein0r/ioBroker.awtrix-light

          Der Adapter ist nun im Stable- und Beta-Repository - bitte NIE über GitHub installieren, sonst gibt es hier keinen Support...

          YouTube-Video zum ioBroker-Adapter

          Wichtig

          • Admin-Adapter in Version 6.6.0 erforderlich!
          • Erst die Dokumentation lesen, dann fragen: https://github.com/klein0r/ioBroker.awtrix-light/blob/master/docs/en/README.md
          • Die Awtrix-Light-Doku ist ebenfalls sehr aufschlussreich: https://blueforcer.github.io/awtrix-light/#/README

          Hier geht es um den Adapter. Nicht um Paket-Tracking, nicht um den verbauten Akku oder ob einem das Gerät gefällt oder nicht. Daher bitte beim Thema bleiben - ich bekomme für jeden Kommentar eine Notification (davon habe ich eh schon zu viele). Gerne einen weiteren Thread öffnen und über die Möglichkeiten, eigene Umsetzungen usw. diskutieren. Danke!

          Warum?

          Da ich ja schon seit einigen Jahren den Adapter für die LaMetric Time entwickle, möchte ich auch die relativ neue TC001 von Ulanzi (Affiliate-Link - AliExpress) in den ioBroker bringen. Damit das klappt, muss das Gerät mit einer alternativen Firmware geflasht werden: Awtrix Light. Das geht über den USB-Port aber super einfach.

          Bisher habe ich schon einige Datenpunkte / Funktionen in den ioBroker gebracht. Wenn Du gar nicht weiß worum es geht, habe ich hier ein Video veröffentlicht: https://www.youtube.com/watch?v=Wr8fHErJI0o

          Die Frage ist jetzt natürlich, wieviel Zeit ich in den Adapter investiere und wie groß das Interesse ist. Ich persönlich finde das Gerät richtig interessant und werde die für mich nötigen Funktionen integrieren.

          Der Thread hier dient (wie immer) neben GitHub für das Bug-Tracking, Feature-Wünsche und Support bei Fragen.

          N Offline
          N Offline
          Njdfg
          wrote on last edited by Njdfg
          #944

          @haus-automatisierung

          Hallo Matthias,

          ich benutze deine aktuelle Beta 0.51 und bin happy 😊.
          Aktuell habe ich ein Problem was (ich denke mal was an mir liegt) das Speichern angeht. In den von dir Programmierten Adaptern (Trash... / Awtrix) sind die Speicher - Buttons rot umrandet und ausgegraut. In den anderen Anwendungen geht es.. Was mache ich falsch?

          Red_Buttons.jpg

          Wünsche für Awtrix:

          • Es gibt ja das Feld wenn größer oder kleiner, damit kann man ja das angezeigte Symbol ändern. Ich würde auch den angezeigten Text dann gerne mit ändern. Als wenn z.B. der Regenadapter von Homematic 0 meldet soll ein Sonnen - Symbol und der Text es ist draußen trocken und bei dem Wert 1 ein Regen - Symbol und der Text es regnet angezeigt werden. Ist das machbar?

          Weiter so....

          PS: Deine Masterkurse IOBroker und RedNote sind erste Sahne, kann ich nur jedem empfehlen.

          N 1 Reply Last reply
          3
          • N Njdfg

            @haus-automatisierung

            Hallo Matthias,

            ich benutze deine aktuelle Beta 0.51 und bin happy 😊.
            Aktuell habe ich ein Problem was (ich denke mal was an mir liegt) das Speichern angeht. In den von dir Programmierten Adaptern (Trash... / Awtrix) sind die Speicher - Buttons rot umrandet und ausgegraut. In den anderen Anwendungen geht es.. Was mache ich falsch?

            Red_Buttons.jpg

            Wünsche für Awtrix:

            • Es gibt ja das Feld wenn größer oder kleiner, damit kann man ja das angezeigte Symbol ändern. Ich würde auch den angezeigten Text dann gerne mit ändern. Als wenn z.B. der Regenadapter von Homematic 0 meldet soll ein Sonnen - Symbol und der Text es ist draußen trocken und bei dem Wert 1 ein Regen - Symbol und der Text es regnet angezeigt werden. Ist das machbar?

            Weiter so....

            PS: Deine Masterkurse IOBroker und RedNote sind erste Sahne, kann ich nur jedem empfehlen.

            N Offline
            N Offline
            Njdfg
            wrote on last edited by Njdfg
            #945

            @njdfg
            Komisch jetzt geht es wieder, vorher definitiv nicht (denke ein kleiner Bug).
            Egal ob ich Benutzerdefinierte Adapter geändert, gelöscht oder nur eine Checkbox geändert hatte - die Speicherbuttons waren nicht aktiv..

            Werde es beobachten.....

            Nachtrag:
            Beim hinzufügen kann man speichern, beim editieren bleiben die Buttons inaktiv.

            Thomas BraunT 1 Reply Last reply
            0
            • N Njdfg

              @njdfg
              Komisch jetzt geht es wieder, vorher definitiv nicht (denke ein kleiner Bug).
              Egal ob ich Benutzerdefinierte Adapter geändert, gelöscht oder nur eine Checkbox geändert hatte - die Speicherbuttons waren nicht aktiv..

              Werde es beobachten.....

              Nachtrag:
              Beim hinzufügen kann man speichern, beim editieren bleiben die Buttons inaktiv.

              Thomas BraunT Online
              Thomas BraunT Online
              Thomas Braun
              Most Active
              wrote on last edited by
              #946

              @njdfg sagte in Test Adapter Awtrix-Light:

              beim editieren bleiben die Buttons inaktiv.

              Dann ist der Text nicht plausibel/zugelassen.

              Linux-Werkzeugkasten:
              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
              NodeJS Fixer Skript:
              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

              JB_SullivanJ 1 Reply Last reply
              1
              • Thomas BraunT Thomas Braun

                @njdfg sagte in Test Adapter Awtrix-Light:

                beim editieren bleiben die Buttons inaktiv.

                Dann ist der Text nicht plausibel/zugelassen.

                JB_SullivanJ Offline
                JB_SullivanJ Offline
                JB_Sullivan
                wrote on last edited by JB_Sullivan
                #947

                @thomas-braun sagte in Test Adapter Awtrix-Light:

                @njdfg sagte in Test Adapter Awtrix-Light:

                beim editieren bleiben die Buttons inaktiv.

                Dann ist der Text nicht plausibel/zugelassen.

                Nein würde ich nicht sagen - ich habe ein ähnliches/gleiches Problem. Es reicht, wenn man die Instanz Einstellungen öffnet. Ab diesem Moment sind die Buttons unten ausgegraut und haben einen roten Rahmen.

                Wartet man 2-3 Minuten ohne jedwede Aktion, sind die roten Linien weg und die Buttons bedienbar.

                Mir persönlich kommt es so vor, als ob der Adapter eine Art Datenbank nutzt, welche im Hintergrund eingelesen wird. Erst wenn dieses einlesen fertig ist kann man wieder Aktionen ausführen.

                Ähnliches passiert, wenn man einen App Namen anlegt. Hier kann man zusehen, wie im 1,5 Sek. Takt Buchstabe für Buchstabe in die Eingabezeile rein geschrieben werden. In der Zeit sind die Buttons ebenfalls ausgegraut und haben einen roten Rahmen.

                ioBroker (since 2018) auf Intel Core i3-5005U NUC und Windwos10 Pro

                N haus-automatisierungH 2 Replies Last reply
                0
                • JB_SullivanJ Offline
                  JB_SullivanJ Offline
                  JB_Sullivan
                  wrote on last edited by
                  #948

                  Da bei mir der Adapter nicht so ganz rund läuft (Darstellung der Screen Reihenfolge, Nicht Aktualisierung von Werten, API Abbrüche usw.) hier mal ein Debug LOG als ZIP (Dateiendung .txt enfernen). Vielleicht kann @haus-automatisierung da ggf. das eine oder andere Problem dran erkennen.

                  awtrix_debug_log.zip.txt

                  ioBroker (since 2018) auf Intel Core i3-5005U NUC und Windwos10 Pro

                  1 Reply Last reply
                  0
                  • JB_SullivanJ JB_Sullivan

                    @thomas-braun sagte in Test Adapter Awtrix-Light:

                    @njdfg sagte in Test Adapter Awtrix-Light:

                    beim editieren bleiben die Buttons inaktiv.

                    Dann ist der Text nicht plausibel/zugelassen.

                    Nein würde ich nicht sagen - ich habe ein ähnliches/gleiches Problem. Es reicht, wenn man die Instanz Einstellungen öffnet. Ab diesem Moment sind die Buttons unten ausgegraut und haben einen roten Rahmen.

                    Wartet man 2-3 Minuten ohne jedwede Aktion, sind die roten Linien weg und die Buttons bedienbar.

                    Mir persönlich kommt es so vor, als ob der Adapter eine Art Datenbank nutzt, welche im Hintergrund eingelesen wird. Erst wenn dieses einlesen fertig ist kann man wieder Aktionen ausführen.

                    Ähnliches passiert, wenn man einen App Namen anlegt. Hier kann man zusehen, wie im 1,5 Sek. Takt Buchstabe für Buchstabe in die Eingabezeile rein geschrieben werden. In der Zeit sind die Buttons ebenfalls ausgegraut und haben einen roten Rahmen.

                    N Offline
                    N Offline
                    Njdfg
                    wrote on last edited by
                    #949

                    @jb_sullivan

                    Ja ist genau so wie de es auch Beschreibst in den Editiermodus gehen (Buttons bereits rot und ausgegraut) auch wenn man z.B. nur die Anzeigezeit mit den Pfeiltasten verändert (was wohl keine Fehleingabe wäre :-)), dann bleiben diese rot. Allerdings legt man einen neuen "Adapter" an sind die Speicherbuttons aktiv.

                    1 Reply Last reply
                    0
                    • JB_SullivanJ Offline
                      JB_SullivanJ Offline
                      JB_Sullivan
                      wrote on last edited by
                      #950

                      Kurz eine andere Frage - wo sind die verwendeten Fonts von Awtrix hinterlegt? Ist das eine Sache die aus der Firmware kommt?

                      Ein Besucher machte mich bei meiner Awtrix auf einen "Design Fail" aufmerksam. Das A würde aussehen wie ein R, was bei der Sensorbezeichnung AUSSEN zwangsläufig dazu führt das man RUSSEN daraus liest.

                      Hier müsste nur ein Pixel entfernt werden, das es aussieht wie ein "richtiges" A. Ist vermutlich ein Issue was an den Awtrix Entwickler gehen sollte - oder?

                      ioBroker (since 2018) auf Intel Core i3-5005U NUC und Windwos10 Pro

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        Michaelnorge
                        wrote on last edited by Michaelnorge
                        #951

                        Ich bekomme es nicht hin, diese Forumseite zu durchsuchen, und alles durch zu lesen dauert mir zu lange - daher frage ich hier direkt:

                        Ich betreibe die Awtrix mit der 0.7.1 und dem aktuellen Adapter.
                        Wo sind denn plötzlich die Augen hin, der der Awtrix anzeigen kann?
                        Wenn auf meinem Tablet an der Wand was wichtiges passiert hab ich die mir immer anzeigen lassen, aber jetzt kommt diese Fehlermeldung:

                        awtrix-light.0
                        2023-07-26 15:01:24.528	warn	(switch) Unable to execute action: AxiosError: Request failed with status code 500
                        
                        awtrix-light.0
                        2023-07-26 15:01:24.527	warn	received 500 response from /api/switch with content: "FAILED"
                        

                        Wenn das an der aktuellen Firmware liegt, kann mir jemand sagen wie ich die downgraden kann, ohne den Awtrix am Rechner anschließen zu müssen?

                        Finde HIER keine Infos hierzu.

                        Danke schon mal :-)

                        –--------------------------------------------------------------------------------------

                        • Smart mit: Rasp 4B / ioBroker / Conbee2 / Trådfri / Xiaomi / HUE / Logitech Harmony / Aqara / Easee Wallbox / Hyundai Ioniq / Alexa / Google Home / Fully Kiosk / VIS
                        1 Reply Last reply
                        0
                        • M Online
                          M Online
                          MCU
                          wrote on last edited by
                          #952

                          @michaelnorge Das mit den Augen liegt an der neuen Firmware.
                          3b6d7a8a-68af-4b03-a75d-0f3d5872c5b8-image.png
                          Zurück kommt man
                          https://github.com/Blueforcer/awtrix-light/releases/tag/0.70
                          ulanzi_firmware.bin auswählen und herunterladen.

                          Geräte-IP/update -> Firmware-Datei auswählen -> Update Firmware

                          NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
                          Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

                          M 1 Reply Last reply
                          0
                          • M MCU

                            @michaelnorge Das mit den Augen liegt an der neuen Firmware.
                            3b6d7a8a-68af-4b03-a75d-0f3d5872c5b8-image.png
                            Zurück kommt man
                            https://github.com/Blueforcer/awtrix-light/releases/tag/0.70
                            ulanzi_firmware.bin auswählen und herunterladen.

                            Geräte-IP/update -> Firmware-Datei auswählen -> Update Firmware

                            M Offline
                            M Offline
                            Michaelnorge
                            wrote on last edited by
                            #953

                            @mcu Genial, hat geklappt! 1000 Dank :-))))

                            –--------------------------------------------------------------------------------------

                            • Smart mit: Rasp 4B / ioBroker / Conbee2 / Trådfri / Xiaomi / HUE / Logitech Harmony / Aqara / Easee Wallbox / Hyundai Ioniq / Alexa / Google Home / Fully Kiosk / VIS
                            K 1 Reply Last reply
                            0
                            • JB_SullivanJ Offline
                              JB_SullivanJ Offline
                              JB_Sullivan
                              wrote on last edited by
                              #954

                              Uiiii - mit der 0.71 Firmware kann man auch Ringtone Dateien abspielen. Wird das der Adapter ggf. auch unterstützen?

                              ioBroker (since 2018) auf Intel Core i3-5005U NUC und Windwos10 Pro

                              haus-automatisierungH 1 Reply Last reply
                              0
                              • BravestarrB Offline
                                BravestarrB Offline
                                Bravestarr
                                wrote on last edited by
                                #955

                                Hi!

                                Now that I can show any information from ioBroker I fell in love with this adapter. This works great for "apps" But what is the idea to display "notifications" with e.g. "Spotify"? I have the current playing song in spotify in spotify-premium.0.player.trackName But when I use your adapter in "App mode" this will always be displayed. But I need this only when the value in spotify-premium.0.player.trackName changes and only one time. What is the best way to do this with your adapter? I saw "blocky" in your documentation. Is this the way to go?

                                DJMarc75D 1 Reply Last reply
                                0
                                • BravestarrB Bravestarr

                                  Hi!

                                  Now that I can show any information from ioBroker I fell in love with this adapter. This works great for "apps" But what is the idea to display "notifications" with e.g. "Spotify"? I have the current playing song in spotify in spotify-premium.0.player.trackName But when I use your adapter in "App mode" this will always be displayed. But I need this only when the value in spotify-premium.0.player.trackName changes and only one time. What is the best way to do this with your adapter? I saw "blocky" in your documentation. Is this the way to go?

                                  DJMarc75D Offline
                                  DJMarc75D Offline
                                  DJMarc75
                                  wrote on last edited by DJMarc75
                                  #956

                                  @bravestarr sagte in Test Adapter Awtrix-Light:

                                  I saw "blocky" in your documentation. Is this the way to go?

                                  Yes

                                  example:

                                  Screenshot 2023-07-26 190704.png

                                  Lehrling seit 1975 !!!
                                  Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
                                  https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

                                  C 1 Reply Last reply
                                  0
                                  • DJMarc75D DJMarc75

                                    @bravestarr sagte in Test Adapter Awtrix-Light:

                                    I saw "blocky" in your documentation. Is this the way to go?

                                    Yes

                                    example:

                                    Screenshot 2023-07-26 190704.png

                                    C Offline
                                    C Offline
                                    Czarno13
                                    wrote on last edited by Czarno13
                                    #957

                                    @djmarc75
                                    Aber es geht auch mit App:

                                    Screenshot_2023-07-26 19.12.23_k3LIYP.jpg

                                    wird nur dann angezeigt, wenn Spotify läuft

                                    BravestarrB 1 Reply Last reply
                                    0
                                    • C Czarno13

                                      @djmarc75
                                      Aber es geht auch mit App:

                                      Screenshot_2023-07-26 19.12.23_k3LIYP.jpg

                                      wird nur dann angezeigt, wenn Spotify läuft

                                      BravestarrB Offline
                                      BravestarrB Offline
                                      Bravestarr
                                      wrote on last edited by Bravestarr
                                      #958

                                      @czarno13 No the app is always active and does not disapear or appear when a song is played.

                                      What works is this:

                                      // Create a state change listener for spotify-premium.0.player.trackName
                                      on({ id: 'spotify-premium.0.player.trackName', change: 'ne', ack: true }, function (obj) {
                                          if (!obj || !obj.state || obj.state.val === null) {
                                              console.warn('Invalid trackName state object or null value.');
                                              return;
                                          }
                                      
                                          const newTrackName = obj.state.val;
                                          const notificationText = `Now playing: ${newTrackName}`;
                                      
                                          if (newTrackName.trim() === '') {
                                              console.warn('Track name is empty.');
                                              return;
                                          }
                                      
                                          // Send the notification to Awtrix display
                                          sendTo('awtrix-light', 'notification', { text: notificationText, repeat: 1, duration: 5, stack: true, wakeup: true }, (res) => {
                                              if (res && res.error) {
                                                  console.error(res.error);
                                              }
                                          });
                                      });
                                      
                                      C M 2 Replies Last reply
                                      1
                                      • BravestarrB Bravestarr

                                        @czarno13 No the app is always active and does not disapear or appear when a song is played.

                                        What works is this:

                                        // Create a state change listener for spotify-premium.0.player.trackName
                                        on({ id: 'spotify-premium.0.player.trackName', change: 'ne', ack: true }, function (obj) {
                                            if (!obj || !obj.state || obj.state.val === null) {
                                                console.warn('Invalid trackName state object or null value.');
                                                return;
                                            }
                                        
                                            const newTrackName = obj.state.val;
                                            const notificationText = `Now playing: ${newTrackName}`;
                                        
                                            if (newTrackName.trim() === '') {
                                                console.warn('Track name is empty.');
                                                return;
                                            }
                                        
                                            // Send the notification to Awtrix display
                                            sendTo('awtrix-light', 'notification', { text: notificationText, repeat: 1, duration: 5, stack: true, wakeup: true }, (res) => {
                                                if (res && res.error) {
                                                    console.error(res.error);
                                                }
                                            });
                                        });
                                        
                                        C Offline
                                        C Offline
                                        Czarno13
                                        wrote on last edited by Czarno13
                                        #959

                                        @bravestarr
                                        no, for me it works exactly like that, it only displays something when spotify is playing

                                        BravestarrB 1 Reply Last reply
                                        0
                                        • BravestarrB Bravestarr

                                          @czarno13 No the app is always active and does not disapear or appear when a song is played.

                                          What works is this:

                                          // Create a state change listener for spotify-premium.0.player.trackName
                                          on({ id: 'spotify-premium.0.player.trackName', change: 'ne', ack: true }, function (obj) {
                                              if (!obj || !obj.state || obj.state.val === null) {
                                                  console.warn('Invalid trackName state object or null value.');
                                                  return;
                                              }
                                          
                                              const newTrackName = obj.state.val;
                                              const notificationText = `Now playing: ${newTrackName}`;
                                          
                                              if (newTrackName.trim() === '') {
                                                  console.warn('Track name is empty.');
                                                  return;
                                              }
                                          
                                              // Send the notification to Awtrix display
                                              sendTo('awtrix-light', 'notification', { text: notificationText, repeat: 1, duration: 5, stack: true, wakeup: true }, (res) => {
                                                  if (res && res.error) {
                                                      console.error(res.error);
                                                  }
                                              });
                                          });
                                          
                                          M Online
                                          M Online
                                          MCU
                                          wrote on last edited by
                                          #960

                                          @bravestarr Please set all of Code in Code Tags. Thanks.

                                          NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
                                          Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

                                          BravestarrB 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          562

                                          Online

                                          32.7k

                                          Users

                                          82.4k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe