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?
[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?
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 . 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
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