Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. [Aufruf] ioBroker.ham (Homebridge Accessory Manager) testen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Aufruf] ioBroker.ham (Homebridge Accessory Manager) testen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Dutchman
      Dutchman Developer Most Active Administrators last edited by

      @Alex1808:

      P.S. Habe mit Dev. vom homebridge-iobroker gesprochen wird eventuell ein Fortsetzung geben 🙂 `

      Interesting! Was genau?

      Sent from my iPhone using Tapatalk

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

        @Dutchman:

        Interesting! Was genau? `

        Native Verbindung zwischen iobroker und Homebridge (ohne yahka adapter)

        "platforms": [
                {
                    "platform" : "homebridge-iobroker.iobroker",
                    "name" : "iobroker",
                    "host": "http://localhost:8084",
                    "filter": "*",
                    "switches": [
                        "adapter.0.object_1",
                        "adapter.0.object_2",
                        "adapter.0.object_3",
                        ...
                     ]
                }
            ]
        

        https://github.com/Haba1234/homebridge-iobroker

        1 Reply Last reply Reply Quote 0
        • R
          rudiraz last edited by

          Hallo,

          mich interessiert der Adapter sehr.

          Leider bekomme ich beim Start folgende Meldung:

          ` > ham.0 2018-06-26 10:48:38.034 info terminating

          ham.0 2018-06-26 10:48:37.946 warn Exception: TypeError: Cannot read property 'indexOf' of undefined

          ham.0 2018-06-26 10:48:37.938 info cleaned everything up…

          ham.0 2018-06-26 10:48:37.936 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:236:12)

          ham.0 2018-06-26 10:48:37.936 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:312:9)

          ham.0 2018-06-26 10:48:37.936 error at Socket. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2249:25)

          ham.0 2018-06-26 10:48:37.936 error at adapter.getDevices (/opt/iobroker/node_modules/iobroker.ham/main.js:175:27)

          ham.0 2018-06-26 10:48:37.936 error at loadExistingAccessories (/opt/iobroker/node_modules/iobroker.ham/main.js:229:35)

          ham.0 2018-06-26 10:48:37.936 error at Object.start (/opt/iobroker/node_modules/iobroker.ham/lib/wrapper-handler.js:96:23)

          ham.0 2018-06-26 10:48:37.936 error at HomebridgeWrapper.init (/opt/iobroker/node_modules/homebridge-plugin-wrapper/index.js:190:17)

          ham.0 2018-06-26 10:48:37.936 error at Server.run (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:85:36)

          ham.0 2018-06-26 10:48:37.936 error at Server._loadPlatforms (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:314:45)

          ham.0 2018-06-26 10:48:37.936 error at API.platform (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/api.js:108:11)

          ham.0 2018-06-26 10:48:37.936 error TypeError: Cannot read property 'indexOf' of undefined

          ham.0 2018-06-26 10:48:37.936 error uncaught exception: Cannot read property 'indexOf' of undefined</anonymous> `

          Nodejs 6 ist installiert

          Woran kann das liegen?

          Grüße

          1 Reply Last reply Reply Quote 0
          • Dutchman
            Dutchman Developer Most Active Administrators last edited by

            Zeig Mal deine config

            Sent from my iPhone using Tapatalk

            1 Reply Last reply Reply Quote 0
            • R
              rudiraz last edited by

              Plugin erstmal nur zum Test drin:
              2480_1.png
              2480_2.png

              1 Reply Last reply Reply Quote 0
              • Dutchman
                Dutchman Developer Most Active Administrators last edited by

                Nimm Mal {} bij Platforms Weck wenn nichts eingefüllt reicht []

                Sent from my iPhone using Tapatalk

                1 Reply Last reply Reply Quote 0
                • R
                  rudiraz last edited by

                  Ahh ok, das war der Fehler.

                  Dann kann ich mal testen jetzt 🙂

                  Danke und Grüße

                  1 Reply Last reply Reply Quote 0
                  • Meistertr
                    Meistertr Developer last edited by

                    Hi,

                    wollte es auch gerade testen leider ohne erfolg, er kann die config.json nicht finden.

                    host.devbroker	2018-06-26 21:59:40.320	info	Restart adapter system.adapter.ham.0 because enabled
                    host.devbroker	2018-06-26 21:59:40.320	error	instance system.adapter.ham.0 terminated with code 0 (OK)
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: path: '/opt/iobroker/iobroker-data/ham_0/config.json' }
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: syscall: 'open',
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: code: 'ENOENT',
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: errno: -2,
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: at Object.start (/opt/iobroker/node_modules/iobroker.ham/lib/wrapper-handler.js:96:23)
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: at HomebridgeWrapper.init (/opt/iobroker/node_modules/homebridge-plugin-wrapper/index.js:188:19)
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: at new Server (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:57:24)
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: at Server._loadPlugins (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:139:22)
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: at Array.forEach (<anonymous>)
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: at Server. <anonymous>(/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:165:14)
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: at Plugin.module.exports [as initializer] (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-mi-philips-light/index.js:10:9)
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: at isConfig (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-mi-philips-light/index.js:24:32)
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: at Object.fs.readFileSync (fs.js:551:33)
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: at Object.fs.openSync (fs.js:646:18)
                    Caught	2018-06-26 21:59:40.320	error	by controller[1]: { Error: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/ham_0/config.json'
                    Caught	2018-06-26 21:59:40.319	error	by controller[0]: [2018-6-26 21:59:40] Plugin /opt/iobroker/node_modules/homebridge-plugin-wrapper package.json does not contain the keyword 'homebridge-plugin'.
                    ham.0	2018-06-26 21:59:40.314	warn	Exception: Error: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/ham_0/config.json'
                    ham.0	2018-06-26 21:59:40.314	info	cleaned everything up...
                    ham.0	2018-06-26 21:59:40.314	error	at Object.start (/opt/iobroker/node_modules/iobroker.ham/lib/wrapper-handler.js:96:23)
                    ham.0	2018-06-26 21:59:40.314	error	at HomebridgeWrapper.init (/opt/iobroker/node_modules/homebridge-plugin-wrapper/index.js:188:19)
                    ham.0	2018-06-26 21:59:40.314	error	at new Server (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:57:24)
                    ham.0	2018-06-26 21:59:40.314	error	at Server._loadPlugins (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:139:22)
                    ham.0	2018-06-26 21:59:40.314	error	at Array.forEach (<anonymous>)
                    ham.0	2018-06-26 21:59:40.314	error	at Server. <anonymous>(/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:165:14)
                    ham.0	2018-06-26 21:59:40.314	error	at Plugin.module.exports [as initializer] (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-mi-philips-light/index.js:10:9)
                    ham.0	2018-06-26 21:59:40.314	error	at isConfig (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-mi-philips-light/index.js:24:32)
                    ham.0	2018-06-26 21:59:40.314	error	at Object.fs.readFileSync (fs.js:551:33)
                    ham.0	2018-06-26 21:59:40.314	error	at Object.fs.openSync (fs.js:646:18)
                    ham.0	2018-06-26 21:59:40.314	error	Error: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/ham_0/config.json'
                    ham.0	2018-06-26 21:59:40.314	error	uncaught exception: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/ham_0/config.json'
                    ham.0	2018-06-26 21:59:40.311	debug	[2018-6-26 21:59:40] Loaded plugin: homebridge-mi-philips-light</anonymous></anonymous></anonymous></anonymous>
                    

                    das modul habe ich eigentlich schon gelöscht.. screenshot der Config im Anhang
                    1768_2018-06-26_22h04_03.png

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

                      Oooohje diese Plugin-Entwickler … warum auch immer die das Configfile lesen ...

                      Bitte 0.4.3 vom GitHub versuchen. geht es damit? Er schreibt jetzt die Konfig ins Konfigverzeichnis zusätzlich.

                      Du solltest aber das JSON checken. ein doppeltes "accessories" ist blöd. Wirf das Wemos raus wenn Du es nicht brauchst.

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

                        @apollon77:

                        Du solltest aber das JSON checken. ein doppeltes "accessories" ist blöd. Wirf das Wemos raus wenn Du es nicht brauchst. `

                        Am besten aus dem Grund-config diese Beispiele löschen, es verwirrt nur.

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

                          0.4.3 macht genau das 😉

                          Gesendet vom Handy …

                          1 Reply Last reply Reply Quote 0
                          • Z
                            zahnheinrich last edited by

                            Hallo in die Runde,

                            Mein System:

                            ioBroker auf Synology buanet-Docker

                            node v6.14.3

                            npm 4.6.1

                            Installation des Adpters ohne Besonderheiten.

                            Habe das homebridge-ikea-tradfri-gateway installiert, die config, wie von Alex1808 für ein funktionierendes Plugin beschrieben, eingestellt.

                            Gateway ist online.

                            Der Adapter zeigt kurz grün, dann bleibt er rot, das log zeigt folgende Fehler:

                            ! host.iobrokerBosaca 2018-06-27 15:02:53.792 error instance system.adapter.ham.0 terminated with code 0 (OK)
                            ! host.iobrokerBosaca 2018-06-27 15:02:53.792 error Caught by controller[2]: at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.ham/node_modules/node-aead-crypto/index.js:4:15)
                            ! host.iobrokerBosaca 2018-06-27 15:02:53.791 error Caught by controller[2]: at Function.Module._load (/opt/iobroker/node_modules/iobroker.ham/node_modules/mock-require/index.js:29:22)
                            ! host.iobrokerBosaca 2018-06-27 15:02:53.791 error Caught by controller[2]: { Error: Cannot find module '/opt/iobroker/node_modules/iobroker.ham/node_modules/node-aead-crypto/build/Release/node-v48-linux-x64/node_aead_crypto.node'
                            ! host.iobrokerBosaca 2018-06-27 15:02:53.790 error Caught by controller[0]: [2018-6-27 13:02:52] Plugin /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-plugin-wrapper package.json does not contain the keyword 'homebridge-plugin'.
                            ! host.iobrokerBosaca 2018-06-27 15:02:50.474 info instance system.adapter.ham.0 started with pid 7291
                            ! host.iobrokerBosaca 2018-06-27 15:02:20.449 info Restart adapter system.adapter.ham.0 because enabled</anonymous>

                            die config:

                            ! {
                            ! "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
                            ! "accessories": [],
                            ! "platforms": [
                            ! {
                            ! "platform": "Ikea Trådfri Gateway",
                            ! "name": "Ikea Trådfri Gateway",
                            ! "host": "192.168.7.106", // IP des Tradfry Gateways
                            ! "securityCode": "XXXXXXXXXX" // hier unkenntlich gemacht
                            ! }
                            ! ]
                            ! }

                            1841_ham.png

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

                              Zeig mal den Log-Teil von der Installation des gewählten Plugins … In meinen Augen passt da was nicht:

                               host.iobrokerBosaca 2018-06-27 15:02:53.791 error Caught by controller[2]: { Error: Cannot find module '/opt/iobroker/node_modules/iobroker.ham/node_modules/node-aead-crypto/build/Release/node-v48-linux-x64/node_aead_crypto.node'
                              
                              1 Reply Last reply Reply Quote 0
                              • Dutchman
                                Dutchman Developer Most Active Administrators last edited by

                                Warum Bindest du Ikea per Homebridge ein anstatt des tradifi Adapters ?

                                Der Adapter kan mehr als Homebridge!

                                Beides gleichzeitig geht nicht wegen besetzten ports

                                Sent from my iPhone using Tapatalk

                                1 Reply Last reply Reply Quote 0
                                • Z
                                  zahnheinrich last edited by

                                  @apollon77

                                  Ähh, welchen log meinst Du? Stehe da gerade auf dem Schlauch… :roll:

                                  @Dutchman

                                  ...weil ich das Ding nicht mehr zum Laufen kriege... :oops:

                                  Es ging schon mal einwandfrei, nach Docker update, Adapter update auf 2.0 auf einmal nicht mehr, trotz stundenlangen Suchens.

                                  Auch zurück auf v1.4.1 beim Tradfri ging nicht mehr.

                                  Dacht nun, wenn mit dem homebridge plugin einfach ginge....

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

                                    @zahnheinrich:

                                    @apollon77

                                    Ähh, welchen log meinst Du? Stehe da gerade auf dem Schlauch… :roll: `

                                    Also du den Namen des Plugins in die Konfig eingetragen und gespeichert hast. Da würde das NPM paket installiert. Den Teil aus dem ioBroker-Log meine ich.

                                    @zahnheinrich:

                                    @Dutchman

                                    …weil ich das Ding nicht mehr zum Laufen kriege... :oops:

                                    Es ging schon mal einwandfrei, nach Docker update, Adapter update auf 2.0 auf einmal nicht mehr, trotz stundenlangen Suchens.

                                    Auch zurück auf v1.4.1 beim Tradfri ging nicht mehr.

                                    Dacht nun, wenn mit dem homebridge plugin einfach ginge.... `

                                    Dann mache lieber einen Thread auf wo es darum geht den Adapter wieder zum laufen zu bekommen! 🙂

                                    1 Reply Last reply Reply Quote 0
                                    • Dutchman
                                      Dutchman Developer Most Active Administrators last edited by

                                      Nö lieber troubleshooten warum tradifi nicht mehr läuft Homebridge wird dir weniger Möglichkeiten geben als der Adapter.

                                      Mja, jedenfalls würde ich es so machen gut gemeinter tip

                                      Sent from my iPhone using Tapatalk

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

                                        Hi,

                                        ich finde diesen adapter absolut toll , allerdings habe ich ein Problem, das ich einfach nicht selber lösen kann:

                                        Ich schaffe es nicht zwei "platforms" in die Konfigurationsdatei zu geben – denn ich erhalte immer eine Fehlermeldung und kann die Konfirguration nicht abspeichern.

                                        Hier die Konfirgurationsdatei - mit 2 "platforms", für dich ich die Fehlermeldung "expected ',' instead od '{' ferhalte -> und nicht abspeichern kann.

                                        (die Fehlermeldung steht übrigens über der Zeile mit "platform": "Info",

                                        ! {
                                        ! "description": "Add configuration for your accessories or platforms according to the docs of the plugins.",
                                        ! "accessories": [
                                        ! {
                                        ! "accessory": "RaspberryPiTemperature",
                                        ! "name": "RaspberryPi CPU Temperature",
                                        ! "updateInterval": 1000
                                        ! }
                                        ! ],
                                        ! "platforms": [
                                        ! {
                                        ! "platform": "Seasons",
                                        ! "name": "Seasons",
                                        ! "calendar": "meteorologic",
                                        ! "hemisphere": "north",
                                        ! "display": "both"
                                        ! }
                                        ! {
                                        ! "platform": "Info",
                                        ! "port": 9876,
                                        ! "name": "Homebridge Info Server",
                                        ! "updateFrequency": 10000,
                                        ! "updateCheckFrequency": 86400
                                        ! }
                                        ! ]
                                        ! }

                                        Was an meiner Konfiguration ist falsch bzw. wie kann man mehrere "platforms" in der Konfigurationsdatei eintragen.

                                        Danke bereits jetzt für eure Tipps.

                                        schroedinger

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

                                          @schroedinger:

                                          "platforms": [ `

                                          es fehlt eine Komma

                                          {

                                          "platform": "Seasons",

                                          "name": "Seasons",

                                          "calendar": "meteorologic",

                                          "hemisphere": "north",

                                          "display": "both"

                                          },

                                          {

                                          "platform": "Info",

                                          "port": 9876,

                                          "name": "Homebridge Info Server",

                                          "updateFrequency": 10000,

                                          "updateCheckFrequency": 86400

                                          }

                                          ]

                                          }

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

                                            Nach der ersten Plattform und der schliessenden geschweiften Klammer ein Komma bitte weil Du ja noch einen Eintrag angibst.

                                            Die Fehlermeldung sagt das doch … "erwarte ein Komma anstelle der nächsten öffnenden Klammer ...

                                            Edit: Alex war schneller 😉

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            761
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            55
                                            343
                                            74405
                                            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