Google Home ab 8 August in Deutschland

Begonnen von CoolTux, 18 Juli 2017, 12:24:16

Vorheriges Thema - Nächstes Thema

Kuzl

Gibt es eine Möglichkeit das Zertifizieren zu umgehen oder von der Fritzbox erledigen zu lassen?
Ich finde es nicht schön, wenn ich alle 3 Monate daran denken muss, dass ich das Zertifikat erneuern muss.
Und wenn ich es über einen Chronjob erledigen will muss ich mit einem permanenten Loch in der Firewall auf Port 80 leben....

kadettilac89

Zitat von: Kuzl am 12 Oktober 2018, 11:49:10
Gibt es eine Möglichkeit das Zertifizieren zu umgehen oder von der Fritzbox erledigen zu lassen?
Ich finde es nicht schön, wenn ich alle 3 Monate daran denken muss, dass ich das Zertifikat erneuern muss.
Und wenn ich es über einen Chronjob erledigen will muss ich mit einem permanenten Loch in der Firewall auf Port 80 leben....

Google-Home funktioniert lt. Posts hier im Thread nicht mit selbst erstellten Zertifikaten.

es gibt eine Möglichkeit das Erneuern über bestehenden Port laufen zu lassen. Hast du Fhem über einen Port nach außen ggf. über einen Reverse-Proxy erreichbar? Wenn ja ...

1) Letsencrypt einmalig über Port 80 erreichbar machen. Laufende Dienste die auf Port 80 lauschen stoppen (Nginx oder Apache)

2) Initiale Registrierung und Zertifikate erstellen. Ggf. vorhandenen Ordner /etc/letsencrypt löschen oder umbenennen.


certbot certonly --standalone -d domain.spdns.de


-d domain.spdns.de an deine Domäne anpassen

3) Port kann wieder geschlossen werden


Erneuern

Das erneuern per Cronjob alle xxx Wochen. Port hinter --tls-sni-01-port an deinen anpassen

certbot renew --tls-sni-01-port 4210 --force-renew --pre-hook "service nginx stop" --post-hook "service nginx start"


Ob das funktioniert kannst du auch gleich nach dem initialen Einrichten mit selbem Befehl prüfen, Parameter --force-renew prüft dann nicht ob die Erneuerung nötig ist. Jedes erfolgreiche Erneuern erstellt Dateien in /etc/letsencrypt/archive/<domainname>

Leider hängt das bei mir alle paar Monate mal. Warum weiß ich nicht. Ich lasse täglich über einen Cronjob-Eintrag das Certifikatsalter in eine Datei schreiben, und diese Füllt dann ein Attribut im Modul sysmon. Das Attribut kannst dann per watchdog, DoIf o. ä. überwachen.

Da das Einrichten sehr schnell erledigt ist, habe ich die Ursache nie gesucht. Ich lösche den Ordner letsencrypt, Portfreigabe, Befehl ausführen und es läuft wieder ne Weile fehlerfrei.

Cronjob

# Pruefung Certificate age nginx
10 1 * * * root certbot  certificates 2>&1  | grep -i Expiry | cut -d "(" -f 2 | cut -d " " -f 2 > /opt/fhem/log/cert_age.txt  && chown fhem:dialout /opt/fhem/log/cert_age.txt

- Anmerkung, wenn Fhem nicht unter User "fhem:dialout" läuft muss das geändert werden.


Attribut in sysmon

attr sysmon user-defined certExpires:720:certExpires:cat /opt/fhem/log/cert_age.txt,updateStatus:720:updateStatus:cat /opt/fhem/log/updatestatus.txt | head -n1



SouzA

#437
Moin, bin mal wieder daheim...

@kadettilac89
vielen Dank für deine Ausführungen. Werde ich demnächst mit dem Apache mal probieren.

@Dominik
Ich habe bis dato deine geänderten Dateien noch nicht probiert, weil ich mit meiner aktuellen Installation leider auch die Geräte nicht mehr synchronisieren kann.
Habe seit letztem mal nichts dran geändert... ghome sowie rpi sind neu gestartet.
Erkenne auch keine Fehlermeldung.
EDIT:
Steuern kann ich die bestehenden Devices aber noch!!

