Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. "Homematic Manager Adapter" First Steps

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    "Homematic Manager Adapter" First Steps

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators last edited by

      ich habs versucht:

      root@quad-pi:/opt/iobroker# npm install iobroker.hmm
      npm http GET https://registry.npmjs.org/iobroker.hmm
      npm http 200 https://registry.npmjs.org/iobroker.hmm
      npm http GET https://registry.npmjs.org/iobroker.hmm/-/iobroker.hmm-0.0.6.tgz
      npm http 200 https://registry.npmjs.org/iobroker.hmm/-/iobroker.hmm-0.0.6.tgz
      npm http GET https://registry.npmjs.org/fs.notify
      npm http 200 https://registry.npmjs.org/fs.notify
      npm http GET https://registry.npmjs.org/retry
      npm http GET https://registry.npmjs.org/async
      npm http 200 https://registry.npmjs.org/async
      npm http 200 https://registry.npmjs.org/retry
      iobroker.hmm@0.0.6 node_modules/iobroker.hmm
      └── fs.notify@0.0.4 (retry@0.6.1, async@0.1.22)
      root@quad-pi:/opt/iobroker# cd node_modules/iobroker.hmm/node_modules
      root@quad-pi:/opt/iobroker/node_modules/iobroker.hmm/node_modules# curl -o master.zip https://codeload.github.com/hobbyquaker ... zip/master
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100    21  100    21    0     0     33      0 --:--:-- --:--:-- --:--:--    46
      curl: (6) Couldn't resolve host '...'
      curl: (6) Couldn't resolve host 'zip'
      root@quad-pi:/opt/iobroker/node_modules/iobroker.hmm/node_modules# unzip master.zip
      Archive:  master.zip
        End-of-central-directory signature not found.  Either this file is not
        a zipfile, or it constitutes one disk of a multi-part archive.  In the
        latter case the central directory and zipfile comment will be found on
        the last disk(s) of this archive.
      unzip:  cannot find zipfile directory in one of master.zip or
              master.zip.zip, and cannot find master.zip.ZIP, period.
      root@quad-pi:/opt/iobroker/node_modules/iobroker.hmm/node_modules# rm master.zip
      root@quad-pi:/opt/iobroker/node_modules/iobroker.hmm/node_modules# mv homematic-manager-master homematicmanager
      mv: Aufruf von stat für „homematic-manager-master“ nicht möglich: Datei oder Verzeichnis nicht gefunden
      root@quad-pi:/opt/iobroker/node_modules/iobroker.hmm/node_modules# cd homematicmanager
      -bash: cd: homematicmanager: Datei oder Verzeichnis nicht gefunden
      root@quad-pi:/opt/iobroker/node_modules/iobroker.hmm/node_modules# npm install
      npm WARN package.json iobroker.hmm@0.0.6 No repository field.
      root@quad-pi:/opt/iobroker/node_modules/iobroker.hmm/node_modules#
      
      

      sagt dir das was?

      1 Reply Last reply Reply Quote 0
      • V
        versteckt last edited by

        Ja, die URL ist falsch.

        Kopiere sie dir bitte mit "rechter Maustaste | Copy Link (oder was auch immer).

        Wenn du den Text so kopierst, kopiert er die URL mit …

        1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators last edited by

          danke, ich bin ja blind :oops:

          das hätte ich ja nu wirklich selbst sehen können.

          Gruß

          Rainer

          1 Reply Last reply Reply Quote 0
          • V
            versteckt last edited by

            Kein Problem, ich bin leider schon "Betriebsblind"…

            Gesendet von meinem iPhone mit Tapatalk

            1 Reply Last reply Reply Quote 0
            • S
              StefSign last edited by

              Hallo Husky (Versteckt?)

              CHAPEAU!

              🙂

              Steve

              1 Reply Last reply Reply Quote 0
              • V
                versteckt last edited by

                Cool, gleich auf Anhieb?

                Na dann werde ich mal Doku schreiben gehen!

                Gesendet von meinem iPhone mit Tapatalk

                1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators last edited by

                  Hat alles geklappt, aber…... 😉
                  144_iobroker_adapter_hmm02.jpg
                  Der Port mit :8080 ist vielleicht nicht sinnvoll, wenn noch etwas anderes auf dem RasPi laufen soll.

                  144_iobroker_adapter_hmm01.jpg
                  So sieht es beim Reiter "Adapter aus".

                  ich nehme an, dass die fehenden Infos kommen, wenn der Adapter im offizielen repository (und im admin) enthalten ist.

                  Super Arbeit

                  Gruß

                  Rainer

                  1 Reply Last reply Reply Quote 0
                  • S
                    StefSign last edited by

                    Hallo Husky,

                    würde es Sinn machen es (die Doku) in unser ioBroker Github Wiki einzufügen?

                    BTW, werde gleich mal den Debugger anschmeissen um des Pudels Kern …äh HMM Kern anzusehen.

                    🙂

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • B
                      Bambo last edited by

                      Das soll jetzt nicht blöd klingen auch wenn es das vielleicht tut…aber wofür ist dieser Adapter gut?

                      Was macht der, was hm_rega /hm-rpc nicht machen? Ich raff das komplett nicht.

                      1 Reply Last reply Reply Quote 0
                      • V
                        versteckt last edited by

                        @Homoran (Rainer): Den Port kannst du dir normalerweise im Admin Fenster einstellen.

                        Der Link in Instances wird im Moment nicht automatisch angepasst, nachdem du gespeichert hast.

                        Das ist noch ein offener Punkt.

                        Die fehlenden Infos kommen erst, wenn es im offiziellen Repo enthalten ist.

                        @StefSign (Steve): Der Plan war, das ich dokumentiere wie ich diesen Adapter entwickelt habe,

                        sodass wir eine "Doku für Adapter Anfänger" haben.

                        1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators last edited by

                          Hier kannst du z.B. Direktverknüpfungen erstellen ohne CCU.

                          Wird interessant, wenn auch eine CCU-freie Umgebung funktioniert, z.B. mit Homegear.

                          Gruß

                          Rainer

                          1 Reply Last reply Reply Quote 0
                          • V
                            versteckt last edited by

                            @Bambo:

                            Das soll jetzt nicht blöd klingen auch wenn es das vielleicht tut…aber wofür ist dieser Adapter gut?

                            Was macht der, was hm_rega /hm-rpc nicht machen? Ich raff das komplett nicht. `

                            Mir ging es hauptsächlich darum, zu zeigen, wie einfach es ist, einen neuen Adapter zu entwickeln und

                            dabei gleich ein paar "Standardfunktionen" zu verwenden.

                            Wie z.B.

                            .) IP-Adressen auslesen

                            .) Objekte auslesen (hm-rpc) und diese einbinden

                            .) Externe nodejs Programme über ioBroker zu "steuern" und "konfigurieren" soweit einfach machbar.

                            1 Reply Last reply Reply Quote 0
                            • V
                              versteckt last edited by

                              @Homoran:

                              Hier kannst du z.B. Direktverknüpfungen erstellen ohne CCU.

                              Wird interessant, wenn auch eine CCU-freie Umgebung funktioniert, z.B. mit Homegear.

                              Gruß

                              Rainer `

                              Ich setze bereits seit Anfang Jänner Homegear mit Homematic und Max! Thermostaten produktiv ein.

                              1 Reply Last reply Reply Quote 0
                              • B
                                Bambo last edited by

                                @Homoran:

                                Hier kannst du z.B. Direktverknüpfungen erstellen ohne CCU.

                                Wird interessant, wenn auch eine CCU-freie Umgebung funktioniert, z.B. mit Homegear.

                                Gruß

                                Rainer `

                                Danke, also quasi Homematic Manager ohne CCU.

                                Steht ja irgendwie auch im Titel… :lol:

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

                                  moin, moin

                                  wollte eben auf die schnelle auch installieren. Unter windows wird curl angemeckert. Muss ich Curl erst installieren?

                                  mfg

                                  Arminhh

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    StefSign last edited by

                                    Morgen Arminhh,

                                    ich denke man kann auch wget nutzen bzw. ganz normal von HMM Webseite herunterladen und im richtigen Verzeichnis ablegen.

                                    Steve

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

                                      jetzt ist erst der Groschen gefallen was überhaupt Curl ist! Danke für den Hinweis!!

                                      mfg

                                      Arminhh

                                      1 Reply Last reply Reply Quote 0
                                      • V
                                        versteckt last edited by

                                        Sorry, das ist eine Anleitung für Linux!

                                        Gesendet von meinem iPhone mit Tapatalk

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

                                          Funktioniert ! 😉 auch unter Windows!! 😄

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

                                            @versteckt:

                                            Es ist vollbracht, eine initiale Version des iobroker.hmm ist in Git bzw. npm zu finden.

                                            Bitte nicht erschlagen, es ist noch nichts dokumentiert und sicherlich Fehler behaftet.

                                            Ausserdem sind beide Abhängigkeiten im Git mitdrinnen.

                                            Könnt ihr trotzdem mal versuchen diesen zu installieren (im ioBroker Root-Dir einfach "npm install iobroker.hmm" eingeben)?

                                            Dann weiss ich zumindest gleich mal, was ich alles noch machen muss. `
                                            Es ist toll!!

                                            Das was jetzt kommt ist jammern auf hochem Niveau:

                                            • man kann homematic-manager direkt aus npm installieren (pull request ist schon da)

                                            • node_modules sollte man nicht in git einchecken. Dafür kann man eine Datei ".gitignore" kreieren, mit dem Inhalt:

                                            .idea
                                            node_modules
                                            
                                            
                                            • package.json sollte repository, homepage und keywords Felder haben:
                                            "repository": {
                                                "type": "git",
                                                "url": "https://github.com/husky-koglhof/ioBroker.hmm"
                                              },
                                              "homepage": "https://github.com/husky-koglhof/ioBroker.hmm",
                                              "keywords": [
                                                "ioBroker",
                                                "homematic",
                                                "homematic manager"
                                              ],
                                            
                                            

                                            Dann wird npm Seite automatisch mit readme und github link befüllt.

                                            • io-package.json, da gibt es 4 Anmerkungen:

                                            version sollte mit package.json übereinstimmen.

                                            "version":                  "0.0.1",
                                            
                                            

                                            Link ist falsch:

                                                    "extIcon":                  "https://raw.githubusercontent.com/ioBroker/ioBroker.js-controller/master/adapter/example/admin/example.png",
                                            
                                            

                                            Am besten auf "info" umstellen, sonst "by default" alle werden "debug" level haben.

                                                   "loglevel":                 "debug",
                                            
                                            

                                            Das hier funktioniert nur wenn in "native" ein "port" existiert (bei dir ist es "webServerPort". Ich empfehle es umzubenennen)

                                                    "localLink":                "http://%ip%:%port%",
                                            
                                            
                                            • Lizenz ist unklar:

                                            in package.json - GPL,

                                            in hmm.js - Apache,

                                            es gibt aber kein LICENSE file in git.

                                            Ich rate von GPL sowieso ab. Im schlimmsten Fall LGPL.

                                            Ich denke, dass du gleiche Lizenz verwenden solltest wie homematic-mamanger, weil du Adapter praktisch auf dem aufbaust. Und homematic-manager hat CC BY-NC-SA 4.0 http://creativecommons.org/licenses/by-nc-sa/4.0/

                                            Ansonsten es ist wirklich super noch einen Adapter zu haben.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            800
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            66
                                            12419
                                            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