Fehlerhafte Anleitung

Also ich habe ein Raspbian (non Lite) installiert und dann noch folgender Anleitung Homegear installiert https://doc.homegear.eu/data/homegear/installation.html#raspbian-8-jessie

Nun stehe ich vor dem Rätzel was ich als Nächstes tun sollte. ich bin nun zu diesem Schritt gesprungen.
https://doc.homegear.eu/data/homegear/first_steps.html#how-to-interact-with-homegear

Nun bekomme ich folgende Meldungen:

pi@raspberrypi:~ $ homegear -r 08/10/16 12:19:28.291 Could not connect to socket. Error: Permission denied 08/10/16 12:19:28.292 Could not connect to socket. Error: Permission deniedoder

pi@raspberrypi:~ $ sudo homegear -r 08/10/16 12:20:32.359 Could not connect to socket. Error: No such file or directory 08/10/16 12:20:32.359 Could not connect to socket. Error: No such file or directory ich habe mal den Service Status geprüft

pi@raspberrypi:~ $ service homegear status
● homegear.service - Homegear
   Loaded: loaded (/lib/systemd/system/homegear.service; enabled)
   Active: active (running) since Wed 2016-08-10 12:26:27 UTC; 10s ago
  Process: 20159 ExecStartPre=/usr/bin/homegear -u homegear -g homegear -p /var/run/homegear/homegear.pid -pre (code=exited, status=0/SUCCESS)
 Main PID: 20162 (homegear)
   CGroup: /system.slice/homegear.service
           └─20162 /usr/bin/homegear -u homegear -g homegear -p /var/run/homegear/homegear.pid

ich hab den Verdacht das irgendwas mit den Rechten nicht stimmt. Ich habe mit Homegear schon etwas Erfahrungen gesammelt mit dem fertigen RPi Lite Image. Dort hat bei mir immer alles super geklappt. Wäre super wenn mir wer weiterhalfen kann?

Irgendetwas stimmt da nicht. Poste mal die Ausgabe von

und die Logdatei (/var/log/homegear/homegear.log). Generell geht es mit dem normalen Raspbian-Image. Das ist auch getestet.

Viele Grüße

Sathya

Ja es schein ein Problem mit den Rechten zu geben. Ich habe das ganze als User “Pi” ausgeführt.

pi@raspberrypi:~ $ ls -l /var/run/homegear ls: cannot open directory /var/run/homegear: Permission denied

pi@raspberrypi:~ $ sudo ls -l /var/run/homegear total 4 -rw-r--r-- 1 homegear homegear 5 Aug 10 14:04 homegear.pid srwxrwx--- 1 homegear homegear 0 Aug 10 14:04 homegearSE.sock

Nein, dass du als Benutzer keinen Zugriff darauf hast, ist vollkommen normal. Das Log brauchen wir :wink:.

Nachtrag: Da fehlt der CLI-Socket, warum sagt uns hoffentlich das Log.