Könnt ihr mir hier nochmal weiterhelfen, bevor ich das neue Zeug anfange bei mir zu testen?

Vielen Dank!
Bis denn
SouzA

Okt 12 22:29:41 raspberrypi systemd[1]: Started Google Assistant FHEM Connector.
Okt 12 22:29:43 raspberrypi ghome[15027]: [2018-10-12 22:29:43] using /home/pi/.ghome/config.json
Okt 12 22:29:43 raspberrypi ghome[15027]: [2018-10-12 22:29:43] ---
Okt 12 22:29:43 raspberrypi ghome[15027]: [2018-10-12 22:29:43] this is alexa-fhem 0.3.4
Okt 12 22:29:43 raspberrypi ghome[15027]: [2018-10-12 22:29:43] Fetching FHEM devices...
Okt 12 22:29:43 raspberrypi ghome[15027]: [2018-10-12 22:29:43] [GHome] starting longpoll: http://127.0.0.1:8096/ghome?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1539376183695
Okt 12 22:29:43 raspberrypi ghome[15027]: [2018-10-12 22:29:43] Server listening on: http://:::3010
Okt 12 22:29:43 raspberrypi ghome[15027]: [2018-10-12 22:29:43] [GHome] Checking devices and attributes...
Okt 12 22:29:43 raspberrypi ghome[15027]: [2018-10-12 22:29:43] [GHome]   executing: http://127.0.0.1:8096/ghome?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
Okt 12 22:29:43 raspberrypi ghome[15027]: [2018-10-12 22:29:43] [GHome]   executing: http://127.0.0.1:8096/ghome?cmd=jsonlist2%20TYPE=ghome&XHR=1
Okt 12 22:29:43 raspberrypi ghome[15027]: [2018-10-12 22:29:43] [GHome] Fetching FHEM devices...
Okt 12 22:29:43 raspberrypi ghome[15027]: [2018-10-12 22:29:43] [GHome] fetching: http://127.0.0.1:8096/ghome?cmd=jsonlist2%20room=GoogleHome&XHR=1
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome] got: 19 results
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome] azi_Heizung_Clima is thermostat
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome] azi_Heizung_Clima has
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome]   TargetTemperature [desired-temp]
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome]   Custom Actuation [ValvePosition]
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome]   CurrentTemperature [measured-temp]
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome]   CurrentRelativeHumidity [humidity]
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome]   CurrentHeatingCoolingState [undefined]
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome] { reading: 'desired-temp',
Okt 12 22:29:44 raspberrypi ghome[15027]:   cmd: 'desired-temp',
Okt 12 22:29:44 raspberrypi ghome[15027]:   delay: true,
Okt 12 22:29:44 raspberrypi ghome[15027]:   minValue: 5,
Okt 12 22:29:44 raspberrypi ghome[15027]:   maxValue: 30,
Okt 12 22:29:44 raspberrypi ghome[15027]:   minStep: 0.5,
Okt 12 22:29:44 raspberrypi ghome[15027]:   device: 'azi_Heizung_Clima',
Okt 12 22:29:44 raspberrypi ghome[15027]:   informId: 'azi_Heizung_Clima-desired-temp',
Okt 12 22:29:44 raspberrypi ghome[15027]:   characteristic_type: 'TargetTemperature',
Okt 12 22:29:44 raspberrypi ghome[15027]:   log:
Okt 12 22:29:44 raspberrypi ghome[15027]:    { [Function: bound ]
Okt 12 22:29:44 raspberrypi ghome[15027]:      debug: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      info: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      warn: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      error: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      log: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      prefix: 'GHome' } }
Okt 12 22:29:44 raspberrypi ghome[15027]:   2018-10-12 22:29:44 caching: azi_Heizung_Clima-desired-temp: 17.0
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome] { reading: 'ValvePosition',
Okt 12 22:29:44 raspberrypi ghome[15027]:   name: 'Actuation',
Okt 12 22:29:44 raspberrypi ghome[15027]:   format: 'UINT8',
Okt 12 22:29:44 raspberrypi ghome[15027]:   unit: 'PERCENTAGE',
Okt 12 22:29:44 raspberrypi ghome[15027]:   maxValue: 100,
Okt 12 22:29:44 raspberrypi ghome[15027]:   minValue: 0,
Okt 12 22:29:44 raspberrypi ghome[15027]:   minStep: 1,
Okt 12 22:29:44 raspberrypi ghome[15027]:   device: 'azi_Heizung_Clima',
Okt 12 22:29:44 raspberrypi ghome[15027]:   informId: 'azi_Heizung_Clima-ValvePosition',
Okt 12 22:29:44 raspberrypi ghome[15027]:   characteristic_type: '4648454d-0201-686F-6D65-627269646765',
Okt 12 22:29:44 raspberrypi ghome[15027]:   log:
Okt 12 22:29:44 raspberrypi ghome[15027]:    { [Function: bound ]
Okt 12 22:29:44 raspberrypi ghome[15027]:      debug: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      info: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      warn: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      error: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      log: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      prefix: 'GHome' } }
Okt 12 22:29:44 raspberrypi ghome[15027]:   2018-10-12 22:29:44 caching: azi_Heizung_Clima-ValvePosition: 0
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome]     caching: Custom Actuation: 0 (as number; from '0')
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome] { reading: 'measured-temp',
Okt 12 22:29:44 raspberrypi ghome[15027]:   minValue: -30,
Okt 12 22:29:44 raspberrypi ghome[15027]:   device: 'azi_Heizung_Clima',
Okt 12 22:29:44 raspberrypi ghome[15027]:   informId: 'azi_Heizung_Clima-measured-temp',
Okt 12 22:29:44 raspberrypi ghome[15027]:   characteristic_type: 'CurrentTemperature',
Okt 12 22:29:44 raspberrypi ghome[15027]:   log:
Okt 12 22:29:44 raspberrypi ghome[15027]:    { [Function: bound ]
Okt 12 22:29:44 raspberrypi ghome[15027]:      debug: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      info: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      warn: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      error: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      log: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      prefix: 'GHome' } }
Okt 12 22:29:44 raspberrypi ghome[15027]:   2018-10-12 22:29:44 caching: azi_Heizung_Clima-measured-temp: 23.6
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome] { reading: 'humidity',
Okt 12 22:29:44 raspberrypi ghome[15027]:   device: 'azi_Heizung_Clima',
Okt 12 22:29:44 raspberrypi ghome[15027]:   informId: 'azi_Heizung_Clima-humidity',
Okt 12 22:29:44 raspberrypi ghome[15027]:   characteristic_type: 'CurrentRelativeHumidity',
Okt 12 22:29:44 raspberrypi ghome[15027]:   log:
Okt 12 22:29:44 raspberrypi ghome[15027]:    { [Function: bound ]
Okt 12 22:29:44 raspberrypi ghome[15027]:      debug: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      info: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      warn: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      error: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      log: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      prefix: 'GHome' } }
Okt 12 22:29:44 raspberrypi ghome[15027]:   2018-10-12 22:29:44 caching: azi_Heizung_Clima-humidity: 61
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome] { default: 'HEAT',
Okt 12 22:29:44 raspberrypi ghome[15027]:   device: 'azi_Heizung_Clima',
Okt 12 22:29:44 raspberrypi ghome[15027]:   informId: 'azi_Heizung_Clima-undefined',
Okt 12 22:29:44 raspberrypi ghome[15027]:   characteristic_type: 'CurrentHeatingCoolingState',
Okt 12 22:29:44 raspberrypi ghome[15027]:   log:
Okt 12 22:29:44 raspberrypi ghome[15027]:    { [Function: bound ]
Okt 12 22:29:44 raspberrypi ghome[15027]:      debug: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      info: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      warn: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      error: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      log: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      prefix: 'GHome' } }
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome] bad_Heizung_Clima is thermostat
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome] bad_Heizung_Clima has
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome]   TargetTemperature [desired-temp]
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome]   Custom Actuation [ValvePosition]
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome]   CurrentTemperature [measured-temp]
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome]   CurrentRelativeHumidity [humidity]
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome]   CurrentHeatingCoolingState [undefined]
Okt 12 22:29:44 raspberrypi ghome[15027]: [2018-10-12 22:29:44] [GHome] { reading: 'desired-temp',
Okt 12 22:29:44 raspberrypi ghome[15027]:   cmd: 'desired-temp',
Okt 12 22:29:44 raspberrypi ghome[15027]:   delay: true,
Okt 12 22:29:44 raspberrypi ghome[15027]:   minValue: 5,
Okt 12 22:29:44 raspberrypi ghome[15027]:   maxValue: 30,
Okt 12 22:29:44 raspberrypi ghome[15027]:   minStep: 0.5,
Okt 12 22:29:44 raspberrypi ghome[15027]:   device: 'bad_Heizung_Clima',
Okt 12 22:29:44 raspberrypi ghome[15027]:   informId: 'bad_Heizung_Clima-desired-temp',
Okt 12 22:29:44 raspberrypi ghome[15027]:   characteristic_type: 'TargetTemperature',
Okt 12 22:29:44 raspberrypi ghome[15027]:   log:
Okt 12 22:29:44 raspberrypi ghome[15027]:    { [Function: bound ]
Okt 12 22:29:44 raspberrypi ghome[15027]:      debug: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      info: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      warn: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      error: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      log: [Function],
Okt 12 22:29:44 raspberrypi ghome[15027]:      prefix: 'GHome' } }
Okt 12 22:29:44 raspberrypi ghome[15027]:   2018-10-12 22:29:44 caching: bad_Heizung_Clima-desired-temp: 17.0
Okt 12 22:29:44 raspbe usw....




EDIT II:
Tja, die Synchronisation funktioniert überhaupt nicht mehr.
Habe ghome nochmal neu installiert --> nix
Habe alle Geräte nacheinander aus dem Raum entfernt, bis nur noch das Device über war, was von Anfang an ohne Probleme funktioniert hat --> nix
Wie bereits beschrieben, lassen sich alle bis jetzt vorhandenen Devices noch steuern.

Alle Seiten sind mit entsprechenden Rückmeldungen erreichbar:
/oauth --> response_type undefined must equal "code"
/token --> missing required parameter
/login --> normale Loginseite mit fhem- und Google-Bildern und Eingabemasken
/ghome --> Cannot GET /
sind von außen per https mit gültigem Zertifikat erreichbar.

Weiß nicht mehr weiter. Sorry.
Kann es mit dem Update des Google Assistant bzw. der Home App was zu tun haben?

Vielen Dank für Tips!
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

kadettilac89

Update von Ghome kam auch bei mir an, Buttons zum Schalten und mehr ... Sync funktioniert aber weiterhin problemlos.

Ich habe bei bei Änderungen an der Reverse-Proxy Konfiguration ähnliche Probleme.
--> Ändere mal den Link in Google Actions überall auf einen anderen (einfach ein Zeichen anhängen). Link meine ich den, unter der dein Fhem / Ghome erreichbar ist. Sowohl bei Actions als auch bei acount linking.
--> Ändere bei account  linking auch mal die Test instructions auf ein anderes Device
--> SAve
--> Test

