Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter sureflap v3.1.1

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Adapter sureflap v3.1.1

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

      Sure Petcare hat seine neue App ausgerollt. Soweit ich das sehe, verwendet sie weiterhin die neue API, auf die ich mit version 2.x.x umgestellt habe. Bis auf ein paar Timeouts während der Umstellung ist mir bisher nichts aufgefallen und es scheint alles alles wie gehabt zu funktionieren. Falls euch Probleme auffallen, gerner hier oder auf github Bescheid geben.
      English:
      Sure Petcare has rolled out its new app. As far as I can tell, it is still using the new API that I switched to with version 2.x.x. Apart from a few timeouts during the cutover, I haven't noticed any problems so far and everything seems to be working as usual. If you notice any problems, please let me know here or on github.

      S 1 Reply Last reply Reply Quote 0
      • S
        Snop007 @Sickboy78 last edited by

        @sickboy78

        Hallo, kann mir jemand helfen?
        Ich versuche bereits die ganze Zeit mit verschiedenen Versionen den SureFlap Adapter V 2.1.1 zum laufen zu bekommen. Restart loop detection.
        Hier mal ein Auszug:
        2024-06-15 09:32:15.053 - error: sureflap.0 (22350) 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-06-15 09:32:15.054 - error: sureflap.0 (22350) unhandled promise rejection: undefined is not a valid state value
        2024-06-15 09:32:15.059 - error: sureflap.0 (22350) Error: undefined is not a valid state value
        at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/maybeCallback.js:35:17)
        at Sureflap._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5446:49)
        at Sureflap.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5406:21)
        at Sureflap.setSureflapConnectToAdapter (/opt/iobroker/node_modules/iobroker.sureflap/main.js:1045:10)
        at /opt/iobroker/node_modules/iobroker.sureflap/main.js:588:14
        at new Promise (<anonymous>)
        at Sureflap.getDeviceStatusFromData (/opt/iobroker/node_modules/iobroker.sureflap/main.js:575:39)
        at /opt/iobroker/node_modules/iobroker.sureflap/main.js:312:21
        2024-06-15 09:32:15.060 - error: sureflap.0 (22350) undefined is not a valid state value
        2024-06-15 09:32:15.074 - info: sureflap.0 (22350) everything cleaned up
        2024-06-15 09:32:15.075 - info: sureflap.0 (22350) terminating
        2024-06-15 09:32:15.076 - warn: sureflap.0 (22350) Terminated (UNCAUGHT_EXCEPTION): Without reason
        2024-06-15 09:32:15.497 - info: shelly.0 (4075) [authEnabled] 192.168.100.105 (shelly1 / shelly1-F4CFA2E5DB97 / SHSW-1#F4CFA2E5DB97#1): This device is not protected via restricted login (see adapter documentation for details)
        2024-06-15 09:32:15.578 - info: sureflap.0 (22350) terminating
        2024-06-15 09:32:16.137 - error: host.pi instance system.adapter.sureflap.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
        2024-06-15 09:32:16.139 - info: host.pi Restart adapter system.adapter.sureflap.0 because enabled
        2024-06-15 09:32:15.053 - error: sureflap.0 (22350) 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-06-15 09:32:15.054 - error: sureflap.0 (22350) unhandled promise rejection: undefined is not a valid state value
        2024-06-15 09:32:15.059 - error: sureflap.0 (22350) Error: undefined is not a valid state value
        at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/maybeCallback.js:35:17)
        at Sureflap._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5446:49)
        at Sureflap.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5406:21)
        at Sureflap.setSureflapConnectToAdapter (/opt/iobroker/node_modules/iobroker.sureflap/main.js:1045:10)
        at /opt/iobroker/node_modules/iobroker.sureflap/main.js:588:14
        at new Promise (<anonymous>)
        at Sureflap.getDeviceStatusFromData (/opt/iobroker/node_modules/iobroker.sureflap/main.js:575:39)
        at /opt/iobroker/node_modules/iobroker.sureflap/main.js:312:21
        2024-06-15 09:32:15.060 - error: sureflap.0 (22350) undefined is not a valid state value

        Kann mir da einer weiterhelfen? Lieben DANK

        S 1 Reply Last reply Reply Quote 0
        • S
          Snop007 @Snop007 last edited by

          @snop007 said in Test Adapter sureflap v1.0.x GitHub:

          @sickboy78

          Hallo, kann mir jemand helfen?
          Ich versuche bereits die ganze Zeit mit verschiedenen Versionen den SureFlap Adapter V 2.1.1 zum laufen zu bekommen. Restart loop detection.
          Hier mal ein Auszug:
          2024-06-15 09:32:15.053 - error: sureflap.0 (22350) 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-06-15 09:32:15.054 - error: sureflap.0 (22350) unhandled promise rejection: undefined is not a valid state value
          2024-06-15 09:32:15.059 - error: sureflap.0 (22350) Error: undefined is not a valid state value
          at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/maybeCallback.js:35:17)
          at Sureflap._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5446:49)
          at Sureflap.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5406:21)
          at Sureflap.setSureflapConnectToAdapter (/opt/iobroker/node_modules/iobroker.sureflap/main.js:1045:10)
          at /opt/iobroker/node_modules/iobroker.sureflap/main.js:588:14
          at new Promise (<anonymous>)
          at Sureflap.getDeviceStatusFromData (/opt/iobroker/node_modules/iobroker.sureflap/main.js:575:39)
          at /opt/iobroker/node_modules/iobroker.sureflap/main.js:312:21
          2024-06-15 09:32:15.060 - error: sureflap.0 (22350) undefined is not a valid state value
          2024-06-15 09:32:15.074 - info: sureflap.0 (22350) everything cleaned up
          2024-06-15 09:32:15.075 - info: sureflap.0 (22350) terminating
          2024-06-15 09:32:15.076 - warn: sureflap.0 (22350) Terminated (UNCAUGHT_EXCEPTION): Without reason
          2024-06-15 09:32:15.497 - info: shelly.0 (4075) [authEnabled] 192.168.100.105 (shelly1 / shelly1-F4CFA2E5DB97 / SHSW-1#F4CFA2E5DB97#1): This device is not protected via restricted login (see adapter documentation for details)
          2024-06-15 09:32:15.578 - info: sureflap.0 (22350) terminating
          2024-06-15 09:32:16.137 - error: host.pi instance system.adapter.sureflap.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
          2024-06-15 09:32:16.139 - info: host.pi Restart adapter system.adapter.sureflap.0 because enabled
          2024-06-15 09:32:15.053 - error: sureflap.0 (22350) 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-06-15 09:32:15.054 - error: sureflap.0 (22350) unhandled promise rejection: undefined is not a valid state value
          2024-06-15 09:32:15.059 - error: sureflap.0 (22350) Error: undefined is not a valid state value
          at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/maybeCallback.js:35:17)
          at Sureflap._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5446:49)
          at Sureflap.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5406:21)
          at Sureflap.setSureflapConnectToAdapter (/opt/iobroker/node_modules/iobroker.sureflap/main.js:1045:10)
          at /opt/iobroker/node_modules/iobroker.sureflap/main.js:588:14
          at new Promise (<anonymous>)
          at Sureflap.getDeviceStatusFromData (/opt/iobroker/node_modules/iobroker.sureflap/main.js:575:39)
          at /opt/iobroker/node_modules/iobroker.sureflap/main.js:312:21
          2024-06-15 09:32:15.060 - error: sureflap.0 (22350) undefined is not a valid state value

          Kann mir da einer weiterhelfen? Lieben DANK

          Hier noch ein Auszug aus dem Protokoll: sureflap.0
          2024-06-15 13:53:25.050 error undefined is not a valid state value
          sureflap.0
          2024-06-15 13:53:25.049 error Error: undefined is not a valid state value at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/maybeCallback.js:35:17) at Sureflap._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5446:49) at Sureflap.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5406:21) at Sureflap.setSureflapConnectToAdapter (/opt/iobroker/node_modules/iobroker.sureflap/main.js:1045:10) at /opt/iobroker/node_modules/iobroker.sureflap/main.js:588:14 at new Promise (<anonymous>) at Sureflap.getDeviceStatusFromData (/opt/iobroker/node_modules/iobroker.sureflap/main.js:575:39) at /opt/iobroker/node_modules/iobroker.sureflap/main.js:312:21 at runNextTicks (node:internal/process/task_queues:60:5) at process.processImmediate (node:internal/timers:449:9)
          sureflap.0
          2024-06-15 13:53:25.043 error unhandled promise rejection: undefined is not a valid state value
          sureflap.0
          2024-06-15 13:53:25.042 error 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().

          Sickboy78 1 Reply Last reply Reply Quote 0
          • Sickboy78
            Sickboy78 @Snop007 last edited by

            Hi @snop007,
            seltsam, anhand deines Logs sieht es so aus, als wenn deine Katzenklappe keinen lock mode gesetzt hat (undefined).
            Das sollte es eigentlich nicht geben. Ich hab eine zusätzliche Abfrage ergänzt und geb eine Warning aus.
            Bitte probier mal die neueste Version des Adapter im Expertenmodus direkt von github zu installieren:
            https://github.com/Sickboy78/ioBroker.sureflap/
            Und sag bitte Bescheid, ob das dein Problem behebt.

            Sickboy78 1 Reply Last reply Reply Quote 0
            • Sickboy78
              Sickboy78 @Sickboy78 last edited by

              b83d65d4-0f1a-4d68-89cc-ded7b646e7f2-1662578346600-326e9e19-bdc1-40a1-9182-a80145331188-grafik.png
              Version 2.2.0 ist da und ich freue mich, dass ich endlich Zeit gefunden habe, ein Feature umzusetzen, dass schon sehr lange auf meiner Todo Liste stand: Konfiguration der Ausgangssperre über den Adapter. Über den Zustand control.current_curfew kann man nicht nur die aktuelle Ausgangssperre auslesen, sondern auch setzen. Das ganze geschieht im nachfolgenden JSON Format:

              [{"enabled":true|false, "lock_time":"xx:xx", "unlock_time":"xx:xx"}, ...]
              

              Beispiel:

              [{"enabled":true, "lock_time":"19:00", "unlock_time":"20:00"}]
              

              würde eine Ausgangssperre von 19 bis 20 Uhr einrichten und aktivieren.
              Für die Katzenklappe können so bis zu vier Zeiträume definiert werden, die Haustierklappe unterstützt leider nur einen Zeitraum. In der neuen App (und mit der neuen Api) können auch einzelne Zeiträume deaktiviert werden.
              Beispiel:

              [{"enabled":true, "lock_time":"19:00", "unlock_time":"20:00"},
              {"enabled":false, "lock_time":"21:00", "unlock_time":"22:00"}]
              

              würde eine Ausgangssperre von 19 bis 20 Uhr einrichten und aktivieren und eine von 21 bis 22 Uhr einrichten aber deaktivieren.
              Ein- und ausschalten der aktuell konfigurierten Ausgangssperre ist weiterhin möglich, der Zustand heißt jetzt allerdings control.curfew_enabled. Die Kanäle curfew und last_curfew und deren Zustände entfallen und werden durch den bereits erwähnten Zustand control.current_curfew sowie last_enabled_curfew ersetzt, beide im JSON Format.
              Auch die Chronik wurde überarbeitet und steht nun ebenfalls im JSON Format unter history.json.0..x bereit. In der Konfiguration kann eingestellt werden, wie viele Ereignisse angezeigt werden (max. 25).
              Die alte Chronik, die bei einigen zu hoher Last geführt hat, kann nach wie vor in der Konfiguration aktiviert werden, ist aber als veraltet markiert und wird in einer der nächsten Versionen entfernt. Wer also Skripte laufen hat, die auf die Zustände der alten Chronik zugreifen, sollte diese zeitnah auf die neuen JSON Zustände umstellen.
              Außerdem habe ich intern noch einiges refactored und ein wenig aufgeräumt und die Abhängigkeiten aktualisiert.
              Insgesamt sind es diesmal also recht umfangreiche Änderungen und speziell die Ausgangssperre konnte ich nur mit meiner Katzenklappe testen und nicht mit einer Haustierklappe.
              Daher freue ich auf Feedback zu den neuen Features und ob alles funktioniert, wie es soll!

              English:

              Version 2.2.0 is here and I'm pleased that I've finally found time to implement a feature that has been on my to-do list for a very long time: configuring the curfew via the adapter. Using the control.current_curfew state, you can not only read the current curfew, but also set it. For this, the following JSON format is used:

              [{"enabled":true|false, "lock_time":"xx:xx", "unlock_time":"xx:xx"}, ...]
              

              Example:

              [{"enabled":true, "lock_time":"19:00", "unlock_time":"20:00"}]
              

              would set and activate a curfew from 7 pm to 8 pm.
              Up to four timespans can be defined for the cat flap; unfortunately, the pet flap supports only one. In the new app (and with the new Api), individual time periods can also be deactivated.
              Example:

              [{"enabled":true, "lock_time":"19:00", "unlock_time":"20:00"},
              {"enabled":false, "lock_time":"21:00", "unlock_time":"22:00"}]
              

              would set up and enable a curfew from 7pm to 8pm and set up but disable one from 9pm to 10pm.
              It is still possible to switch the currently configured curfew on and off, but the status is now called control.curfew_enabled. The curfew and last_curfew channels and their states have been removed and replaced by the aforementioned control.current_curfew and last_enabled_curfew states, both in JSON format.
              The history has also been revised and is now also available in JSON format at history.json.0..x. The number of shown events can be set in the configuration (max. 25). The old history, which led to a high load for some users, can still be activated in the configuration, but is marked as deprecated and will be removed in one of the next versions. Therefore if you have scripts running that access the states of the old history, you should change them to use the new JSON states as soon as possible.
              I have also refactored and tidied up a few things internally and updated the dependencies. All in all, there are quite extensive changes this time and I was only able to test the curfew with my cat flap and not with a pet flap.
              So I'm looking forward to your feedback on the new features and whether everything works as it should!

              Sickboy78 1 Reply Last reply Reply Quote 1
              • Sickboy78
                Sickboy78 @Sickboy78 last edited by

                Version 2.2.0 ist jetzt stable und in Version 2.2.1 sind folgende neue Datenpunkte hinzugekommen:
                Felaqua.water.fill_percent und last_filled_at
                Surefeed.bowls.0|1.fill_percent, last_filled_at und last_zeroed_at.

                English:

                Version 2.2.0 is now stable and version 2.2.1 added new datapoints:
                Felaqua.water.fill_percent and last_filled_at
                Surefeed.bowls.0|1.fill_percent, last_filled_at and last_zeroed_at.

                Sickboy78 1 Reply Last reply Reply Quote 0
                • Sickboy78
                  Sickboy78 @Sickboy78 last edited by

                  Version 2.2.1 ist jetzt stable und in Version 2.3.0 habe ich die API Aufrufe fehlertoleranter gemacht.
                  Unter anderem wird z.B. abgefangen, wenn einem Gerät ein Haustier zugeordnet ist, das aber bereits aus dem Haushalt gelöscht wurde.

                  English:

                  Version 2.2.1 is now stable and in version 2.3.0 I have made the API calls more error-tolerant:
                  For example, pets that have already been deleted from the household, but are still assigned to a device, do not lead to an error anymore.

                  Sickboy78 1 Reply Last reply Reply Quote 0
                  • Sickboy78
                    Sickboy78 @Sickboy78 last edited by

                    Anscheinend hat Surepetcare etwas an der API geändert, aktuell funktioniert die Positionsangabe der Tiere nicht, also
                    pets.name.inside und pets.name.since.
                    Weiterhin korrekt sind die Angaben unter pets.name.movement.* und können aktuell alternativ verwendet werden.
                    Ich werde mir das anschauen, sobald ich Zeit habe.

                    English:

                    Apparently Surepetcare has changed something in the API and currently the position of the animals does not work, i.e.
                    pets.name.inside and pets.name.since.
                    The status under pets.name.movement.* is still correct and can currently be used as an alternative.
                    I will have a look at this asap.

                    Sickboy78 1 Reply Last reply Reply Quote 0
                    • Sickboy78
                      Sickboy78 @Sickboy78 last edited by Sickboy78

                      Ich hab auf github einen Quickfix eingecheckt, der einen zusätzlichen Aufruf an die API macht, um die Position der Tiere abzufragen. Aber Achtung, Benutzung auf eigene Gefahr, der Fix ist quick und dirty. 😉
                      Ich hoffe Suerpetcare ändert nicht noch mehr vor Weihnachten an der API und ich finde zwischen den Jahren die Zeit das ganze sauber zu implementieren.

                      English:

                      I pushed a quickfix to github with an additional call to the API to query the position of the pets. But beware, use at your own risk, the fix is quick and dirty 😉
                      I hope Suerpetcare doesn't make any more changes to the API before Christmas and I find the time to implement it properly.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Stefi @Sickboy78 last edited by

                        @sickboy78 Ganz lieben Dank für deine Arbeit 😊

                        Ich scheine irgendwie kein Glück mit dem Adapter zu haben 😖
                        Habe es heute endlich mal geschafft alles wieder auf den aktuellen Stand zu bringen und einen weiteren Versuch mit dem Adapter zu starten.

                        Aber leider bekomme ich nach wie vor folgende Fehlermeldung (Version 2.3.2):

                        2024-12-29 20:19:44.929	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
                        2024-12-29 20:19:44.928	info	terminating
                        2024-12-29 20:19:44.926	info	everything cleaned up
                        2024-12-29 20:19:44.916	error	Cannot read properties of undefined (reading 'type')
                        2024-12-29 20:19:44.915	error	TypeError: Cannot read properties of undefined (reading 'type') at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.sureflap/main.js:2795:68) at process.processImmediate (node:internal/timers:485:21)
                        2024-12-29 20:19:44.914	error	uncaught exception: Cannot read properties of undefined (reading 'type')
                        2024-12-29 20:19:44.911	error	Cannot read properties of undefined (reading 'type')
                        2024-12-29 20:19:44.909	error	TypeError: Cannot read properties of undefined (reading 'type') at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.sureflap/main.js:2795:68) at process.processImmediate (node:internal/timers:485:21)
                        2024-12-29 20:19:44.905	error	uncaught exception: Cannot read properties of undefined (reading 'type')
                        2024-12-29 20:19:43.040	info	update loop started
                        

                        Ergebnis von iob info

                        Platform       : docker
                        os             : linux
                        Architecture   : arm64
                        CPUs           : 4
                        Speed          : 1500 MHz
                        Model          : Cortex-A72
                        RAM            : 3.7 GB
                        System uptime  : 06:02:15
                        Node.js        : v20.18.1
                        time           : 1735500303144
                        timeOffset     : -60
                        NPM            : 10.8.2
                        adapters count : 553
                        dockerInformation: [object Object]
                        Disk size      : 112.8 GiB
                        Disk free      : 68.6 GiB
                        

                        Docker Image Version: docker (official image - v9.1.2)

                        Habe es auch mit der Adapter Version v2.3.1 versucht, ebenfalls ohne Erfolg.

                        Ich habe zur Sicherheit den Adapter bzw. die Instanz gelöscht und auch die verwaisten Nodes entfernt. Anschließend Instanz neu installiert, neu verbunden - leider selbes Ergebnis.

                        Habt ihr einen Tipp für mich, was ich noch prüfen/tun kann?

                        Liebe Grüße und besten Dank! 😊

                        Sickboy78 1 Reply Last reply Reply Quote 0
                        • Sickboy78
                          Sickboy78 @Stefi last edited by

                          Hallo @stefi ,
                          kannst du bitte mal die Ausgabe vom Adapter auf debug stellen und mir das gesamte Log vom Start bis zum Fehler kopieren?

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            Stefi @Sickboy78 last edited by

                            @sickboy78 Aber sicher. Hoffe, hab alles erwischt 🙂

                            2024-12-29 22:22:38.755 - info: host.39e083369edf "system.adapter.sureflap.0" enabled
                            2024-12-29 22:22:39.741 - info: host.39e083369edf instance system.adapter.sureflap.0 in version "2.3.2" started with pid 735
                            2024-12-29 22:22:41.633 - debug: sureflap.0 (735) Redis Objects: Use Redis connection: 127.0.0.1:9001
                            2024-12-29 22:22:41.688 - debug: sureflap.0 (735) Objects client ready ... initialize now
                            2024-12-29 22:22:41.691 - debug: sureflap.0 (735) Objects create System PubSub Client
                            2024-12-29 22:22:41.693 - debug: sureflap.0 (735) Objects create User PubSub Client
                            2024-12-29 22:22:41.775 - debug: sureflap.0 (735) Objects client initialize lua scripts
                            2024-12-29 22:22:41.786 - debug: sureflap.0 (735) Objects connected to redis: 127.0.0.1:9001
                            2024-12-29 22:22:41.844 - debug: sureflap.0 (735) Redis States: Use Redis connection: 127.0.0.1:9000
                            2024-12-29 22:22:41.870 - debug: sureflap.0 (735) States create System PubSub Client
                            2024-12-29 22:22:41.872 - debug: sureflap.0 (735) States create User PubSub Client
                            2024-12-29 22:22:41.967 - debug: sureflap.0 (735) States connected to redis: 127.0.0.1:9000
                            2024-12-29 22:22:42.295 - info: sureflap.0 (735) starting. Version 2.3.2 in /opt/iobroker/node_modules/iobroker.sureflap, node: v20.18.1, js-controller: 7.0.6
                            2024-12-29 22:22:42.322 - info: sureflap.0 (735) checking adapter configuration...
                            2024-12-29 22:22:42.323 - info: sureflap.0 (735) API host: app-api.production.surehub.io
                            2024-12-29 22:22:42.324 - info: sureflap.0 (735) sureflap battery voltage full: 6.1
                            2024-12-29 22:22:42.325 - info: sureflap.0 (735) sureflap battery voltage empty: 5.1
                            2024-12-29 22:22:42.325 - info: sureflap.0 (735) surefeed battery voltage full: 6.2
                            2024-12-29 22:22:42.326 - info: sureflap.0 (735) surefeed battery voltage empty: 5.2
                            2024-12-29 22:22:42.326 - info: sureflap.0 (735) felaqua battery voltage full: 6.2
                            2024-12-29 22:22:42.328 - info: sureflap.0 (735) felaqua battery voltage empty: 5.2
                            2024-12-29 22:22:42.330 - info: sureflap.0 (735) history enabled: false
                            2024-12-29 22:22:42.331 - info: sureflap.0 (735) number of history entries: 10
                            2024-12-29 22:22:42.332 - info: sureflap.0 (735) adapter configuration ok
                            2024-12-29 22:22:42.334 - debug: sureflap.0 (735) starting SureFlap Adapter v2.3.2
                            2024-12-29 22:22:42.336 - info: sureflap.0 (735) connecting...
                            2024-12-29 22:22:42.337 - debug: sureflap.0 (735) json: {"email_address":"******","password":"******","device_id":"******"}
                            2024-12-29 22:22:42.337 - debug: sureflap.0 (735) login count: 1
                            2024-12-29 22:22:43.392 - info: sureflap.0 (735) connected
                            2024-12-29 22:22:43.393 - info: sureflap.0 (735) starting update loop...
                            2024-12-29 22:22:43.396 - info: sureflap.0 (735) update loop started
                            2024-12-29 22:22:47.370 - debug: sureflap.0 (735) creating device hierarchy...
                            2024-12-29 22:22:47.373 - debug: sureflap.0 (735) searching and removing of obsolete objects
                            2024-12-29 22:22:47.381 - debug: sureflap.0 (735) deleting event history from adapter
                            2024-12-29 22:22:47.440 - debug: sureflap.0 (735) searching and removing of obsolete objects complete
                            2024-12-29 22:22:47.441 - debug: sureflap.0 (735) searching and removing of deleted and renamed pets
                            2024-12-29 22:22:47.581 - debug: sureflap.0 (735) deleted or renamed pet sureflap.0.Wir.Flur.Abwasserkanal.assigned_pets.Katze1 (Pet 'Katze1' ('429176')) found. trying to delete (state)
                            2024-12-29 22:22:47.582 - debug: sureflap.0 (735) deleted or renamed pet sureflap.0.Wir.Flur.Abwasserkanal.assigned_pets.Katze2 (Pet 'Katze2' ('429175')) found. trying to delete (state)
                            2024-12-29 22:22:47.725 - debug: sureflap.0 (735) searching and removing of deleted and renamed pets complete
                            2024-12-29 22:22:47.896 - error: sureflap.0 (735) uncaught exception: Cannot read properties of undefined (reading 'type')
                            2024-12-29 22:22:47.898 - error: sureflap.0 (735) TypeError: Cannot read properties of undefined (reading 'type')
                            at Immediate. (/opt/iobroker/node_modules/iobroker.sureflap/main.js:2845:68)
                            at process.processImmediate (node:internal/timers:485:21)
                            2024-12-29 22:22:47.898 - error: sureflap.0 (735) Cannot read properties of undefined (reading 'type')
                            2024-12-29 22:22:47.906 - info: sureflap.0 (735) everything cleaned up
                            2024-12-29 22:22:47.907 - info: sureflap.0 (735) terminating
                            2024-12-29 22:22:47.909 - warn: sureflap.0 (735) Terminated (UNCAUGHT_EXCEPTION): Without reason
                            2024-12-29 22:22:47.911 - error: sureflap.0 (735) uncaught exception: Cannot read properties of undefined (reading 'type')
                            2024-12-29 22:22:47.912 - error: sureflap.0 (735) TypeError: Cannot read properties of undefined (reading 'type')
                            at Immediate. (/opt/iobroker/node_modules/iobroker.sureflap/main.js:2845:68)
                            at process.processImmediate (node:internal/timers:485:21)
                            2024-12-29 22:22:47.913 - error: sureflap.0 (735) Cannot read properties of undefined (reading 'type')
                            2024-12-29 22:22:48.411 - info: sureflap.0 (735) terminating
                            2024-12-29 22:22:48.513 - error: host.39e083369edf instance system.adapter.sureflap.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                            2024-12-29 22:22:48.514 - info: host.39e083369edf Restart adapter system.adapter.sureflap.0 because enabled
                            2024-12-29 22:23:04.710 - info: host.39e083369edf "system.adapter.sureflap.0" disabled
                            
                            Sickboy78 1 Reply Last reply Reply Quote 0
                            • Sickboy78
                              Sickboy78 @Stefi last edited by

                              Hallo @stefi,
                              installier mal bitte den aktuellen Stand von Github, habe gerade was eingecheckt.
                              Du hast einen oder zwei Futterautomaten?

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                Stefi @Sickboy78 last edited by

                                @sickboy78 Oh man, jetzt wo du es erwähnst. Ich habe zwei Futterautomaten, die ich heute außer Betrieb genommen habe. Kam die Fehlermeldung aus dieser Ecke? Mit deinem Update hat es auf jeden Fall geklappt 👏

                                Sickboy78 1 Reply Last reply Reply Quote 0
                                • Sickboy78
                                  Sickboy78 @Stefi last edited by

                                  Hallo @stefi ,

                                  ja normalerweise hat ein Futterautomat in seinen Daten ein Object 'bowls' das wiederum einen 'type' hat (1 oder 2 Futterschüsseln). In deinem Fall, wahrscheinlich weil du die Futterautomaten außer Betrieb genommen hast, gab es das object 'bowls' nicht und beim Zugriff auf 'bowls.type' hat es dann gekracht. Hab jetzt eine zusätzliche Prüfung eingebaut, ob das Object 'bowls' auch existiert.
                                  Guten Rutsch!

                                  Gruß
                                  Sebastian

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    Stefi @Sickboy78 last edited by

                                    @sickboy78 Super, danke für die Anpassung 🙂

                                    Sickboy78 1 Reply Last reply Reply Quote 0
                                    • Sickboy78
                                      Sickboy78 @Stefi last edited by

                                      Version 3.0.0 ist da und enthält hauptsächlich Änderungen unter der Haube. Zwar habe ich mit Version 2.x auf die neue URL umgestellt, aber teilweise noch Schnittstellen der alten API/App verwendet. Leider sind nach und nach einige Daten wie z.B. die Position der Tiere aus den alten Schnittstellen entfernt worden, so dass es zu Funktionseinschränkungen im Adapter kam und ich regelmäßig nachbessern musste.
                                      Um das zukünftig zu vermeiden, habe ich den kompletten API-Code überarbeitet und verwende nur noch Schnittstellen, die auch von der neuen App verwendet werden, in der Hoffnung, dass sich diese nicht so schnell ändern.
                                      Ansonsten habe ich, wie von ioBroker empfohlen, die Admin-Seite auf jsonConfig umgestellt.
                                      Und ein neuer Datenpunkt offline_devices ist hinzugekommen, der alle aktuell nicht mit dem Hub verbundenen Geräte auflistet.

                                      English:

                                      Version 3.0.0 is here and mainly contains changes under the hood. Although I switched to the new API-URL with version 2.x, I still used some of the interfaces of the old API/app. Unfortunately, some data, such as the position of the pets, was gradually removed from the old interfaces, which led to functional restrictions in the adapter and I had to make regular adaptions.
                                      To avoid this situation in future, I have refactored the entire API code to use only interfaces that are also used by the new App, in the hope that these will not change so quickly.
                                      Otherwise, as recommended by ioBroker, I have changed the admin page to jsonConfig.
                                      And a new data point offline_devices has been added, which lists all devices not currently connected to the hub.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        Matt77CHE last edited by Matt77CHE

                                        Habe gerade festgestellt, dass zB die Werte ob die Klappe nach Zeitplan gesperrt ist, nicht richtig angezeigt werden (Klappe ist gesperrt, Objekt-ID steht auf "open") - in der App wird gesperrt angezeigt und die Klappe ist auch gesperrt.

                                        War auf 3.0.0; bin runter auf 2.3.3, das Selbe Ergebnis, auch mit der 2.3.2.
                                        Ob die Katzen draussen oder drinnen sind, wird richtig angezeigt und aktualisiert....

                                        Edit: Ich habe den Objektbaum gelöscht, nun habe ich noch eine warn im Log, dass die Seriennummer der Klappe nicht gefunden werde.... (wiederholend)

                                        Sickboy78 1 Reply Last reply Reply Quote 0
                                        • Sickboy78
                                          Sickboy78 @Matt77CHE last edited by

                                          Hallo @matt77che ,
                                          was meinst du mit Objekt-ID?
                                          Der control.lockmode Datenpunkt ändert sich nicht, wenn die Ausgangssperre aktiv ist, da er unabhängig von der Ausgangssperre gesetzt werden kann. Wohingegen der Datenpunkt curfew_active auf true wechseln sollte, wenn eine Ausgangssperre aktiv ist.
                                          Kannst du mir bitte die Fehlermeldung zur Seriennummer aus dem log kopieren? Danke!

                                          M 2 Replies Last reply Reply Quote 0
                                          • M
                                            Matt77CHE @Sickboy78 last edited by

                                            @sickboy78 sagte in Test Adapter sureflap v1.0.x GitHub:

                                            Hallo @matt77che ,
                                            was meinst du mit Objekt-ID?
                                            Der control.lockmode Datenpunkt ändert sich nicht, wenn die Ausgangssperre aktiv ist, da er unabhängig von der Ausgangssperre gesetzt werden kann. Wohingegen der Datenpunkt curfew_active auf true wechseln sollte, wenn eine Ausgangssperre aktiv ist.
                                            Kannst du mir bitte die Fehlermeldung zur Seriennummer aus dem log kopieren? Danke!

                                            Da war es wohl zu späht für mich gestern Abend.... ich habe mich auf den falschen Datenpunkt eingeschossen - sorry.

                                            Hier das Log bezüglich der Seriennummer:

                                            
                                            sureflap.0
                                            2025-01-26 08:03:30.101	warn	no serial number found for 'Buero_neu.
                                            
                                            sureflap.0
                                            2025-01-26 08:03:28.159	info	Got 3 pets
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.985	info	Got 2 devices
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.819	info	update loop started
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.819	info	starting update loop...
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.818	info	Got 1 household
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.663	info	connected
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.108	info	connecting...
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.107	info	adapter configuration ok
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.107	info	number of history entries: 10
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.107	info	history enabled: false
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.107	info	felaqua battery voltage empty: 5.2
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.107	info	felaqua battery voltage full: 6.2
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.106	info	surefeed battery voltage empty: 5.2
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.106	info	surefeed battery voltage full: 6.2
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.106	info	sureflap battery voltage empty: 5.1
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.106	info	sureflap battery voltage full: 6.1
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.106	info	API host: app-api.production.surehub.io
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.106	info	checking adapter configuration...
                                            
                                            sureflap.0
                                            2025-01-26 08:03:27.058	info	starting. Version 3.0.0 in /opt/iobroker/node_modules/iobroker.sureflap, node: v20.18.1, js-controller: 7.0.6
                                            
                                            Sickboy78 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            908
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            16
                                            146
                                            14031
                                            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