[code]08/10/16 11:48:50.962 Starting Homegear…
08/10/16 11:48:50.963 Homegear version 0.6.6-1463
08/10/16 11:48:50.963 Git commit SHA of libhomegear-base: -
08/10/16 11:48:50.963 Git branch of libhomegear-base: -
08/10/16 11:48:50.963 Git commit SHA of Homegear: -
08/10/16 11:48:50.963 Git branch of Homegear: -
08/10/16 11:48:50.965 Info: Setting allowed core file size to “4294967295” for user with id 0 and group with id 0.
08/10/16 11:48:50.965 Info: Core file size now is “4294967295”.
08/10/16 11:48:50.966 Info: Setting maximum thread priority to “4294967295” for user with id 0 and group with id 0.
08/10/16 11:48:50.966 Info: Maximum thread priority now is “4294967295”.
08/10/16 11:48:50.977 Info: Backing up database…
08/10/16 11:48:51.386 Initializing database…
08/10/16 11:48:51.393 User name not found.
08/10/16 11:48:51.394 User name not found.
08/10/16 11:48:51.398 Info: Loading family module mod_miscellaneous.so
08/10/16 11:48:51.403 /etc/homegear/families/miscellaneous.conf
08/10/16 11:48:51.404 Info: Loading family module mod_philipshue.so
08/10/16 11:48:51.410 /etc/homegear/families/philipshue.conf
08/10/16 11:48:51.411 Info: Loading family module mod_homematicbidcos.so
08/10/16 11:48:51.427 /etc/homegear/families/homematicbidcos.conf
08/10/16 11:48:51.430 Info: Loading family module mod_insteon.so
08/10/16 11:48:51.439 /etc/homegear/families/insteon.conf
08/10/16 11:48:51.440 Info: Loading family module mod_sonos.so
08/10/16 11:48:51.447 /etc/homegear/families/sonos.conf
08/10/16 11:48:51.448 Info: Loading family module mod_homematicwired.so
08/10/16 11:48:51.457 /etc/homegear/families/homematicwired.conf
08/10/16 11:48:51.458 Info: Loading family module mod_max.so
08/10/16 11:48:51.468 /etc/homegear/families/max.conf
08/10/16 11:48:51.470 Info: Setting up physical interfaces and GPIOs…
08/10/16 11:48:51.470 Could not set owner for device /dev/spidev0.0: No such file or directory
08/10/16 11:48:51.471 Could not set permissions for device /dev/spidev0.0: No such file or directory
08/10/16 11:48:51.473 Info: Dropping privileges to user homegear (112) and group homegear (119)
08/10/16 11:48:51.474 Info: Homegear is (now) running as user with id 112 and group with id 119.
08/10/16 11:48:51.474 Starting script engine server…
08/10/16 11:48:51.535 Initializing licensing controller…
08/10/16 11:48:51.536 Loading licensing controller data…
08/10/16 11:48:51.410 /etc/homegear/families/philipshue.conf
08/10/16 11:48:51.411 Info: Loading family module mod_homematicbidcos.so
08/10/16 11:48:51.427 /etc/homegear/families/homematicbidcos.conf
08/10/16 11:48:51.430 Info: Loading family module mod_insteon.so
08/10/16 11:48:51.439 /etc/homegear/families/insteon.conf
08/10/16 11:48:51.440 Info: Loading family module mod_sonos.so
08/10/16 11:48:51.447 /etc/homegear/families/sonos.conf
08/10/16 11:48:51.448 Info: Loading family module mod_homematicwired.so
08/10/16 11:48:51.457 /etc/homegear/families/homematicwired.conf
08/10/16 11:48:51.458 Info: Loading family module mod_max.so
08/10/16 11:48:51.468 /etc/homegear/families/max.conf
08/10/16 11:48:51.470 Info: Setting up physical interfaces and GPIOs…
08/10/16 11:48:51.470 Could not set owner for device /dev/spidev0.0: No such file or directory
08/10/16 11:48:51.471 Could not set permissions for device /dev/spidev0.0: No such file or directory
08/10/16 11:48:51.473 Info: Dropping privileges to user homegear (112) and group homegear (119)
08/10/16 11:48:51.474 Info: Homegear is (now) running as user with id 112 and group with id 119.
08/10/16 11:48:51.474 Starting script engine server…
08/10/16 11:48:51.535 Initializing licensing controller…
08/10/16 11:48:51.536 Loading licensing controller data…
08/10/16 11:48:51.536 Loading devices…
08/10/16 11:48:51.536 Info: Not initializing device family HomeMatic BidCoS, because no physical interface was found.
08/10/16 11:48:51.536 Info: Disposing family module mod_homematicbidcos.so
08/10/16 11:48:51.537 Info: Not initializing device family HomeMatic Wired, because no physical interface was found.
08/10/16 11:48:51.537 Info: Disposing family module mod_homematicwired.so
08/10/16 11:48:51.537 Info: Not initializing device family Insteon, because no physical interface was found.
08/10/16 11:48:51.537 Info: Disposing family module mod_insteon.so
08/10/16 11:48:51.538 Loading XML RPC devices…
08/10/16 11:48:51.712 Loading device 1
08/10/16 11:48:51.714 Info: Not initializing device family Philips hue, because no physical interface was found.
08/10/16 11:48:51.714 Info: Disposing family module mod_philipshue.so
08/10/16 11:48:51.715 Loading XML RPC devices…
08/10/16 11:48:51.736 Loading device 2
08/10/16 11:48:51.738 Loading XML RPC devices…
08/10/16 11:48:51.742 Loading device 3
08/10/16 11:48:51.742 Start listening for packets…
08/10/16 11:48:51.744 Module MAX: TI CC110X “My-MAX-CC1101”: Couldn’t open rf device “/dev/spidev0.0”: No such file or directory
08/10/16 11:48:51.745 Module MAX: TI CC110X “My-MAX-CC1101”: Connection to TI CC1101 closed unexpectedly… Trying to reconnect…
08/10/16 11:48:51.74608/10/16 11:48:51.746 Module Sonos: Event server “My-Sonos-1234”: Info: Started listening on address 192.168.20.42 and port 7373Critic$
08/10/16 11:48:51.536 Info: Not initializing device family HomeMatic BidCoS, because no physical interface was found.
08/10/16 11:48:51.536 Info: Disposing family module mod_homematicbidcos.so
08/10/16 11:48:51.537 Info: Not initializing device family HomeMatic Wired, because no physical interface was found.
08/10/16 11:48:51.537 Info: Disposing family module mod_homematicwired.so
08/10/16 11:48:51.537 Info: Not initializing device family Insteon, because no physical interface was found.
08/10/16 11:48:51.537 Info: Disposing family module mod_insteon.so
08/10/16 11:48:51.538 Loading XML RPC devices…
08/10/16 11:48:51.712 Loading device 1
08/10/16 11:48:51.714 Info: Not initializing device family Philips hue, because no physical interface was found.
08/10/16 11:48:51.714 Info: Disposing family module mod_philipshue.so
08/10/16 11:48:51.715 Loading XML RPC devices…
08/10/16 11:48:51.736 Loading device 2
08/10/16 11:48:51.738 Loading XML RPC devices…
08/10/16 11:48:51.742 Loading device 3
08/10/16 11:48:51.742 Start listening for packets…
08/10/16 11:48:51.744 Module MAX: TI CC110X “My-MAX-CC1101”: Couldn’t open rf device “/dev/spidev0.0”: No such file or directory
08/10/16 11:48:51.745 Module MAX: TI CC110X “My-MAX-CC1101”: Connection to TI CC1101 closed unexpectedly… Trying to reconnect…
08/10/16 11:48:51.74608/10/16 11:48:51.746 Module Sonos: Event server “My-Sonos-1234”: Info: Started listening on address 192.168.20.42 and port 7373Critic$

08/10/16 11:48:51.747 Module MAX: TI CC110X “My-MAX-CC1101”: Couldn’t open rf device “/dev/spidev0.0”: No such file or directory
08/10/16 11:48:52.747 Error in file Systems/IPhysicalInterface.cpp line 331 in function virtual void BaseLib::Systems::IPhysicalInterface::openGPIO(uint32_t$
08/10/16 11:48:58.745 Closing database…
08/10/16 11:48:58.813 Info: Disposing family module mod_sonos.so
08/10/16 11:48:58.814 Info: Disposing family module mod_miscellaneous.so
08/10/16 11:48:58.814 Info: Disposing family module mod_max.so
08/10/16 11:49:03.202 Starting Homegear…
08/10/16 11:49:03.202 Homegear version 0.6.6-1463
08/10/16 11:49:03.202 Git commit SHA of libhomegear-base: -
08/10/16 11:49:03.202 Git branch of libhomegear-base: -
08/10/16 11:49:03.202 Git commit SHA of Homegear: -
08/10/16 11:49:03.202 Git branch of Homegear: -
08/10/16 11:49:03.203 Info: Setting allowed core file size to “4294967295” for user with id 0 and group with id 0.
08/10/16 11:49:03.204 Info: Core file size now is “4294967295”.
08/10/16 11:49:03.204 Info: Setting maximum thread priority to “4294967295” for user with id 0 and group with id 0.
08/10/16 11:49:03.204 Info: Maximum thread priority now is “4294967295”.
08/10/16 11:49:03.211 Info: Backing up database…
08/10/16 11:49:03.397 Initializing database…
08/10/16 11:49:03.404 User name not found.
08/10/16 11:49:03.405 User name not found.
[/code]

Das Log ist nicht ganz vollständig… Kannst du mir die vollständige Logdatei schicken? Zumindest scheint SPI nicht aktiviert zu sein. Aktiviere SPI mit “raspi-config” unter “Advanced Options => SPI”. Hilft das vielleicht schon?

Viele Grüße

Sathya

also hab mal Spi aktiviert. Ich bin jetzt damit deutlich weiter.

Ich geb mal die Schritte ein, die ich versucht habe.

[code]sudo homegear -r
fs 4
Device family “MAX!” selected.
(Family)> pon
Pairing mode enabled.
(Family)> ls
No peers are paired to this central.
(Family)> ps
Description: This command selects a peer.
Usage: peers select PEERID

Parameters:
PEERID: The id of the peer to select. Example: 513
[/code]

wie man sieht wird leider nichts angezeigt.

Ich habe es geschafft den Log File zu exportieren. Irgendwie habe ich anscheinend immer noch einen Fehler.
homegearexport.log (3.63 MB)

Lösche die Datei “/etc/udev/rules.d/99-com.rules”:

Dann klappt es. Das hier ist ein Berechtigungsproblem :wink:. Die o. g. Datei schränkt die Berechtigungen auf die GPIOs ein, so dass Homegear keinen Zugriff auf diese hat.

danke jetzt geht endlich alles. Super cool. Hab jetzt einen Raspberry Pi, der einen Max Cube mit dem CC1101, eine Hue Bridge mit einem Raspbee Zigbee Chip und ein Openhab in einem System. All in One Device :laughing:

hätte eine Frage unterstützt zufällig Homegear schon den Dresden Electronik ZigBee Chip
hab gesehen dass diese vor längerer Zeit mal thematisiert wurde.
https://forum.homegear.eu/viewtopic.php?t=32

Nein, der ZigBee-Chip wird noch nicht unterstützt. Über kurz oder lang soll ZigBee aber ebenfalls von Homegear direkt unterstützt werden.