Nun Link  wieder zurück setzen auf deinen Link, Test instructions zurückändern

Dadurch wurden alle möglichen Einstellungen bei Google neu gespeichert bzw. initiert. Bei mir hat das schön öfter geholfen.

SouzA

#439
Vielen Dank für deine Antwort.
Hilft aber auch nichts.
Habe alle URLs in GActions geändert. Gesaved und getestet.
Danach wieder zurück geändert und wieder getestet.
--> Keine Synchronisierung möglich.

Hab sogar nochmal das "neue" GActions runtergeladen und somit aufm rpi geupdatet. Mit Erfolgsmeldung. Allerdings funktioniert das auch nicht.
--> Keine Synchronisation möglich.

Ich sehe in den Logs aber auch nicht mehr diese SynchPosts. Ich habe keine Ahnung wieso.
Wie oben schon beschrieben, sind die Seiten alle mit gültigem Zertifikat erreichbar.
Latein --> zu Ende!

EDIT:
Jetzt bin ich mittlerweile auch echt frustriert... Habe die GActions komplett neu erstellt (neue ID)... Nix.
Dann wird jetzt allerdings auch 2x FHEM-Connector in der Home App angezeigt! >:( Obwohl ich das Projekt gelöscht habe!

Würde das gerne nochmal komplett neu anfangen, ohne rpi neu installieren zu müssen.
Reicht doch, die Ordner ghome-fhem und .ghome zu löschen, oder?

EDIT II:
Hab es nochmal komplett nach Anleitung gemacht.
Habe in GActions einen anderen Namen verwendet: Connector-FHEM
Musste erneut Accountzugriff gewähren.
Taucht in der Home App auf.
Login-Seite--> Nach Eingabe von User und PW --> "Die Einstellungen konnten nicht übernommen werden. Prüfe deine Verbindung." Und das wars. (Vielfach versucht!)

Ich würde sagen, das hat sich irgendwo was verändert.

EDIT III:
Ich kriege das zurück am Ende:


journalctl -u ghome -n 100 --no-pager
Okt 14 14:32:53 raspberrypi ghome[6104]:   uid: 99 }
Okt 14 14:32:53 raspberrypi ghome[6104]: could not find user
Okt 14 14:32:53 raspberrypi ghome[6104]: unable to generate a token false
Okt 14 14:32:53 raspberrypi ghome[6104]: POST /token 400 5.884 ms - 26
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

