Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Yet another HomeKit adapter

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    Yet another HomeKit adapter

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

      @loverz Vielen Dank für den Input.

      Der Lösungsansatz ist sicher funktional, sorgt aber dafür, dass ich hier 2 Stellen berücksichtigen muss.
      Am liebsten wäre mir ja eine Script Lösung direkt im YAHKA Adapter. Aber vermutlich geht das nicht.

      Werde dann übergangsweise ersmal Deine Blocky Lösung adaptieren.

      V 1 Reply Last reply Reply Quote 0
      • V
        Videonisse @w00dst0ck last edited by Videonisse

        @w00dst0ck sagte in Yet another HomeKit adapter:

        Am liebsten wäre mir ja eine Script Lösung direkt im YAHKA Adapter. Aber vermutlich geht das nicht.

        I'm not sure Yahka is the right place to solve this. If I understand what you need to achieve is it a "virtual" data point where the state/value is based on values from other data points (Off = 0; Heat = 1; Cool = 2).

        In the long-term, you maybe also want to use this virtual DP in other ioBroker adapters, like for history and visualisation?

        If yes, then it would probably be better if it was available as an Object in ioBroker. But I'm not sure if it can be realized based on an Alias with a script calculating what you want, or if it has to be stored in a User object.

        I see the similar needs to calculate for example a second colour space for lights and have this available as a virtual data point/object for ioBroker Adapters to use when they don't support the native colour space used by the light device (RGB <-> HUE). To do this calculation in each Adapter is not effective.

        w00dst0ck 1 Reply Last reply Reply Quote 0
        • w00dst0ck
          w00dst0ck @Videonisse last edited by w00dst0ck

          @videonisse @loverz

          I've found a solution to solve it in the YAHKA adapter.

          I add it as a comment to my initial post.

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

            @videonisse @loverz

            I've found a solution to solve it in the YAHKA adapter.

            if (value) {
                if (value.length == 2) {
                    if (value[0] == value[1]) {return 0;}
                    if (value[0] > value[1]) {return 1;}
                    if (value[0] < value[1]) {return 2;}
                }
            }
            
            L 1 Reply Last reply Reply Quote 0
            • L
              loverz @w00dst0ck last edited by

              @w00dst0ck Kannst du uns kurz erklären was genau diese Zeilen machen?

              w00dst0ck 1 Reply Last reply Reply Quote 0
              • w00dst0ck
                w00dst0ck @loverz last edited by

                @loverz Sehr gerne.

                In meinem Fall geht es darum, dass ich für HomeMaticIP Thermostate keinen direkten Datenpunkt für CurrentHeatingCoolingState habe, der anzeigt, ob gerade geheizt wird oder nicht.

                Daher greife ich auf die zur Verfügung stehenden Datenpunkte setPointTemperature & valveActualTemperature zu, vergleiche diese per ConversionScript und gebe abhängig von der Differenz einen gültigen Wert an Homekit aus. Gültige Werte habe ich hier gefunden.

                Wenn man per iobroker.Multistate mehrere Daten holt, werden diese als Array in "value" gespeichert und können so ausgewertet werden.

                927efb64-631f-44bc-9db0-31d72909c176-image.png

                L 1 Reply Last reply Reply Quote 1
                • L
                  loverz @w00dst0ck last edited by

                  @w00dst0ck sagte in Yet another HomeKit adapter:

                  setPointTemperature & valveActualTemperature

                  Also sind die beiden in/out-Werte setPointTemperature & valveActualTemperature
                  Und dein Script vergleicht beide miteinander?

                  w00dst0ck 1 Reply Last reply Reply Quote 0
                  • w00dst0ck
                    w00dst0ck @loverz last edited by

                    @loverz eigentlich ganz simpel..

                    Wenn die eingestellte Temperatur höher als die am Ventil gemessene Temperatur ist, wird geheizt.

                    Wenn die eingestellte Temperatur niedriger als die am Ventil gemessene ist, wird abgekühlt.

                    V 1 Reply Last reply Reply Quote 0
                    • V
                      Videonisse @w00dst0ck last edited by

                      @w00dst0ck Nice work!

                      So value[0] is the first value in the array and value[1] is the second? (I'm not a developer...)

                      w00dst0ck 1 Reply Last reply Reply Quote 0
                      • w00dst0ck
                        w00dst0ck @Videonisse last edited by

                        @videonisse Yes that's true. If you add more values at Read, then it continues like this.
                        value[0], value[1], value[2]...

                        1 Reply Last reply Reply Quote 1
                        • L
                          loverz last edited by loverz

                          ich habe meinen Raspberry Pi ins LAN5 (Gastnetz) meiner Fritzbox gepackt. Meine iPhones sind ebenfalls alle im Gast-WLAN. Die Geräte können untereinander kommunizieren (Client-Isolation Aus)

                          Nun ist es aber so, dass YAHKA bzw. Die Geräte in meiner Home-App nach dem Neustart des YAHKA Adapter nur kurz funktionieren und dann gehen sämtliche Geräte auf "keine Antwort" oder "aktualisieren".

                          Nach dem Neustart (oft nur für einige Sekunden) sind alle Geräte und Stati verfügbar. Auch steuern kann ich alles, aber wieso geht das nach kurzer Zeit nicht mehr?

                          Weiß da jemand mehr?
                          Was für ein Service wird denn da von Apple verwendet? Bein YAHKA Start steht etwas von "Ciao" im log?

                          yahka.1	2021-04-17 17:11:14.877	info	(1764) publishing bridge Yahka-1 on 0.0.0.0 using ciao
                          

                          Woran könnte es denn liegen?
                          Vor der Einbindung ins Gast-Netz hat alles funktioniert.

                          Wir benötigen das mit dem Gastnetz aber leider so, da wir bei 2 Haushalten 1 Internet teilen und wir dabei im Gastnetz sind...

                          L 1 Reply Last reply Reply Quote 0
                          • L
                            loverz @loverz last edited by

                            Keiner eine Idee?

                            Asgothian V 2 Replies Last reply Reply Quote 0
                            • Asgothian
                              Asgothian Developer @loverz last edited by

                              @loverz
                              Eine Idee woran es liegen kann schon, aber keinen echten Lösungsvorschlag.

                              A.

                              1 Reply Last reply Reply Quote 0
                              • V
                                Videonisse @loverz last edited by

                                @loverz Welchen Yahka Version hast du? Es kann sein das es ein Problem mit dem Bonjour dienst "Ciao" ist. Probiere dann mit Yahka v0.13.0 oder früher.

                                Oder vieleicht kann man auch "useLegacyAdvertiser option" in Yahka v.0.13.1 aktivieren, aber ich weiß leider nicht wie.

                                Hap-nodejs Issue "Accessories deregistered from Bonjour about 1-2min after launching": https://github.com/homebridge/HAP-NodeJS/issues/856

                                gkaindl created this issue in homebridge/HAP-NodeJS

                                closed ciao: Accessories deregistered from Bonjour about 1-2min after launching #856

                                L 1 Reply Last reply Reply Quote 0
                                • L
                                  loverz @Videonisse last edited by

                                  @videonisse guter Hinweis!

                                  Mit Version 0.13 ging es noch nicht, 0.12 auch nicht, aber mit 0.11 dann geht es wieder.

                                  Wie gesagt: Das Problem trat erst auf, als ich meine Geräte ins Fritz!Box Gast-Netzwerk umgezogen habe. Zuvor im normalen Fritz!Box Netzwerk haben alle Versionen tadellos funktioniert.

                                  Tausend Dank!

                                  1 Reply Last reply Reply Quote 1
                                  • D
                                    DarkDevil last edited by

                                    Hi, habt ihr eine Idee wie ich nur einen prozentualen Wert anzeigen lassen kann? Ähnlich wie bei einer Lampe die Helligkeit? Ich habe es über Batterystatus probiert, da sehe ich die Prozentzahl erst wenn ich auf das Gerät klicke

                                    L 1 Reply Last reply Reply Quote 0
                                    • L
                                      loverz @DarkDevil last edited by

                                      @darkdevil über humidity würde das gehen.

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        alexzi last edited by

                                        Hallo zusammen,
                                        ich hab einen Fenster-/Türsensor. Funzt alles soweit über ioBroker und auch jarvis. Wenn ich öffne oder schließe, Änderung kommt im DP und jarvis an.
                                        Jetzt habe ich den Sensor als "Sensor" und "ContactSensor" in Yahka. Sensor kommt in HK auch an, aber keine Änderung beim Öffnen oder Schließen.
                                        Any ideas?
                                        Danke im Voraus.
                                        Alexander

                                        2021-04-28 10_19_24-Window.png

                                        L mickym 2 Replies Last reply Reply Quote 0
                                        • L
                                          loverz @alexzi last edited by loverz

                                          @alexzi wieso als Contact Sensor?

                                          Leg ihn doch als Fenster oder Türsensor an, so hab ich das gemacht.

                                          WhatsApp Image 2021-04-28 at 13.09.19.jpeg

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

                                            @alexzi Ich habe meine wie Du als ContectSensor definiert, aber Du nimmst den falschen Punkt:

                                            Du darfst nicht Status Active nehmen, sondern unten

                                            cd734ddc-d556-4713-96ce-d04ceb159ae2-image.png

                                            ContactSensor State.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            853
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            204
                                            1745
                                            594268
                                            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