FHEM Forum

FHEM - Hausautomations-Systeme => Home Connect => Thema gestartet von: maddinthebrain am 10 Juni 2020, 09:27:31

Titel: Gelöst: HomeConnectConnection cannot noad module
Beitrag von: maddinthebrain am 10 Juni 2020, 09:27:31
Hallo,

Ich habe nach der Wiki Anleitung meine Applikation im Entwickleraccount eingerichtet und das Homeconnect Modul installiert. Wenn ich nun nach dem Muster define hcconn HomeConnectConnection API-KEY REDIRECT-URL simulator CLIENT-SECRET in Fhem
einrichten will, kommt die Fehlermeldung "Cannot load module HomeConnectConnection"

Woran liegt das? Weiß jemand eine Lösung?

Viele Grüße
Martin
Titel: Antw:Fehler: HomeConnectConnection cannot noad module
Beitrag von: CoolTux am 10 Juni 2020, 09:28:46
Schau mal bitte ins FHEM Log. Da sollte stehen was ihm fehlt.
Titel: Antw:Fehler: HomeConnectConnection cannot noad module
Beitrag von: maddinthebrain am 11 Juni 2020, 11:28:28
Dort findet sich das:
reload: Error:Modul 48_HomeConnectConnection deactivated:
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base ./FHEM ./FHEM/lib) at ./FHEM/48_HomeConnectConnection.pm line 26.
BEGIN failed--compilation aborted at ./FHEM/48_HomeConnectConnection.pm line 26.

2020.06.10 09:19:20 0: Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base ./FHEM ./FHEM/lib) at ./FHEM/48_HomeConnectConnection.pm line 26.
BEGIN failed--compilation aborted at ./FHEM/48_HomeConnectConnection.pm line 26.

2020.06.10 09:21:53 3: set MQTT2_FHEM_Server publish /SmartHome/Wohnzimmer/Heizung/state 17.0°C (rf error) : Last parameter must be quiet
2020.06.10 09:21:53 3: ntfy_publish_mqtt return value: Last parameter must be quiet
2020.06.10 09:23:46 1: reload: Error:Modul 48_HomeConnectConnection deactivated:
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base ./FHEM ./FHEM/lib) at ./FHEM/48_HomeConnectConnection.pm line 26.
BEGIN failed--compilation aborted at ./FHEM/48_HomeConnectConnection.pm line 26.

2020.06.10 09:23:46 0: Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base ./FHEM ./FHEM/lib) at ./FHEM/48_HomeConnectConnection.pm line 26.
BEGIN failed--compilation aborted at ./FHEM/48_HomeConnectConnection.pm line 26.

2020.06.10 09:25:21 1: reload: Error:Modul 48_HomeConnectConnection deactivated:
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base ./FHEM ./FHEM/lib) at ./FHEM/48_HomeConnectConnection.pm line 26.
BEGIN failed--compilation aborted at ./FHEM/48_HomeConnectConnection.pm line 26.

2020.06.10 09:25:21 0: Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base ./FHEM ./FHEM/lib) at ./FHEM/48_HomeConnectConnection.pm line 26.
BEGIN failed--compilation aborted at ./FHEM/48_HomeConnectConnection.pm line 26.


Sagt mir allerdings nichts.

Grüße Martin
Titel: Antw:Fehler: HomeConnectConnection cannot noad module
Beitrag von: CoolTux am 11 Juni 2020, 11:29:57
apt-get install libswitch-perl

Aber kann mir nicht vorstellen das dies nicht in der Anleitung steht.
Titel: Antw:Fehler: HomeConnectConnection cannot noad module
Beitrag von: maddinthebrain am 11 Juni 2020, 16:42:56
Danke es hat funktioniert, jedoch sagt das Device nun login necessary . Was wird denn hier erwartet bei set erwartet?

Viele Grüße

Martin
Titel: Antw:Fehler: HomeConnectConnection cannot noad module
Beitrag von: CoolTux am 11 Juni 2020, 18:01:33
Das steht sicherlich in der Commandref
Titel: Antw:Fehler: HomeConnectConnection cannot noad module
Beitrag von: maddinthebrain am 11 Juni 2020, 22:08:49
Hmm, da hast allerdings Recht...   :[ wer lesen kann...
Das Einloggen mit Email und "password", hier geht aber nicht das Passwort des eigentlichen Homeconnect Accounts, funktioniert,
Aber nach dem klicken auf Approve kommt folgende Fehlermeldung:
{"error":{"key":"SDK.Simulator.InternalError","description":"An internal error occured"}}
Ich habe schon alles gecheckt, Client ID, client Secret, Redirect Url. Ist alles korrekt.

Das Wiki oder commandref hilft auch nicht weiter...

Viele Grüße

Martin
Titel: Antw:Fehler: HomeConnectConnection cannot noad module
Beitrag von: CoolTux am 12 Juni 2020, 06:16:35
Dann muss sich das mal einer anschauen der das Modul verwendet.


Grüße
Titel: Antw:Fehler: HomeConnectConnection cannot noad module
Beitrag von: swhome am 14 Juni 2020, 21:18:00
Zitat von: maddinthebrain am 11 Juni 2020, 22:08:49Aber nach dem klicken auf Approve kommt folgende Fehlermeldung:
{"error":{"key":"SDK.Simulator.InternalError","description":"An internal error occured"}}

Hi, hast Du keine echten Hausgeräte oder willst Du den Simulator vielleicht gar nicht benutzen? Dann bitte das Wörtchen aus der Definition entfernen. Lg! Stefan
Titel: Antw:Fehler: HomeConnectConnection cannot noad module
Beitrag von: maddinthebrain am 14 Juni 2020, 22:02:59
Doch natürlich möchte ich meinen Dunstabzug. Ich hatte es nur so verstanden, dass man das so machen soll.
OK, danke es funktioniert. Leider ist der Wiki Artikel an der Stelle unverständlich. Der Artikel ist insgesamt schwierig zu lesen. Ich werde das mal verbessern

Viele Grüße

Martin
Titel: Antw:Gelöst: HomeConnectConnection cannot noad module
Beitrag von: DJFS am 01 Mai 2021, 10:53:41
Hallo,

was kann der Fehler "Cannot load module HomeConnectConnection" noch sein?
Titel: Antw:Gelöst: HomeConnectConnection cannot noad module
Beitrag von: MadMax-FHEM am 01 Mai 2021, 11:54:20
Zitat von: DJFS am 01 Mai 2021, 10:53:41
Hallo,

was kann der Fehler "Cannot load module HomeConnectConnection" noch sein?

Alles Mögliche... ;)

Nein, ernst: was steht denn im Log?
Da sollte doch stehen warum...

Gruß, Joachim
Titel: Antw:Gelöst: HomeConnectConnection cannot noad module
Beitrag von: DJFS am 01 Mai 2021, 13:05:54
Wo finde ich den log?  Ich wollte auch schon schauen...
Titel: Antw:Gelöst: HomeConnectConnection cannot noad module
Beitrag von: MadMax-FHEM am 01 Mai 2021, 13:32:38
Auf FhemWeb links -> Logfile

Gruß, Joachim
Titel: Antw:Gelöst: HomeConnectConnection cannot noad module
Beitrag von: DJFS am 01 Mai 2021, 14:52:10
mmh, ok.
das habe ich früher vermutlich mal deaktiviert.
Titel: Antw:Gelöst: HomeConnectConnection cannot noad module
Beitrag von: MadMax-FHEM am 01 Mai 2021, 15:19:41
Wie deaktiviert?

Dann halt per Linux-Console (angenommen dein fhem läuft auf Linux):


cat /opt/fhem/log/fhem-2021-05.log


oder halt:


cat /opt/fhem/log/fhem-2021-04.log


Gruß, Joachim
Titel: Antw:Gelöst: HomeConnectConnection cannot noad module
Beitrag von: DJFS am 01 Mai 2021, 17:20:15
ja nee,
das Verzeichnis gibt es nicht. ich Logge meine Ganzen Sensoren und Wechselrichter und so weiter alles auf USB-Stick, weil ich nur eine 64GB SD-Karte habe.
Titel: Antw:Gelöst: HomeConnectConnection cannot noad module
Beitrag von: DJFS am 01 Mai 2021, 17:34:07
also,
LÖSUNG BEI MIR!!!  für alle:

Ich hatte keine Berechtigung auf die Dateien
48_HomeConnectConnection.pm
48_HomeConnect.pm

ich habe dies mir

sudo CHMOD -R 777 48_HomeConnectConnection.pm 

geändert.

Mal sehen wie weit ich jetzt komme...
der Fehler "HomeConnectConnection cannot load module "   ist zumindest weg und das Modul ist da.
Titel: Antw:Gelöst: HomeConnectConnection cannot noad module
Beitrag von: MadMax-FHEM am 01 Mai 2021, 18:33:54
FALSCHE Lösung!
Wenn man das überhaupt Lösung nennen darf/sollte (nur, weil es damit geht)...

Warum immer alle einfach alles allen erlauben...
...mir ein Rätsel...

Richtig:

sudo chown fhem: /opt/fhem/FHEM/48_HomeConnectConnection.pm
sudo chown fhem: /opt/fhem/FHEM/48_HomeConnect.pm


Gruß, Joachim