Homematic und Homematic IP am Raspberry

Begonnen von uwek, 23 September 2017, 17:40:48

Vorheriges Thema - Nächstes Thema

tkaiser

Hallo
Ich habe meinen Pi neu aufgesetzt und fehm neu installiert, IO
dann habe ich die vccu3 nach dieser Anleitung
https://github.com/alexreinert/piVCCU/blob/0dd35fa2f3c1b176733851e24747ac8f25922dcb/docs/setup/raspberrypi.md
installiert.
Der Befehl :sudo dpkg -s pivccu | grep 'Version' ergibt folgendes: sudo dpkg -s pivccu | grep
Aufruf: grep [OPTION]... MUSTER [DATEI]...
,,grep --help" liefert weitere Informationen.
dpkg-query: Paket »pivccu« ist nicht installiert und es ist keine Information verfügbar
Verwenden Sie dpkg --info (= dpkg-deb --info) zum Untersuchen von Archiven
und dpkg --contents (= dpkg-deb --contents) zum Auflisten ihres Inhalts.
Die CCU 3 ist aber erreichbar.
sudo pivccu-info
piVCCU version: 3.41.11-17
Kernel modules: Available
Raw UART dev:   Available
Rasp.Pi3 UART:  Assigned to GPIO pins
HMRF Hardware:  HM-MOD-RPI-PCB
HMIP Hardware:  HM-MOD-RPI-PCB
Board serial:   PEQ0533766
Radio MAC:      0x6a56c2
SGTIN:          3014F711A061A7D8A9918D06
State:          RUNNING
PID:            943
IP:             192.168.178.48
CPU use:        138.45 seconds
BlkIO use:      66.68 MiB
Link:           vethpivccu
TX bytes:      3.52 MiB
RX bytes:      4.94 MiB
Total bytes:   8.46 MiB


Das Problem ist das der RPC Server nicht startet
hat jemand eine idee


HM-ES-PMSw1-Pl, HM-TC-IT-WM-W-EU, HM-CC-RT-DN,
HM-LC-DIM1T-FM, HM-SEC-SCo, Harmony-Hub,Raspi3.
CUL 868, nanoCUL 433

tkaiser

Hallo
was mir noch aufgefallen ist, ist das ich am Bildschirm von meinem Raspi oben rechts: "Connection to dhcpcd lost " steht
Grüße
tkaiser
HM-ES-PMSw1-Pl, HM-TC-IT-WM-W-EU, HM-CC-RT-DN,
HM-LC-DIM1T-FM, HM-SEC-SCo, Harmony-Hub,Raspi3.
CUL 868, nanoCUL 433

deimos

Hi,

was genau meinst du mit RPC Server? Das ist  leider nicht wirklich eindeutig.

Viele Grüße
Alex

tkaiser

Sorry ich meinte RPC State,
Das läuft jetzt allerdings, brauchte wohl etwas länger
Kannst du mir etwas über die LAN Verbindung sagen, es funktioniert zwar aber
Am Monitor wird LAN durchgestrichen angezeigt
Gruß
Tkaiser
HM-ES-PMSw1-Pl, HM-TC-IT-WM-W-EU, HM-CC-RT-DN,
HM-LC-DIM1T-FM, HM-SEC-SCo, Harmony-Hub,Raspi3.
CUL 868, nanoCUL 433

deimos

Hi,

Zitat von: tkaiser am 04 Februar 2019, 10:41:01
Kannst du mir etwas über die LAN Verbindung sagen, es funktioniert zwar aber
Am Monitor wird LAN durchgestrichen angezeigt

Die Anzeige basiert auf dem dhcpcd, welcher leider nicht sauber mit Netzwerk Bridges klar kommt und daher im Schritt 7 der Installationsanleitung für den Raspberry deinstalliert wird.

Allgmein möchte ich dir aber noch den Rat geben, dass du sehr gut auf deinen Arbeitsspeicher aufpassen solltest, wenn du auf dem Raspberry einen Desktop laufen hast. Der Raspberry hat nur 1GB RAM, von welchem die Grafikkarte sich auch noch etwas abzwackt. Dann hast du X-Server und Window Manger, welche auch zusätzlich RAM wollen. Wenn dann noch ein Speichermonster wie der Firefox dazukommt, dann kann es eng werden. (Kann nicht muss).

Viele Grüße
Alex

egmontr

Hallo zusammen,

ich habe einen RPI4 natürlich mit Buster aufgesetzt. Auch habe ich ein HM-MOD-RPI-PCB gelötet und drauf gesteckt.
Bisher alles gut.

Danach habe zweimal erfolglos nach Anleitung von Alex Reinert versucht piVCCU3 zu installieren:
https://github.com/alexreinert/piVCCU/blob/0dd35fa2f3c1b176733851e24747ac8f25922dcb/docs/setup/raspberrypi.md

