Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. Neuer Adapter - Android TV & Fire TV Benachrichtigungen

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Neuer Adapter - Android TV & Fire TV Benachrichtigungen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Neuschwansteini
      Neuschwansteini last edited by

      @stolly82

      seit V2.3.0, Host Docker V9.0.1, alles latest.

      2024-01-09 11:03:38.210  - info: host.iobroker "system.adapter.notificationforandroidtv.0" enabled
      2024-01-09 11:03:38.304  - info: host.iobroker instance system.adapter.notificationforandroidtv.0 started with pid 3609
      2024-01-09 11:03:39.597  - info: notificationforandroidtv.0 (3609) starting. Version 2.3.0 (non-npm: DNAngelX/ioBroker.notificationforandroidtv) in /opt/iobroker/node_modules/iobroker.notificationforandroidtv, node: v18.19.0, js-controller: 5.0.17
      2024-01-09 11:03:39.607  - error: notificationforandroidtv.0 (3609) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
      2024-01-09 11:03:39.611  - error: notificationforandroidtv.0 (3609) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
      2024-01-09 11:03:39.612  - error: notificationforandroidtv.0 (3609) unhandled promise rejection: Cannot read properties of undefined (reading 'error')
      2024-01-09 11:03:39.612  - error: notificationforandroidtv.0 (3609) TypeError: Cannot read properties of undefined (reading 'error')
          at Notificationforandroidtv.onReady (/opt/iobroker/node_modules/iobroker.notificationforandroidtv/main.js:338:22)
          at Notificationforandroidtv.emit (node:events:517:28)
          at Notificationforandroidtv._callReadyHandler (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:9118:18)
          at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:9097:26
      2024-01-09 11:03:39.612  - error: notificationforandroidtv.0 (3609) Cannot read properties of undefined (reading 'error')
      2024-01-09 11:03:39.608  - error: notificationforandroidtv.0 (3609) unhandled promise rejection: Cannot read properties of undefined (reading 'error')
      2024-01-09 11:03:39.610  - error: notificationforandroidtv.0 (3609) TypeError: Cannot read properties of undefined (reading 'error')
          at Notificationforandroidtv.onReady (/opt/iobroker/node_modules/iobroker.notificationforandroidtv/main.js:338:22)
          at Notificationforandroidtv.emit (node:events:517:28)
          at Notificationforandroidtv._callReadyHandler (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:9118:18)
          at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:9097:26
      2024-01-09 11:03:39.610  - error: notificationforandroidtv.0 (3609) Cannot read properties of undefined (reading 'error')
      2024-01-09 11:03:39.611  - info: notificationforandroidtv.0 (3609) registerNotification not processed because States database not connected
      2024-01-09 11:03:39.620  - info: notificationforandroidtv.0 (3609) terminating
      2024-01-09 11:03:39.621  - warn: notificationforandroidtv.0 (3609) Terminated (UNCAUGHT_EXCEPTION): Without reason
      
      stolly82 1 Reply Last reply Reply Quote 0
      • stolly82
        stolly82 @Neuschwansteini last edited by

        @ilovegym

        Hmm, merkwürdig. Ich bekomme den im dev System und live nicht.

        Ich schaue noch mal

        Neuschwansteini 1 Reply Last reply Reply Quote 0
        • Neuschwansteini
          Neuschwansteini @stolly82 last edited by Neuschwansteini

          @stolly82

          hab den Fehler gefunden, ich musste die Konfig neu anlegen, deshalb auch der Fehler im Log mit unexpected json ...

          Ich habe in der Konfig den Namen mit Leerzeichen versehen, also Fire TV Keller, da tritt der Fehler auf, wenn ich als Name FireTVKeller eintrage, geht alles...

          🙂

          Edit:
          Zu frueh gefreut, hab alle 9 auf einmal angelegt, gleicher Fehler... ((

          Edit2:
          Also, ein FireTV angelegt, gespeichert, Adapter laeuft.
          Naechster Firetv in der Konfig angelegt, gespeichert, Adapter laeuft... so gehts.. beim neunten isser dann wieder abgestuerzt, hab ihn geloescht und nochmal angelegt (also den neunten FireTV), seitdem gehts...

          Denke, wenn du in der Konfig-Json suchst, biste richtig.. vielleicht kam das ja auch erst mit Admin 6.13.15..

          stolly82 1 Reply Last reply Reply Quote 1
          • wendy2702
            wendy2702 last edited by wendy2702

            Hi,

            Geht mit dem Adapter und Notification for Android auch ein Live Stream einer Kamera?

            L 1 Reply Last reply Reply Quote 0
            • L
              Lucky_ESA Developer Most Active @wendy2702 last edited by

              @wendy2702 sagte in Neuer Adapter - Android TV & Fire TV Benachrichtigungen:

              Hi,

              Geht mit dem Adapter und Notification for Android auch ein Live Stream einer Kamera?

              Dazu müsste noch die APP PiPup implementiert werden.

              Gruß//Lucky

              wendy2702 1 Reply Last reply Reply Quote 0
              • wendy2702
                wendy2702 @Lucky_ESA last edited by

                @lucky_esa Ja,

                Mit Pipup und Blockly mache ich es aktuell.

                Dachte es würde hiermit auch schon gehen.

                L 1 Reply Last reply Reply Quote 0
                • L
                  Lucky_ESA Developer Most Active @wendy2702 last edited by

                  @wendy2702 sagte in Neuer Adapter - Android TV & Fire TV Benachrichtigungen:

                  @lucky_esa Ja,

                  Mit Pipup und Blockly mache ich es aktuell.

                  Dachte es würde hiermit auch schon gehen.

                  Ein Adapter wäre immer die bessere Lösung. Vielleicht implementiert @stolly82 PiPup noch.

                  Gruß//Lucky

                  stolly82 1 Reply Last reply Reply Quote 0
                  • stolly82
                    stolly82 @Lucky_ESA last edited by

                    @lucky_esa

                    HMMMM, gar nicht mal so doof die Idee!

                    Schon mal, da die Configs ja schon alle da sind, sollte das nicht so schwer sein 😉

                    Ich schaue mal

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      Lucky_ESA Developer Most Active @stolly82 last edited by

                      @stolly82 sagte in Neuer Adapter - Android TV & Fire TV Benachrichtigungen:

                      @lucky_esa

                      HMMMM, gar nicht mal so doof die Idee!

                      Schon mal, da die Configs ja schon alle da sind, sollte das nicht so schwer sein 😉

                      Ich schaue mal

                      Hier wäre die API
                      readme.md

                      Gruß//Lucky

                      stolly82 1 Reply Last reply Reply Quote 0
                      • stolly82
                        stolly82 @Neuschwansteini last edited by

                        @ilovegym

                        Objekt payload hatte ich nicht geprüft, wenn "leer" dann war es kein JSON und somit ist der Adapter abgestürzt.

                        Ist behoben, bekomme den über das DEV Portal nur nicht in add to latest

                        mcm1957 1 Reply Last reply Reply Quote 1
                        • stolly82
                          stolly82 @Lucky_ESA last edited by

                          @lucky_esa
                          Ich muss das App erstmal auf die FireTV's drauf bekommen.

                          Grusel 😖

                          So, the tutorial:
                          Installing PiPup
                          Download ADB drivers (Platform-Tools) for the device you’re using from here 138. On windows you just unzip the file, open terminal there and everything should work. People using linux - you know what to do.
                          Enable ADB and connect to the TV: follow this 166, it’s way better than what I can write.
                          Download Pipup from here 156 (app-debug.apk file). Put it in the directory with ADB drivers
                          In the terminal you have open run: adb sideload app-debug.apk (you must already be connected to TV, so don’t forget adb connect <IP> from the last step)
                          Grant needed permission with: adb shell appops set nl.rogro82.pipup SYSTEM_ALERT_WINDOW allow
                          Open the app on your TV, you can close it pretty much immediately, it just needs to run in the background
                          
                          1 Reply Last reply Reply Quote 0
                          • BananaJoe
                            BananaJoe Most Active last edited by

                            Kann PiPup denn RSTP-Streams? Das wäre der Kamera Standard. Oder "nur" Video?
                            Das Issue dazu ist noch offen, https://github.com/rogro82/PiPup/issues/8
                            Ich habe nur einen gefunden der das Video vorher über WebRTC umwandelt/bereitstellt.

                            mvanhelmont created this issue in rogro82/PiPup

                            closed Please add support for RTSP #8

                            BananaJoe 1 Reply Last reply Reply Quote 0
                            • BananaJoe
                              BananaJoe Most Active @BananaJoe last edited by BananaJoe

                              @bananajoe Nachtrag: Direkt das Bild von der Kamera zu holen klappt mit dem Adapter nicht (was aber wohl an der App auf Android liegen wird), ich hole es erst auf den ioBroker und stelle es dort bereit. Die App hat wohl nicht die gedult auf das Bild zu warten (Reolink Kameras)

                              1 Reply Last reply Reply Quote 0
                              • mcm1957
                                mcm1957 @stolly82 last edited by

                                @stolly82 said in Neuer Adapter - Android TV & Fire TV Benachrichtigungen:

                                @ilovegym

                                Objekt payload hatte ich nicht geprüft, wenn "leer" dann war es kein JSON und somit ist der Adapter abgestürzt.

                                Ist behoben, bekomme den über das DEV Portal nur nicht in add to latest

                                Du brauchst nur EINMAL ein "add to latest" auslösen. Dein PR existiert als https://github.com/ioBroker/ioBroker.repositories/pull/3189.

                                Das Review ist noch pending.

                                Neue Releases brauchen für das latest Repository KEINEN neuerlichen Aufruf via dev Protal. Sobald ein Adapter für Latest freigeschaltet ist wird er im latest Repositpory automatisch aktualisisert. Nur fürs stable Repo musst du später einen Reqeust per Release stellen (dazu gibts dann aber ggF Erinnerungen)

                                DNAngelX created this issue in ioBroker/ioBroker.repositories

                                closed Add notificationforandroidtv to latest #3189

                                1 Reply Last reply Reply Quote 1
                                • wendy2702
                                  wendy2702 last edited by

                                  @BananaJoe Ich nutze den http Stream aus Motioneye. RTSP direkt geht wohl nicht weil die auch im Browser nicht mehr gehen.

                                  BananaJoe 1 Reply Last reply Reply Quote 0
                                  • BananaJoe
                                    BananaJoe Most Active @wendy2702 last edited by

                                    @wendy2702 könnte ich bei mir auch machen (aus BlueIris). Hab dann aber irgendwann entschieden das ein Bild pro Sekunde auch reicht um zusehen wer da steht.

                                    Der Stream war immer eine ganz schöne Last ... und es hat lange gedauert bis das System erkannt hat das auf der anderen Seite gar keiner mehr zu hört und wieder runter geschaltet hat.

                                    1 Reply Last reply Reply Quote 0
                                    • matthsc
                                      matthsc Developer @stolly82 last edited by

                                      @stolly82 said in Neuer Adapter - Android TV & Fire TV Benachrichtigungen:

                                      Erledigt!

                                      Changelog

                                      2.3.0 (2024-01-08)

                                      • (DNAngel) extended payload possibility as message object

                                      Danke dir, funktioniert einwandfrei!

                                      1 Reply Last reply Reply Quote 1
                                      • stolly82
                                        stolly82 last edited by

                                        Ich hatte mich gestern dran gesetzt und PiPup eingearbeitet.

                                        El Question:

                                        hat schon mal jemand PiPup auf dem FireTV zum laufen gebracht?

                                        Ich habe es auf zwei FireTV 4k max installiert, das war es dann aber auch schon 😉

                                        App startet, ich kann via Postman Daten senden und bekomme 'ne 200 und die Response der Daten zurück, die ich gesendet habe.

                                        PopupProps(duration=30, position=TopLeft, backgroundColor=#ffffff, title=Your awesome title, titleSize=20.0, titleColor=#0066cc, message=What ever you want to say... do it here..., messageSize=14.0, messageColor=#000000, media=Image(uri=https://i.ebayimg.com/images/g/ZOkAAOSwgyZkfGxF/s-l1600.jpg, width=480))

                                        Auf dem FireTV passiert ziemlich genau,.... nichts.

                                        Dachte dann,..

                                        On Android TV (8.0+), when sideloading, you will need to set the permission for SYSTEM_ALERT_WINDOW manually (using adb) as there is no interface on Android TV to do this.
                                        
                                        To give the application the required permission to draw overlays you will need to run:
                                        
                                        adb shell appops set nl.rogro82.pipup SYSTEM_ALERT_WINDOW allow
                                        Integrating
                                        

                                        würden helfen, aber nix.

                                        Wenn es schon mal jemand zum laufen gebacht hat, was fehlt bei mir?

                                        Muss adb shell appops set nl.rogro82.pipup SYSTEM_ALERT_WINDOW allow irgend eine response im Terminal ergeben?

                                        MyWay:
                                        Ich haben mir atvTools geladen, habe die PiPup apk geladen und auf den FireTV übertragen, installiert und geöffnet.

                                        In der Befehlskonsole von atvTools dann "adb shell appops set nl.rogro82.pipup SYSTEM_ALERT_WINDOW allow" eingegeben.

                                        Meines Verständnisses nach, hätte sich das popup öffnen müssen.

                                        Liebe Grüsse

                                        1 Reply Last reply Reply Quote 0
                                        • stolly82
                                          stolly82 last edited by stolly82

                                          Ich habe PiPup jetzt komplett implementiert, auch wieder mit dem "payload" request etc.

                                          Laut response klappt es, wie gesagt, bei mir kommt auf dem TV nichts an.

                                          Ich mache selten Fehler im Software Development, deshalb würde ich die 3.0.1 dann direkt hochladen zum review.

                                          wendy2702 L 2 Replies Last reply Reply Quote 0
                                          • wendy2702
                                            wendy2702 @stolly82 last edited by

                                            @stolly82 ich kann das morgen mal testen wenn ich zu Hause bin.

                                            Mein Pipup funktioniert ja auf nem Philips Android TV.

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            814
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            19
                                            79
                                            5800
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo