To build the docker image I use;
docker run -d --name=openhab --net=host --tty
-v /etc/localtime:/etc/localtime:ro
-v /etc/timezone:/etc/timezone:ro
-v /opt/openhab/conf:/openhab/conf -v /opt/openhab/userdata:/openhab/userdata -v /opt/openhab/addons:/openhab/addons -v /opt/openhab/java:/openhab/.java -v /opt/openhab/tools:/openhab/tools
--device=/dev/ttyACM0 --device=/dev/ttyUSBrfx --device=/dev/ttyUSBpw
-e OPENHAB_HTTP_PORT=9070 -e OPENHAB_HTTPS_PORT=9071
-e EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSBrfx:/dev/ttyUSBpw:/dev/ttyACM0"
-e USER_ID=9001 -e GROUP_ID=9001 openhab/openhab:2.5.3
I have the serial ports names configured using udev rules;
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{product}=="RFXtrx433", SYMLINK+="ttyUSBrfx", GROUP="dialout", MODE="0666"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A700drC5", SYMLINK+="ttyUSBpw", GROUP="dialout", MODE="0666"
I configured both rfxcom and plugwise things manually, confs below. .
Plugwise;
Bridge plugwise:stick:000D6F0000998DEE "Plugwise Stick" @ "Other" [ serialPort="/dev/ttyUSBpw", messageWaitTime=200 ]
Thing plugwise:circleplus:000D6F0000768D80 "Socket: Xbox One" (plugwise:stick:000D6F0000998DEE) @ "Ronans Bedroom" [ macAddress="000D6F0000768D80" ]
Thing plugwise:circle:000D6F000076A355 "Socket: TV" (plugwise:stick:000D6F0000998DEE) @ "Ronans Bedroom" [ macAddress="000D6F000076A355" ]
Thing plugwise:circle:000D6F000076B224 "Socket: TV" (plugwise:stick:000D6F0000998DEE) @ "Living Room" [ macAddress="000D6F000076B224" ]
Thing plugwise:circle:000D6F00007695B4 "Socket: TV" (plugwise:stick:000D6F0000998DEE) @ "Elis Bedroom" [ macAddress="000D6F00007695B4" ]
Thing plugwise:circle:000D6F000076B607 "Socket: TV" (plugwise:stick:000D6F0000998DEE) @ "Master Bedroom" [ macAddress="000D6F000076B607" ]
Thing plugwise:circle:000D6F0000769CE9 "Socket: Nightlight" (plugwise:stick:000D6F0000998DEE) @ "Ronans Bedroom" [ macAddress="000D6F0000769CE9" ]
Thing plugwise:circle:000D6F0000769CCA "Socket: Lights" (plugwise:stick:000D6F0000998DEE) @ "Garden" [ macAddress="000D6F0000769CCA" ]
Thing plugwise:circle:000D6F0000769CE8 "Socket: Xbox One S" (plugwise:stick:000D6F0000998DEE) @ "Elis Bedroom" [ macAddress="000D6F0000769CE8" ]
Thing plugwise:circle:000D6F000076A489 "Socket: James Blanket" (plugwise:stick:000D6F0000998DEE) @ "Master Bedroom" [ macAddress="000D6F000076A489" ]
Thing plugwise:circle:000D6F000076A94A "Socket: Sarahs Blanket" (plugwise:stick:000D6F0000998DEE) @ "Master Bedroom" [ macAddress="000D6F000076A94A" ]
Thing plugwise:circle:000D6F000076A947 "Socket: Spare 76A947" (plugwise:stick:000D6F0000998DEE) @ "Other" [ macAddress="000D6F000076A947", temporarilyNotInNetwork=true ]
Thing plugwise:circle:000D6F000076A955 "Socket: Spare 76A955" (plugwise:stick:000D6F0000998DEE) @ "Other" [ macAddress="000D6F000076A955", temporarilyNotInNetwork=true ]
Thing plugwise:circle:000D6F000076AB55 "Socket: Spare 76AB55" (plugwise:stick:000D6F0000998DEE) @ "Other" [ macAddress="000D6F000076AB55", temporarilyNotInNetwork=true ]
And rfxcom;
Bridge rfxcom:bridge:usb0 [ serialPort="/dev/ttyUSBrfx", disableDiscovery=true, ignoreConfig=true ] {
Thing lighting5 15904048_1 "Spare_1" @ "Other" [ deviceId="15904048.1", subType="LIGHTWAVERF" ]
Thing lighting5 15904048_16 "Spare_16" @ "Other" [ deviceId="15904048.16", subType="LIGHTWAVERF" ]
Thing lighting5 15902746_1 "Master1_1" @ "Master Bedroom" [ deviceId="15902746.1", subType="LIGHTWAVERF" ]
Thing lighting5 15902746_16 "Master1_16" @ "Master Bedroom" [ deviceId="15902746.16", subType="LIGHTWAVERF" ]
Thing lighting5 15950555_1 "Master2_1" @ "Master Bedroom" [ deviceId="15950555.1", subType="LIGHTWAVERF" ]
Thing lighting5 15950555_16 "Master2_16" @ "Master Bedroom" [ deviceId="15950555.16", subType="LIGHTWAVERF" ]
Thing lighting5 15922882_1 "Button_1" @ "Ronans Bedroom" [ deviceId="15922882.1", subType="LIGHTWAVERF" ]
Thing lighting5 15922882_16 "Button_16" @ "Ronans Bedroom" [ deviceId="15922882.16", subType="LIGHTWAVERF" ]
Thing lighting5 15902032_1 "Button_1" @ "Elis Bedroom" [ deviceId="15902032.1", subType="LIGHTWAVERF" ]
Thing lighting5 15902032_16 "Button_16" @ "Elis Bedroom" [ deviceId="15902032.16", subType="LIGHTWAVERF" ]
Thing temperaturehumidity 62210 "TemperatureHumidity" @ "Kitchen" [ deviceId="62210", subType="TH2" ]
Thing temperaturehumidity 54789 "TemperatureHumidity" @ "Master Bedroom" [ deviceId="54789", subType="TH2" ]
Thing temperaturehumidity 62468 "TemperatureHumidity" @ "Attic" [ deviceId="62468", subType="TH2" ]
Thing temperaturehumidity 58887 "TemperatureHumidity" @ "Garden" [ deviceId="58887", subType="TH2" ]
Thing energy 3602 "Owl" @ "Other" [ deviceId="3602", subType="ELEC2" ]
Thing lighting2 81412_10 "Door" @ "Ronans Bedroom" [ deviceId="81412.10", subType="AC" ]
Thing lighting2 89312_10 "Door" @ "Elis Bedroom" [ deviceId="89312.10", subType="AC" ]
Thing chime 187 "Doorbell" @ "Garden" [ deviceId="187", subType="BYRONSX" ]
}
Everything else is out of the box.
Not sure what base I am using with the docker image will look into it.
Bit of a loss really…
James