Beim Punkt 3. bekomme ich folgende Fehlermeldung:
Error! echo
Your kernel headers for kernel 4.19.75-v7l+ cannot be found at
/lib/modules/4.19.75-v7l+/build or /lib/modules/4.19.75-v7l+/source.


Habe trotzdem weitergemacht. 
Bei der Frage mit welchem Modul ich arbeiten möchte, habe ich  HM-MOD-RPI-PCB ausgewählt und es kommt der Fehler:
WARNUNG: Das raw uart Interface konnte nicht gefunden werden. Sind die Kernel Module und die     │
   │ Device Tree Overlays installiert und haben Sie einen Neustart nach der Installation von diesen   │
   │ durchgeführt?


Beim Reboot des RPIs kommt der Fehler [Failed] Failed to start piVCCU RPi Kernel loader.

sudo systemctl status pivccu-rpi-modules.service sagt:
Zitat● pivccu-rpi-modules.service - piVCCU RPi Kernel loader
   Loaded: loaded (/lib/systemd/system/pivccu-rpi-modules.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2019-10-06 11:52:04 CEST; 1min 23s ago
  Process: 559 ExecStart=/var/lib/piVCCU/rpi-modules/ensure_headers.sh (code=exited, status=1/FAILURE)
Main PID: 559 (code=exited, status=1/FAILURE)

Was habe ich falsch gemacht bzw. wie bekomme ich die Installation nun hin?

PS: Eine Flashen mit dem Image https://www.pivccu.de/images/piVCCU3/Raspbian_Buster_Liste_piVCCU3_2019-07-11.zip hat auch nicht funktioniert.
Der RPI starte nicht! Mit zwei verschieden Karten probiert.
LG Egmont

RPI B+ mit FHEM und CUL V3 868MHZ

amenomade

Error! echo
Your kernel headers for kernel 4.19.75-v7l+ cannot be found at
/lib/modules/4.19.75-v7l+/build or /lib/modules/4.19.75-v7l+/source.


Versuche sudo apt-get install raspberrypi-kernel-headers
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

egmontr

Habe es nun probiert:
Zitatpi@raspi4pannon:~ $ sudo apt-get install raspberrypi-kernel-headers
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
raspberrypi-kernel-headers ist schon die neueste Version (1.20190819-1).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.

Nichts zu installieren...
LG Egmont

RPI B+ mit FHEM und CUL V3 868MHZ

amenomade

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

egmontr

Zitat von: amenomade am 07 Oktober 2019, 19:40:12
Was hast Du in /lib/modules?
Nach der Arbeit schaue ich nach.

Bin ich richtig in der Annahme, dass:

  • man keinen CUL mehr braucht, wenn man HM-MOD-RPI-PCB mit piVCCU3 verwendet? Homematic und Homematic IP funken beide darüber?
  • man die Geräte von Homematic und Homematic IP beide zuerst in der CCU anlernen muss
  • danach mittels HMCCU ansprechen kann/sollte

Ist dies so richtig, oder gibt es bessere Alternativen um Homematic und Homematic IP auf einem RPI zu betreiben?
LG Egmont

RPI B+ mit FHEM und CUL V3 868MHZ

egmontr

Zitat von: amenomade am 07 Oktober 2019, 19:40:12
Was hast Du in /lib/modules?

ls -la /lib/modules/
insgesamt 36
drwxr-xr-x  9 root root 4096 Okt  6 13:34 .
drwxr-xr-x 17 root root 4096 Okt  6 13:45 ..
drwxr-xr-x  2 root root 4096 Okt  6 13:35 4.19.66+
drwxr-xr-x  2 root root 4096 Okt  6 13:35 4.19.66-v7+
drwxr-xr-x  2 root root 4096 Okt  6 13:35 4.19.66-v7l+
drwxr-xr-x  3 root root 4096 Sep 26 02:09 4.19.75+
drwxr-xr-x  3 root root 4096 Sep 26 02:09 4.19.75-v7+
drwxr-xr-x  3 root root 4096 Sep 26 02:09 4.19.75-v7l+
drwxr-xr-x  3 root root 4096 Sep 26 02:09 4.19.75-v8+
LG Egmont

RPI B+ mit FHEM und CUL V3 868MHZ

amenomade

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

egmontr

LG Egmont

RPI B+ mit FHEM und CUL V3 868MHZ

Guzzi-Charlie

Hallo,
ich hänge mich hier mal an den thread.

Ich möchte ein paar HMIP-Geräte integrieren und dafür möchte ich piVCCU3 parallel auf meinem "FHEM-RasPi" installieren um dann später mit HMCCU darauf zugreifen zu können.

Ich habe die Installation gemäß der Anleitung in Github durchgeführt. Bis auf eine Fehlermeldung ist auch scheinbar alles durchgelaufen.
login as: xxx
pi@192.168.xxx.xxx's password:
Linux raspberrypi 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Oct 10 07:47:16 2019 from 192.168.178.20

Wi-Fi is disabled because the country is not set.
Use raspi-config to set the country before use.

pi@raspberrypi:~ $ sudo apt install pivccu3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gyp javascript-common libc-ares2 libhttp-parser2.8 libjs-inherits
  libjs-jquery libjs-node-uuid libjs-underscore libssl-dev libssl-doc libuv1
  libuv1-dev nodejs-doc python-pkg-resources
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  debootstrap dirmngr dns-root-data dnsmasq-base gnupg gnupg-agent liblxc1
  libpam-cgfs lxc lxcfs python3-lxc uidmap
Suggested packages:
  dbus-user-session pinentry-gnome3 tor parcimonie xloadimage scdaemon
  apparmor btrfs-tools lvm2
Recommended packages:
  gnupg-l10n
The following NEW packages will be installed:
  debootstrap dirmngr dns-root-data dnsmasq-base liblxc1 libpam-cgfs lxc lxcfs
  pivccu3 python3-lxc uidmap
The following packages will be upgraded:
  gnupg gnupg-agent
2 upgraded, 11 newly installed, 0 to remove and 89 not upgraded.
Need to get 110 MB of archives.
After this operation, 4,480 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf dnsmasq-base armh    f 2.76-5+rpt1+deb9u1 [385 kB]
Get:2 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian stretch/main armhf lib    lxc1 armhf 1:2.0.7-2+deb9u2 [203 kB]
Get:3 http://mirror.de.leaseweb.net/raspbian/raspbian stretch/main armhf python3    -lxc armhf 1:2.0.7-2+deb9u2 [44.3 kB]
Get:5 http://mirror.de.leaseweb.net/raspbian/raspbian stretch/main armhf gnupg-a    gent armhf 2.1.18-8~deb9u4 [499 kB]
Get:4 http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian stretch/main armhf lxc a    rmhf 1:2.0.7-2+deb9u2 [388 kB]
Get:6 http://mirror.de.leaseweb.net/raspbian/raspbian stretch/main armhf gnupg a    rmhf 2.1.18-8~deb9u4 [1,023 kB]
Get:7 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian stretch/main armhf dir    mngr armhf 2.1.18-8~deb9u4 [547 kB]
Get:12 https://www.pivccu.de/piVCCU stable/main armhf pivccu3 armhf 3.47.15-30 [    106 MB]
Get:8 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian stretch/main armhf dns    -root-data all 2019031302~deb9u1 [4,746 B]
Get:9 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian stretch/main armhf lib    pam-cgfs armhf 2.0.7-1+deb9u1 [16.4 kB]
Get:10 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian stretch/main armhf lx    cfs armhf 2.0.7-1+deb9u1 [38.1 kB]
Get:11 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian stretch/main armhf ui    dmap armhf 1:4.4-4.1 [254 kB]
Get:13 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian stretch/main armhf de    bootstrap all 1.0.89 [66.5 kB]
Fetched 110 MB in 1min 29s (1,221 kB/s)
Reading changelogs... Done
Preconfiguring packages ...
Selecting previously unselected package liblxc1.
(Reading database ... 82497 files and directories currently installed.)
Preparing to unpack .../liblxc1_1%3a2.0.7-2+deb9u2_armhf.deb ...
Unpacking liblxc1 (1:2.0.7-2+deb9u2) ...
Selecting previously unselected package python3-lxc.
Preparing to unpack .../python3-lxc_1%3a2.0.7-2+deb9u2_armhf.deb ...
Unpacking python3-lxc (1:2.0.7-2+deb9u2) ...
Selecting previously unselected package lxc.
Preparing to unpack .../lxc_1%3a2.0.7-2+deb9u2_armhf.deb ...
Unpacking lxc (1:2.0.7-2+deb9u2) ...
Setting up liblxc1 (1:2.0.7-2+deb9u2) ...
Setting up python3-lxc (1:2.0.7-2+deb9u2) ...
Setting up lxc (1:2.0.7-2+deb9u2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/lxc-net.service → /l    ib/systemd/system/lxc-net.service.
Created symlink /etc/systemd/system/multi-user.target.wants/lxc.service → /lib/s    ystemd/system/lxc.service.
Selecting previously unselected package pivccu3.
(Reading database ... 82765 files and directories currently installed.)
Preparing to unpack .../pivccu3_3.47.15-30_armhf.deb ...
Unpacking pivccu3 (3.47.15-30) ...
Preparing to unpack .../gnupg-agent_2.1.18-8~deb9u4_armhf.deb ...
Unpacking gnupg-agent (2.1.18-8~deb9u4) over (2.1.18-8~deb9u3) ...
Setting up gnupg-agent (2.1.18-8~deb9u4) ...
(Reading database ... 103165 files and directories currently installed.)
Preparing to unpack .../gnupg_2.1.18-8~deb9u4_armhf.deb ...
Unpacking gnupg (2.1.18-8~deb9u4) over (2.1.18-8~deb9u3) ...
Setting up gnupg (2.1.18-8~deb9u4) ...
Selecting previously unselected package dirmngr.
(Reading database ... 103165 files and directories currently installed.)
Preparing to unpack .../0-dirmngr_2.1.18-8~deb9u4_armhf.deb ...
Unpacking dirmngr (2.1.18-8~deb9u4) ...
Selecting previously unselected package dns-root-data.
Preparing to unpack .../1-dns-root-data_2019031302~deb9u1_all.deb ...
Unpacking dns-root-data (2019031302~deb9u1) ...
Selecting previously unselected package dnsmasq-base.
Preparing to unpack .../2-dnsmasq-base_2.76-5+rpt1+deb9u1_armhf.deb ...
Unpacking dnsmasq-base (2.76-5+rpt1+deb9u1) ...
Selecting previously unselected package libpam-cgfs.
Preparing to unpack .../3-libpam-cgfs_2.0.7-1+deb9u1_armhf.deb ...
Unpacking libpam-cgfs (2.0.7-1+deb9u1) ...
Selecting previously unselected package lxcfs.
Preparing to unpack .../4-lxcfs_2.0.7-1+deb9u1_armhf.deb ...
Unpacking lxcfs (2.0.7-1+deb9u1) ...
Selecting previously unselected package uidmap.
Preparing to unpack .../5-uidmap_1%3a4.4-4.1_armhf.deb ...
Unpacking uidmap (1:4.4-4.1) ...
Selecting previously unselected package debootstrap.
Preparing to unpack .../6-debootstrap_1.0.89_all.deb ...
Unpacking debootstrap (1.0.89) ...
Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ...
Setting up dns-root-data (2019031302~deb9u1) ...
Setting up uidmap (1:4.4-4.1) ...
Setting up libpam-cgfs (2.0.7-1+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u6) ...
Setting up lxcfs (2.0.7-1+deb9u1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/lxcfs.service → /lib    /systemd/system/lxcfs.service.
Setting up dnsmasq-base (2.76-5+rpt1+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up debootstrap (1.0.89) ...
Processing triggers for dbus (1.10.26-0+deb9u1) ...
Setting up pivccu3 (3.47.15-30) ...
Created symlink /etc/systemd/system/multi-user.target.wants/pivccu.service → /li    b/systemd/system/pivccu.service.

--> Job for pivccu.service failed because of unavailable resources or another system     error.

See "systemctl status pivccu.service" and "journalctl -xe" for details.
Setting up dirmngr (2.1.18-8~deb9u4) ...
Processing triggers for systemd (232-25+deb9u6) ...


Aber irgendwo hat wohl doch was nicht geklappt. Das Ergebnis ist:
pi@raspberrypi:~ $ sudo pivccu-info
piVCCU version: 3.47.15-30

--> Kernel modules: Not available
--> Raw UART dev:   Not available

Rasp.Pi3 UART:  Not assigned to GPIO pins
HMRF Hardware:  FAKE_HMRF
HMIP Hardware:  unknown
Board serial:   FKE2090929
Radio MAC:      0xd963d8

--> SGTIN:          unknown

State:          STOPPED


Hat Jemand vielleicht eine Idee wo der Fehler liegen könnte?
- RaspPI 4+: (Cuno V2 -2x KS300, JeeLink -13x EC3000)
- Stromzähler (B+G E-Tech): 6x SDM120M, 9x XTM100A, 38x DRS110M
- LAN: IT LAN-Gateway mit 34x RMF-R1 (Rohrmotor24)
- WLAN: 85x Shelly, 12x Gosund SP111, 16x D1-Mini, 15x Sonoff Basic
- DECT: 6x DECT200, 8x DECT301, - HmIP: 3x FalmotC12, 16x WTH2

deimos

Hi,

ich wüsste da mehreres:
- Anleitung nicht komplett befolgt, sonst wäre das Raw UART verfügbar
- Software Emulation statt Funkmodul ausgewählt und Software kann nicht physikalisch funken
- Keine Resourcen mehr auf dem Pi frei (die eine Fehlermeldung)

Viele Grüße
Alex