dominik

Hi,
wenn der Sync nicht läuft am einfachsten in der Home App den Account unlinken und dann wieder verlinken.
Deine Fehlermeldung sagt jedoch aus, dass kein User mit dem Namen gefunden wird. Prüfe bitte nochmals ob du den richtigen Wert aus der config verwendest.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

SouzA

#441
Zitat von: dominik am 14 Oktober 2018, 21:02:53
Deine Fehlermeldung sagt jedoch aus, dass kein User mit dem Namen gefunden wird. Prüfe bitte nochmals ob du den richtigen Wert aus der config verwendest.

Hi,
ja, verwende ich. Hab copy&paste gemacht. Der findet den User nicht. Immerwieder...
Could not find user....

EDIT:
Keine Chance. Hab mal alles auf 123. Da ändert sich nix mehr. Kaputt.
BTW. Auch nen neuen Raum mit einem(!!) Dummy wie in der Anleitung.
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

dominik

Bin leider gerade unterwegs und kann daher nicht viel helfen. Die config.json passt auch, richtige Stelle gespeichert und du führst ghome mit dem gleichen User aus?
Ansonsten mal paar Logs in auth-provider.js einbauen zum Testen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

SouzA

Zitat von: dominik am 15 Oktober 2018, 22:47:45
Bin leider gerade unterwegs und kann daher nicht viel helfen. Die config.json passt auch, richtige Stelle gespeichert und du führst ghome mit dem gleichen User aus?
Ansonsten mal paar Logs in auth-provider.js einbauen zum Testen.
Hi, vielen Dank, dass Du helfen möchtest.
Was heißt, du führst ghome mit dem gleichen User aus?
Das ghome ist unter pi installiert, GHome ist der User in fhem.
Der user für das login ist ein anderer... (ausgdachte, zufällige Zeichenfolge)

Logs einbauen?  :o :-[ ;D Ja is klaa...
Es brennt mir nicht unter den Nägeln und ist total cool für die Kiddies zum spielen. Aber nicht lebensnotwendig.
Ich wäre dir zu Dank verpflichtet (mehr als eh schon...  ;D) wenn du dich einfach melden würdest, wenn du wieder ein wenig Zeit hast. Vielleicht kriegen wir dann ja die Kuh vom Eis. Vielen Dank.
Bis dahin viel Erfolg
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

kadettilac89

@SouzA, kannst du mal den Link zum Login posten? ... ohne ID / Secret Key. Nur was hinter <domain>/...... / steht. Der Teil /..../ begann mit "login?". Bei mir ist das jetzt oauth und meine Konfig im Reverse Proxy passt nicht mehr. Vielleicht hat sich die Authentifizierung geändert.

SouzA

#445
Hi,
Nett was von dir zu lesen...  ;) ;D
Ich hoffe, dass ich dich jetzt richtig verstanden habe. Weiß nämlich nicht, was du von mir willst^^

Alles was ich jetzt im Apache weiterleite ist dies:
https://<domain>.de/ghome --> http://localhost:3010/
https://<domain>.de/oauth --> http://localhost:3010/oauth
https://<domain>.de/token --> http://localhost:3010/token
https://<domain>.de/login --> http://localhost:3010/login
https://<domain>.de/images --> http://localhost:3010/images
https://<domain>.de/bower_components --> http://localhost:3010/bower_components

