Wich Docker for Domoticz on Raspberry Pi4

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
njlammerts
Posts: 153
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Wich Docker for Domoticz on Raspberry Pi4

Post by njlammerts »

Because my current Domoticz is gone bad/damaged and now constantly gives error about exceeding over 255 devices, viewtopic.php?t=39993
i decided to start over/new and Docker is one of the possibility's to go.


I found several sites/ways/wiki's were different way of installing Domoticz in Docker on a Raspberry Pi.
I am new when it comes to installing/using Docker and would like to know what is the (best) way to go. A quick search gave me the following results and all use a different kind of Docker "engine". What is the best way of installing/using Domoticz with Docker? And maybe more important, what is the best version when it coms to updating and rolling back to older versions when you run into trouble (like i have for the past month)

https://raspberrytips.com/domoticz-on-raspberry-pi/
https://www.domoticz.com/wiki/Docker
https://github.com/zoilomora/domoticz-raspberry-docker
https://hub.docker.com/r/domoticz/domoticz
https://dev.to/rohansawant/installing-d ... steps-3mgl


How about external devices who are depending on Mosquitto, Zigbee2MQTT, USB devices etc.

Please keep in mind that i am a newbie when is comes to Docker, so please be understanding, helpful and polite :-)
Kedi
Posts: 595
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Wich Docker for Domoticz on Raspberry Pi4

Post by Kedi »

Docker does not solve you problem of 255 devices limit.
For you as newbee to docker it might complicate things.
Could not you use "Devices Blacklist" to filter out some unused devices.
Like:

Code: Select all

.*_power_;.*_effect;.*_pwrmem;.*_volt;.*_ampere;.*_thb;.*_lowbtr;.*_indica
Logic will get you from A to B. Imagination will take you everywhere.
njlammerts
Posts: 153
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Wich Docker for Domoticz on Raspberry Pi4

Post by njlammerts »

there should not be a 255 limit anymore in Domoticz. My setup is so fucked up at the moment that I have over 1500 IDX values and if I do a roll-back or Update...... the same result is occurring....... I don't "go to docker" to solve that problem, because it will not. I want to go to Docker because it seems te be easier to fall back on an earlier release if an update fails or does not have the right results

So i am over that, cried out and will start over.

My question in this post was/is not about solving the 255 limit (Wich is not there anymore since 1-1.5 years) But it is about Docker and what is the (best) way to go. Yes I am a newbie...... but I want to learn and I don't need people to say that it is hard and not for me. Everybody here had to start sometime (even you who is reading this) and you learn by falling and standing up again.......
User avatar
Sjonnie2017
Posts: 373
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Wich Docker for Domoticz on Raspberry Pi4

Post by Sjonnie2017 »

I went the "Docker way" and I am glad I did. Yes I made mistakes and had to do some installs again but that's part of the fun, isn't it :mrgreen:

Updating Domoticz or other containers is much easier and using plug-ins is a piece of cake; well most of the time. I had some thinking to do on certain plug-ins.

I run Docker on a NUC with Debian (the basis of Raspbian) and use docker compose to create the containers and persistent volumes (which you would need to allow plug-ins to be used easily).

My containers are all created in my home directory so I can access them easily from the command line. All persistent volumes are also created in my home directory (same reason). Easier to backup and easier to migrate to different hardware in case of failure. I then only have to move/restore my homefolder to the new hardware and launch the containers. I have tested that and found it took me less than an hour to migrate.

I am reluctant to share my docker-compose.yaml on a public forum but if you would like I could be of assistance via PM. Although I must admit my Frysian is not very good but my Dutch is rather up to par ;)
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
njlammerts
Posts: 153
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Wich Docker for Domoticz on Raspberry Pi4

Post by njlammerts »

HaHa........ maybe you can teach me Docker and I teach you Frisian :-)
User avatar
Sjonnie2017
Posts: 373
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Wich Docker for Domoticz on Raspberry Pi4

Post by Sjonnie2017 »

:mrgreen: who knows? Anyway...of you're ready for it, give me a hauler and we'll see what we can achieve.
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
User avatar
Sjonnie2017
Posts: 373
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Wich Docker for Domoticz on Raspberry Pi4

Post by Sjonnie2017 »

Hi njlammerts,

I am having difficulty getting my PM's sent. Could you PM me an email address I could use?

Greetz,

Sjonnie
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest