Run Raspberrymatic as docker


Recommended Posts

Sine v3.55.10. Raspberrymatic also offers the installation via docker.

I saw some people setting it up as VM, but docker would be the preferred way for me, as it's much lighter.

Has anyone made it run in unraid?

 

This Github wiki explains it a little. However, I'm a bit afraid of just using these commands in my productive UNRAID.
Is it safe to use? Does anyone maybe already has it running in docker?

 

Unfortunately I have 0 experience in setting up dockers without just clicking "install" in the community applications 😅

Link to comment
  • 2 weeks later...

I am also keen to set this up through docker. Any help is welcome. Tried to follow instructions on the original authors page: https://github.com/jens-maus/RaspberryMatic/wiki/Installation-Docker-OCI#start-of-content But getting the following error message : Error response from daemon: pull access denied for jens-maus/raspberrymatic, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

 

Out of curiosity, what type of RF module are you using? HmIP-RFUSB ? Is it easy to passthrough an USB device to a docker container?

Link to comment
  • 1 month later...

I got the docker to run, however I am failing on passing though the RF-USB-2.

In case you have problems, check my attached screenshot on my docker-configuration.

 

Regarding the RF-USB-2 it's possible different to a VM the driver actually has to be enabled on host-level.

It's weird, as I can pass through the device to the VM without a problem, but it might be the device is not initialised completely on host-level, which then becomes a problem in the docker.

 

In case anyone else is trying this, let me know.

Bildschirmfoto 2021-03-27 um 17.57.34.png

Link to comment
  • 2 months later...

RUN RASPBERRYMATIC AS DOCKER + RF-USB STICK

 

I'm using Unraid 6.9.2, no extra driver or software installed.

+ i use this RF-USB-Stick https://de.elv.com/elv-homematic-ip-arr-bausatz-rf-usb-stick-fuer-alternative-steuerungsplattformen-hmip-rfusb-fuer-smart-home-hausautomation-152306

 

1. plug in RF-USB stick

 

2.

type in Unraid terminal:

 

modprobe cp210x


echo "1b1f c020" >/sys/bus/usb-serial/drivers/cp210x/new_id

 

3. Container setting.

 

image.thumb.png.b8bfcf4a9fa48de9851a462044d1fa47.png


lsusb

image.png.724c28fb4f104c809d5559ce7171fd3f.png

lsusb -t

image.png.5ab9d2c7e1e0fc8c9cccf91cbeb94fa2.png

 

image.png

Edited by fluppiduppi
  • Like 1
Link to comment
  • 3 months later...
On 6/17/2021 at 7:06 PM, fluppiduppi said:

RUN RASPBERRYMATIC AS DOCKER + RF-USB STICK

 

I'm using Unraid 6.9.2, no extra driver or software installed.

+ i use this RF-USB-Stick https://de.elv.com/elv-homematic-ip-arr-bausatz-rf-usb-stick-fuer-alternative-steuerungsplattformen-hmip-rfusb-fuer-smart-home-hausautomation-152306

 

1. plug in RF-USB stick

 

2.

type in Unraid terminal:

 

modprobe cp210x


echo "1b1f c020" >/sys/bus/usb-serial/drivers/cp210x/new_id

 

3. Container setting.

 

image.thumb.png.b8bfcf4a9fa48de9851a462044d1fa47.png


lsusb

image.png.724c28fb4f104c809d5559ce7171fd3f.png

lsusb -t

image.png.5ab9d2c7e1e0fc8c9cccf91cbeb94fa2.png

 

image.png

 

 

How did you manage to install the docker image ?
I didnt get it.



In Deutsch: Wie schaffst du das Docker zu installieren?
Ich finde es nichtmal wenn ich es per apps suche.

 

Link to comment

Es gibt eine Anleitung wie man mit Docker installiert:

https://github.com/jens-maus/RaspberryMatic/wiki/Installation-Docker-OCI

 

Man benötigt eigentlich nur die Quelle : ghcr.io/jens-maus/raspberrymatic:latest

Einfach neuen Container hinzufügen, da gibt es keine fertige App im Store.

Einstellung siehe mein Post.

 

 

There is a guide on how to install with Docker:

https://github.com/jens-maus/RaspberryMatic/wiki/Installation-Docker-OCI

 

You only need the source: ghcr.io/jens-maus/raspberrymatic:latest

Simply add a new container, there is no ready-made app in the store.

Settings see my post.

Link to comment
On 10/10/2021 at 4:42 PM, fluppiduppi said:

Es gibt eine Anleitung wie man mit Docker installiert:

https://github.com/jens-maus/RaspberryMatic/wiki/Installation-Docker-OCI

 

Man benötigt eigentlich nur die Quelle : ghcr.io/jens-maus/raspberrymatic:latest

Einfach neuen Container hinzufügen, da gibt es keine fertige App im Store.

Einstellung siehe mein Post.

 

 

There is a guide on how to install with Docker:

https://github.com/jens-maus/RaspberryMatic/wiki/Installation-Docker-OCI

 

You only need the source: ghcr.io/jens-maus/raspberrymatic:latest

Simply add a new container, there is no ready-made app in the store.

Settings see my post.

Hi!

 

Danke für deinen Hinweis und deine Anleitung. Ich hab den Container soweit eingerichtet, das Webinterface ist auch erreichbar, leider aber habe ich im Log immer einen Fehler und kann auch keine IP Geräte hinzufügen.

 

Hast du eine Idee, was das sein könnte?

 

viele Grüße

 

Florian

 

