Ankündigung

Einklappen
Keine Ankündigung bisher.

Apple - HomeKit - Schnittstelle zur Heimautomation

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • matthbot
    antwortet
    Removing stale accessories from homebridge cache

    The new (well, 1/2016) API of homebridge allows homebridge to cache the accessories for platforms that can add or remove accessories during runtime. As a next step in evolution, homebridge-knx already connects to that API.

    Allow homebridge-knx to start the webserver by adding "AllowWebserver":true, at the beginning of your knx_config.json!

    As a consequence remain devices, that homebridge-knx does not reconnnect to at start-up, stale and unreachable in HomeKit. To remove those shadows from HomeKit, use the little web server at <your-homebridge>:18081/list

    Clicking on the delete from cache link will only remove the devices from the current homebridge instance and their cache, not from the knx_config.json, that means they will be rediscovered upon next startup as new device in the default room!

    Einen Kommentar schreiben:


  • vento66
    antwortet
    Steht alles hier: https://github.com/snowdd1/homebridge-knx Stichwort Cache löschen

    Einen Kommentar schreiben:


  • matthbot
    antwortet
    Nachdem ich jetzt eine ganze Weile getestet habe und die knx_config.json mehrfach neu übertragen haben,
    erscheine mir die Geräte in der Home App doppelt und dreifach. Was mache ich falsch ?

    MfG
    Matthbot

    Einen Kommentar schreiben:


  • Tqm
    antwortet
    Wichtiger Hinweis für die Raspberry User!

    Aufgrund der permanenten Schreibzugriffe auf die SD-Karte durch Homebridge empfehle ich Euch das "persist"-Verzeichnis in eine Ramdisk zu verlagern.
    (.../homebridge/persist)

    Eure SD-Karte wird es Euch danken.
    Wie geht das?
    https://www.a-netz.de/blog/2013/02/p...with-ramdisks/

    Einen Kommentar schreiben:


  • matthbot
    antwortet
    Danke für den Tipp, im Journal stand die Lösung: das Paket homebridge war nicht aktuell und passte nicht zu homebridge-knx

    Beim Update von Version 0.2.x auf 0.3.x sind folgende Schritte zu beachten:

    Code:
    sudo npm update -g home bridge-knx
    sudo npm update -g homebridge
    Die Konfigurationsdateien config.json und knx_config.json in /var/homebridge müssen angepasst werden

    Code:
    sudo service homebridge stop
    sudo service homebridge start
    sudo service homebridge status
    Auftretende Fehler sind unter
    Code:
    journalctl -u homebridge.service
    zu erkennen.

    Einen Kommentar schreiben:


  • vento66
    antwortet
    Schau mal hier https://github.com/snowdd1/homebridg...m-Raspberry-Pi! Bin leider nur mobil unterwegs...

    Einen Kommentar schreiben:


  • matthbot
    antwortet
    Zitat von vento66 Beitrag anzeigen
    Schau mal in journal nach, ob die config auch gefunden wird, vielleicht ist die im falschen Verzeichnis abgelegt.
    Wo finde ich das Journal ?!

    Beide Files config.json und knx_config.json liegen in /var/homebridge/
    Ich habe den Pfad aus homebridge (Version 0.2.x) übernommen bzw. daran nichts verändert ...

    Einen Kommentar schreiben:


  • vento66
    antwortet
    Schau mal in journal nach, ob die config auch gefunden wird, vielleicht ist die im falschen Verzeichnis abgelegt.

    Einen Kommentar schreiben:


  • matthbot
    antwortet
    Also, die homebridge (Version 0.3.x) läuft soweit und konnte auch in der Apple "Home" App verbunden werden.

    Irgendwas scheint aber im Zusammenspiel zwischen config.json und knx_config.json noch nicht zu passen, da ich in der App zwar die homebridge, aber keine Geräte angezeigt bekomme. Hat jemand eine Idee voran das liegen könnte ?

    MfG
    Matthbot

    Einen Kommentar schreiben:


  • matthbot
    antwortet
    Zitat von matthbot Beitrag anzeigen
    Ist deine Konfigurationsdatei (von Seite 66) schon mit Version 0.3 ?
    Ich habe jetzt mit sudo npm update -g homebridge-knx ein Update auf Version 0.3 gemacht. Wie kann ich prüfen, on Version 0.3 auch tatsächlich installiert wurden ?
    Mit Paketname -v klappt es offensichtlich nicht.

    Was bisher in der Konfigurationsdatei /var/homebridge/config.json enthalten war, wird jetzt auf zwei Dateien, config.json und knx_config.json aufgeteilt. Habe ich das richtig verstanden ?

    Vielen Dank für Euer Feedback
    Zuletzt geändert von matthbot; 14.01.2017, 20:29.

    Einen Kommentar schreiben:


  • matthbot
    antwortet
    Ich hab auch noch die alte Version im Einsatz ...

    Ist deine Konfigurationsdatei (von Seite 66) schon mit Version 0.3 ?
    Zuletzt geändert von matthbot; 14.01.2017, 18:46.

    Einen Kommentar schreiben:


  • vento66
    antwortet
    Das sieht nach der Config für die 0.2 aus. Die config für die 0.3 hat sich grundlegend geändert. Schau mal hier nach:https://github.com/snowdd1/homebridge-knx-de

    Einen Kommentar schreiben:


  • matthbot
    antwortet
    Obwohl meine config.json unter http://pro.jsonlint.com/ als fehlerfrei angezeigt wird, erhalte ich, wenn ich mir den Servicestatus anzeigen lassen, folgende Meldung und die Homebridge lässt sich nicht mir Apple Home verbinden bzw. wird nicht gefunden.

    Code:
    ubuntu@hoembridge:/var/homebridge$ sudo service homebridge status
    ● homebridge.service - Node.js HomeKit Server
       Loaded: loaded (/etc/systemd/system/homebridge.service; enabled; vendor preset: enabled)
       Active: activating (auto-restart) (Result: exit-code) since Sa 2017-01-14 14:55:59 CET; 4s ago
      Process: 6711 ExecStart=/usr/lib/node_modules/homebridge/bin/homebridge $HOMEBRIDGE_OPTS (code=exited, status=1/FAILURE)
     Main PID: 6711 (code=exited, status=1/FAILURE)
    
    Jan 14 14:55:59 hoembridge systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE
    Jan 14 14:55:59 hoembridge systemd[1]: homebridge.service: Unit entered failed state.
    Jan 14 14:55:59 hoembridge systemd[1]: homebridge.service: Failed with result 'exit-code'.
    ubuntu@hoembridge:/var/homebridge$
    Und hier meine config.json

    Code:
    {
        "bridge": {
            "name": "Homebridge",
            "username": "CC:22:3D:E3:CE:30",
            "port": 51826,
            "pin": "031-45-154"
        },
        "description": "This is an example configuration file for KNX platform shim",
        "hint": "Always paste into jsonlint.com validation page before starting your homebridge, saves a lot of frustration",
        "hint2": "Replace all group addresses by current addresses of your installation, these are arbitrary examples!",
        "hint3": "For valid services and their characteristics have a look at the KNX.md file in folder platforms!",
        "hint99": "Everything that is named description or hint is not used by homebridge but decriptive only, you may change or remove at will",
        "platforms": [
            {
                "platform": "KNX",
                "name": "KNX",
                "knxd_ip": "127.0.0.1",
                "knxd_port": 6720,
                "knxd_do_not_read_set_groups": true,
                "hint_knxd_do_not_read_set_groups": "true if homebridge must not send read requests to Set addresses",
                "accessories": [
                    {
                        "description": "Only generic type knxdevice is supported, all previous knx types have been merged into that.",
                        "name": "Licht",
                        "services": [
                            {
                                "type": "Lightbulb",
                                "description": "Lightbulb type, supports On (Switch) and Brightness",
                                "name": "Licht Flur",
                                "On": {
                                    "Set": "1/1/1",
                                    "Listen": [
                                        "1/4/1"
                                    ]
                                }
                            },
                            {
                                "type": "Lightbulb",
                                "description": "Lightbulb type, supports On (Switch) and Brightness",
                                "name": "Licht Wohnen",
                                "On": {
                                    "Set": "1/1/2",
                                    "Listen": [
                                        "1/4/2"
                                    ]
                                }
                            },
                            {
                                "type": "Lightbulb",
                                "description": "Lightbulb type, supports On (Switch) and Brightness",
                                "name": "Licht Essen",
                                "On": {
                                    "Set": "1/1/3",
                                    "Listen": [
                                        "1/4/3"
                                    ]
                                }
                            },
                            {
                                "type": "Lightbulb",
                                "description": "Lightbulb type, supports On (Switch) and Brightness",
                                "name": "Licht Kochen",
                                "On": {
                                    "Set": "1/1/4",
                                    "Listen": [
                                        "1/4/4"
                                    ]
                                }
                            }
                        ],
                        "services-description": "Services is an array, you CAN have multiple service types in one accessory, though it is not fully supported in many iOS HK apps, such as EVE and myTouchHome"
                    }
                ]
            }
        ],
        "accessories": [
            {
                "ServiceType": "WindowCovering",
                "Handler": "WindowCoveringTilt",
                "ServiceName": "Jalousie Büro",
                "Characteristics": [
                    {
                        "Type": "TargetPosition",
                        "Set": [
                            "2/3/13"
                        ],
                        "Listen": [
                            "2/3/13"
                        ],
                        "DPT": "DPT5"
                    },
                    {
                        "Type": "CurrentPosition",
                        "Listen": [
                            "2/5/13"
                        ],
                        "DPT": "DPT5"
                    },
                    {
                        "Type": "PositionState"
                    },
                    {
                        "Type": "TargetHorizontalTiltAngle",
                        "Set": [
                            "2/4/13"
                        ],
                        "Listen": [
                            "2/4/13"
                        ],
                        "DPT": "DPT5"
                    },
                    {
                        "Type": "CurrentHorizontalTiltAngle",
                        "Listen": [
                            "2/6/13"
                        ],
                        "DPT": "DPT5"
                    }
                ],
                "KNXObjects": [
                    {
                        "Type": "ShutterMove",
                        "Listen": "2/1/13",
                        "DPT": "DPT1"
                    }
                ],
                "KNXReadRequests": [
                    "2/3/13",
                    "2/6/13"
                ],
                "LocalConstants": {
                    "ninetyDegRotation": "true"
                }
            }
        ]
    }

    Was mach ich falsch ?!

    Einen Kommentar schreiben:


  • vento66
    antwortet
    You can also install eibd. I found this:https://uwe-arzt.de/2009/04/23/eibd-and-mac-os-x/

    Einen Kommentar schreiben:


  • migabc
    antwortet
    Hi,

    I created a similar topic (https://knx-user-forum.de/forum/öffe...homeserver-app), inquiring about HomeKit integration with KNX.
    vento66 kindly pointed me to this thread.
    I really respect and apreciate the great work you all have been doing here.
    I tried to read through these posts but I got lost in the google translation for the most part.

    Anyway, I managed to install the the homebridge and homebridge-knx on my iMac and was able to successfully pair the Home app with the homebridge :-)
    But I'm still having issues installing the knxd.

    Most of your posts related to the knxd instalation are for the RasPi, which is unfortunate for me as I'm trying to install it on a Mac
    Has anybody been able to install a knxd for macOS (aka OS X)?

    I'm trying to avoid a ubuntu VM instalation. Much rather have it installed natively on the Mac

    Thanks for your help.



    Einen Kommentar schreiben:

Lädt...
X