edvsk  
                
                  
                    July 17, 2018,  7:12am
                   
                  1 
               
             
            
              My configuration:
raspbian stretch 
docker → openhab2 → homematic plugin 
 
RPi 2:
raspbian stretch 
pivccu with xml rpc api 
 
My problem is, that the homematic plugin doesn’t connect to the pivccu (“Offline”) . I thing I tried every useful combination of ip-addresses in the configuration dialog of the homematic plugin without success.
My question is, does openhab docker installation work with pivccu? Is it a problem of how the docker container is created? I’m thinking about the callbacks, …
Thanks in advance …
             
            
              
            
           
          
            
              
                rlkoshak  
              
                  
                    July 17, 2018,  2:49pm
                   
                  2 
               
             
            
              
If it uses callbacks that could be the problem. Are you using --net=host or are you using the -p option to expose each port individually?
I don’t know Homematic and have never heard of pivccu so won’t be much help there, but if pivccu needs to connect to a port on OH, that port needs to be open and exposed from the container.
             
            
              
            
           
          
            
              
                edvsk  
              
                  
                    July 20, 2018,  7:23am
                   
                  3 
               
             
            
              The background:GitHub - angelnu/docker-ccu: Script to create a docker container with the CCU2 firmware ). This didn’t work at all.GitHub - alexreinert/piVCCU: piVCCU is a project to install the original Homematic CCU3 firmware inside a virtualized container (lxc) on ARM based single board computers. ). This works well with homematic and homematic-ip components.
Currently I’m using:
docker run \
--name openhab \
--net=host \
--tty \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-v openhab_addons:/openhab/addons \
-v openhab_conf:/openhab/conf \
-v openhab_userdata:/openhab/userdata \
-d \
--restart=always \
openhab/openhab:2.3.0-armhf-debian
Everything seems to works well. Only the openhab homematic plugin failes.
Next I will give this a try:
docker run \
--name openhab 
--tty 
--restart always \
-p 8080:8080 -p 8443:8443 -p 2000:2000 -p 2001:2001 -p 2010:2010 \
-p 8701:8701 -p 8181:8181 -p 9292:9292 -p 9125:9125 -p 9126:9126 \
-p 43439:43439/udp \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-v /70_docker/30_openhab/conf:/openhab/conf \
-v /70_docker/30_openhab/userdata:/openhab/userdata \
-v /70_docker/30_openhab/addons:/openhab/addons \
-d \
openhab/openhab:2.3.0-armhf-debian
 
            
              
            
           
          
            
              
                edvsk  
              
                  
                    September 1, 2018,  2:52pm
                   
                  4 
               
             
            
              This docker start command seems to be ok:
docker run 
After uninstalling the plugin, restarting openhab and installing the plugin again the connection is successful and things are recognized.