image.png.0664ca5185b8369e2993696e4fc8cd5d.png

raspberrymatic.JPG

Edited by florian84z
Link to comment

Hi, den Fehler habe ich auch im Protokoll stehen. Das ist nur ein Firmware Check, glaub ich, nicht so wichtig.

Bei dir fehlt aber die Zeile mit dem cp210x Treiber.

 

Hast du die Befehle im unraid Terminal ausgefüht?

 

modprobe cp210x
echo "1b1f c020" >/sys/bus/usb-serial/drivers/cp210x/new_id

 

Danach den Docker Container neustarten.

 

image.png.a8975cb6ce660c3f5e6fa7c40f7a316d.png

 

Tipp: Im Terminal eingeben, dass beim Neustart des Systems der Treiber automatisch geladen wird:

 

nano /boot/config/go

 

Die Datei dann mit den beiden Befehlen editieren:

modprobe cp210x
echo "1b1f c020" >/sys/bus/usb-serial/drivers/cp210x/new_id

 

image.png.3c5708f3a2c4c8242be3dd469aecc065.png

Edited by fluppiduppi
Link to comment
  • 5 weeks later...

Hi,

 

finde das Thema interessant, aber wie macht ihr das mit der Antenne? Sry, falls es hier zu Off Topic ist. Gibts da auch nen USB Stick dafür? Im Moment ist der Raspi mein Favorit, einfach weil er da hingeklebt werden kann wo das optimum für den Funk ist. Mit dem Homeserver im Keller dürfte das schwer werden, zumal die IP Clients ja auch keine Repeaterfunktion haben.

Link to comment
  • 3 months later...

Hi!

I installed the Docker as @fluppiduppi wrote.

Everything worked fine and I added one of my water alarm sensors, which also worked fine. Even added it in Homeassistant, running in a VM on Unraid.

 

Then just moments ago I ran an update of the raspberrymatic docker container and it seems like all my settings were wiped. When I tried to log into my raspberrymatic the complete setup process started from zero and everything was gone. At this point I'm quite happy I didn't add all the rest of my Homematic IP devices yet. That would have been a desaster.

 

Yet I don't know how to fix this.

I haven't had this problem with any of my other docker containers. All of them always kept their settings when restarting or updating them.

 

Can anyone help me out?

 

This was my configuration:

image.thumb.png.fa893adf40565cc6cb4d5cd640fadc0b.png

 

Thanks a lot in advance!

 

PS.:

Answering in german is perfectly fine, too - didn't know if  there's a convetion in place here.

-

Antwort auf Deutsch passt auch wunderbar - wusste nicht, ob es hier im Forum eine Konvention gibt.

Link to comment
13 minutes ago, juleztb said:

all my settings were wiped.

Like trurl said, it doesn't look like you told it where to save the settings, so it saved them in the container which is erased and recreated on update.

I don't know if this works, I don't use it either, but from an image above in this thread.

image.png.8ecb749deacc79e0d40f6bd83e343da5.png

  • Thanks 1
Link to comment
  • 3 weeks later...
  • 1 month later...

  

On 5/13/2022 at 12:04 PM, warp760 said:

Hallo zusammen, raspberrymatic an sich läuft im Container. Allerdings bekomme ich keine Verbindung zur HB-RF-ETH

Hat das schonmal jemand geschafft?

 

Hey, also bei mir ist es seit dem vorletzten Update glaube, das ich wie vorgegeben "privilegierte Rechte" auf Ja stellen muss, sonst erkennt er bei mir das Funkmodul nicht.

Edited by Patty92
Link to comment

Ich klinke mich auch mal noch mit einer Frage ein.

Habt Ihr auch das Problem, wenn euer Unraid CPU Last hat, das es dann zu "Gerätekommunikation gestört" kommt?

 

In meinem Falle, eins der folgenden Beispiele:

  • Backup per User-Script
  • Plex Transcoding
  • Windows VM in Nutzung

 

Ist eines der oben genannten Fälle aktiv und ich möchte zum Beispiel die Temperatur der Heizung im Schlafzimmer umstellen (per Weboberfläche / App),

wird die Temperatur nicht umgestellt und es kommt zu oben genannten Fehler.

 

Die CPU Last ist zwischen 20 - 30 Prozent schon ausreichend das es zu dem Vorfall kommt.

Link to comment
13 hours ago, Patty92 said:

Hey, also bei mir ist es seit dem vorletzten Update glaube, das ich wie vorgegeben "privilegierte Rechte" auf Ja stellen muss

Und hast du irgendwelche Treiber direkt auf m Host nachgeladen oder gings bei dir so?

Hast du auch die ETH Platine oder die USB Variante?

Link to comment
  • 2 weeks later...
On 5/14/2022 at 6:24 PM, Patty92 said:

Habt Ihr auch das Problem, wenn euer Unraid CPU Last hat, das es dann zu "Gerätekommunikation gestört" kommt?

 

Konnte dieses Problem jetzt beheben.

Es scheint wie bei RaspberryPi4 Probleme mit USB3 (liest man häufiger im Netz) zu geben.

 

Ich konnte das ganze lösen, indem ich den "HmIP-RFUSB-TK" nicht direkt an den Port am Board belassen habe, sondern habe eine "1m USB Verlängerung" dazwischen..

siehe da, keine störende Kommunikation mehr festzustellen.

 

Habe auch einmal die komplette CPU auf 100 Prozent Auslastung gebracht, aber auch hier, keine Probleme mehr und das schalten von Licht und Heizung funktioniert reibungslos.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.