Welche ID und welcher Secret Key?

Bis denn
SouzA

EDIT:
Was mir auffällt ist, dass beim ersten Mal Versuch der Verbindung der User erkannt wird und nicht mit unbekanntem User auftrumpft. Aber in der App wird trotzdem die Verbindungsschwierigkeit angezeigt. Jeder weiterer Versuch wird mit unbekannter User quittiert. Da wird man ja auch nicht mehr aufgefordert User und PW einzugeben.
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

kadettilac89

nö, das meinte ich nicht. ich melde mich später nochmal ... wenn ich etwas Zeit finde ....

kadettilac89

ich vermute dass die Links von Google geändert wurden und ein Re-direkt eingebaut wurde. Das hat zumindest bei mir das Setup nutzlos gemacht.

Mein Setup ist natürlich nicht Standard, Port ungleich intern <--> extern, Subdomain, Reverse Proxy ... aber ich könnte mir vorstellen, dass mit dem Umbau von Ghome auch noch was anderes geändert wurde was bei dir nun aufschlägt.

Was du bei dir mal testen könntest ... setze mal die Ghome-App komplett zurück. Erst die Verbindung zu deinem FHEM Connector trennen und ... wenn du Android hast ... Einstellungen -- Apps -- Home -- Speicher löschen.

Vielleicht ist bei dir nur etwas ich Cache das Probleme macht.

Ich habe aktuell keine Zeit mich näher damit zu befassen ....

Ankommender Request bei der Registrierung

https://<domain>:<port>/ghomex/oauth?response_type=code&client_id=xxxxxxxx9WCkVvveU3KflTTwcrFSPuv4pShH&redirect_uri=https://oauth-redirect.googleusercontent.com/r/fhem-1ca16&state=CqQCQU5EMkJsa19YR3J6UnpEd2R.......


Redirekt .... Subdomain /ghomex/ fehlt ... das hatte aber funktioniert, darum habe ich auch mein Reverse-Proxy vor ein paar Tagen gepostet

https://<domain>:<port>/login?client_id=xxxxxxxx9WCkVvveU3KflTTwcrFSPuv4pShH&redirect_uri=https%3A%2F%2Foauth-redirect.googleusercontent.com%2Fr%2Ffhem-1ca16&redirect=/oauth&state=CqQCQU5EMkJsbmZFZFNoRndNWXRYYXR2.......

SouzA

Hi,
verstehe ich dich richtig, dass dein Proxy imom auch nicht mehr funktioniert?

Die Home-App habe ich komplett resetet. Gibt keine Verbesserung.
Allerdings hatte ich zu diesem Zeitpunkt schon die Verbindung zum Connector getrennt. Kriege den ja nicht mehr verbunden ;)

Probiere auch schon im Proxy verschidenste Konfigs aus. Bis jetzt erfolglos.

Bis denn
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

kadettilac89

Zitat von: SouzA am 17 Oktober 2018, 22:35:13
Hi,
verstehe ich dich richtig, dass dein Proxy imom auch nicht mehr funktioniert?

Die Home-App habe ich komplett resetet. Gibt keine Verbesserung.
Allerdings hatte ich zu diesem Zeitpunkt schon die Verbindung zum Connector getrennt. Kriege den ja nicht mehr verbunden ;)

Probiere auch schon im Proxy verschidenste Konfigs aus. Bis jetzt erfolglos.

Bis denn
SouzA

Richtig, mein Ghome funktioniert nicht mehr. Weiß nicht ob ich die nächste Zeit dazu komme, mir das anzusehen.

Ich denke, dass es nur die Login-Location ist, welche nun anders ist.

Da Login, oauth, token .. separat sind, könnte es funktionieren wenn du zum einmaligen Registrieren den Port 443 oder welchen du nach außen offen hast, direkt auf dein Ghome forwardest und reverse Proxy (apache) deaktivierst. Wenn dann Ghome bekannt ist, kannst du mal das Schalten testen. Wenn auch das funktioniert den reverse Proxy wieder aktivieren mit oauth und token Location.