Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMIP-SWO-PR in HomeKit einbinden - Einstellungen in hap-homematic werden nicht übernommen #653

Open
foxone85 opened this issue Oct 5, 2023 · 11 comments

Comments

@foxone85
Copy link

foxone85 commented Oct 5, 2023

Hello all

First of all best thanks for providing this addon for Homematic CCU3.
I have done the setup of hap-homematic as in the description and tutorial.
The instances are created and the bridge is also added in Homekit. In the CCU control panel the ports 9874-9878 are enabled.
If I now select the channel for the weather data of the Weather Station Pro in hap-homekit and confirm, I only get back to the homescreen, which is shaded and I can not perform any further actions. I have to reload the whole page again. All settings (devices etc.) were not saved and the setup wizard appears again. What am I doing wrong?
The log file says the following:

[...]
[Thu Oct 05 2023 09:15:21 GMT+0200 (CEST)] info - [HAP Server] [Server] service used for HmIP-SWO-PR 00185F299965E9:1 is HomeMaticWeatherStationAccessory
[Thu Oct 05 2023 09:15:21 GMT+0200 (CEST)] error - [HAP Server] Unable to initialize HmIP-SWO-PR 00185F299965E9:1 Error is /usr/local/addons/hap-homematic/node_modules/https-proxy-agent/dist/index.js:54
this.proxyHeaders = opts?.headers ?? {};

^

SyntaxError: Unexpected token .
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/usr/local/addons/hap-homematic/node_modules/gaxios/build/src/gaxios.js:27:29)

[...]

German

Hallo zusammen

Erst einmal besten Dank für die Bereitstellung dieses Addons für die Homematic CCU3.
Ich habe die Einrichtung von hap-homematic wie in der Beschreibung und Tutorial durchgeführt.
Die Instanzen sind erstellt und die Bridge auch in Homekit hinzugefügt. In der CCU Systemsteuerung sin die Ports 9874-9878 freigegeben.
Wenn ich nun in hap-homekit den Kanal für die Wetterdaten der Weather Station Pro auswähle und bestätige gelange ich nur wieder auf den homescreen, welcher aber shaded ist und ich keine weiteren Aktionen druchführen kann. Ich muss die ganze Seite wieder neu laden. Sämtliche Einstellungen (Geräte etc.) wurden nicht gespeichert und der Einrichtungsassistent erscheint wieder. Was mache ich falsch?
Die Log Datei besagt folgendes:

Ich danke euch für die Hilfe und Unterstützung.

@ChrWi
Copy link
Collaborator

ChrWi commented Oct 6, 2023

Hallo @foxone85,
was nutzt Du an Hardware und CCU-Firmware?
Verstehe ich das richtig, dass auch sämtliche anderen Geräte (welche?) nicht übernommen werden?

@foxone85
Copy link
Author

foxone85 commented Oct 6, 2023

@ChrWi Benutze lediglich die CCU3 in Verbindung mit der Wetterstation HmIP-SWO-PR. Die CCU3 läuft auf der aktuellsten Firmware 3.71.12.

lg

@ChrWi
Copy link
Collaborator

ChrWi commented Oct 6, 2023

Kannst Du bitte mal die Einstellungen (unter Internes) teilen?.

@foxone85
Copy link
Author

foxone85 commented Oct 7, 2023

Hi

"Internes" gibts leider nicht als Menüpunkt. Aber das sollten die beiden wichtigen Seiten sein für die Einbindung der CCU3 im Netzwerk

image
image

@foxone85
Copy link
Author

foxone85 commented Oct 7, 2023

Sorry, du meintest im Add-In ;-) et voilà

image

@ChrWi
Copy link
Collaborator

ChrWi commented Oct 7, 2023

Nimm die https Einstellung bitte raus und starte den HAP Service danach neu (letzter Eintrag unter Internes).
Sofern Du nur Apple Home nutzt, kannst Du auch Apple Home-App kompatibel aktivieren. Das sollte aber nichts mit deinem Problem zu tun haben.

@foxone85
Copy link
Author

foxone85 commented Oct 7, 2023

Wenn ich die Apple Home-App kompatibel Option selektiere, funktioniert es. Ich sehe jedoch nur Temperatur, Feuchtigkeit und Lux wert. Regen, Regenmenge, Windstärke und richtung fehlen komplett, da diese Werte bekanntlich nicht von Apple Home unterstützt werden.
Die Frage ist nun warum es nur so funktioniert? Hat der Dienst HomeMaticWeatherStationAccessory irgend ein Problem mit den anderen Werten?

LG

@ChrWi
Copy link
Collaborator

ChrWi commented Oct 7, 2023

Interessant- ich hatte auf https getippt, da eine Zeile im Log oben darauf hindeutet.
Ansonsten als Tipp: ich nutze accuweather für Wetterdaten und schreibe die gewünschten Werte in Variablen (https://homematic-forum.de/forum/viewtopic.php?f=18&t=59370) Diese können dann zB als Feuchtigkeit angezeigt werden. Windgeschwindigkeiten größer 36kmh aktivieren den Rauchsensor.
IMG_0648
IMG_0649

@thkl Kannst Du die Notwendigkeit der Apple-Kompatibilität für die Wetterstation erklären?

@ChrWi
Copy link
Collaborator

ChrWi commented Oct 7, 2023

Ich referenziere auf eine ältere Beschreibung von @thkl : #37 (comment)

@foxone85
Copy link
Author

foxone85 commented Oct 8, 2023

Besten Dank für die Inputs.
Für meine Anwendung im Eigenheim bin ich leider auf Echtzeit-Daten angewiesen und nicht auf Vorhersagen wie bei accuweather. Im Genauen brauche ich Echtzeit Regensensor- und Wind-Meldungen, welche mit einen Alarm auslösen und als Automations-Regel die Markiesen einfahren (bspw.).
Ich verstehe das Problem noch nicht ganz, weshalb das Add-In nur mit der Apple Home-Kit Kompatibilität funktioniert. In der Eve App könnte ich eben auch Regenmenge und Windstärke als Variablen für eine Automation nutzen. Bei HomeKit ist das ja noch nicht möglich.

LG

@foxone85
Copy link
Author

Hallo zusammen

Nochmals zu diesem noch immer bestehenden Problem. Ich habe das gesamte Log-File beigelegt. Leider habe ich keine Ahnung wo ich bei der Problemsuche ansetzen muss. Aus einer weiter oben liegenden Antwort war der Verdacht, dass es an HTTPS liegt. Was besagt die Fehlmeldung im Log-File eigentlich (proxyHeaders)?

hap-homematic-log.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants