Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.17 KB

README.md

File metadata and controls

59 lines (40 loc) · 2.17 KB

Loxone integration

To integrate MBusPico into Loxone and start optimizing your energy management you can download & import the HTTP VirtualIn or UDP VirtualIn template into Loxone Config.

Visualization in Loxone App:

Raspberry Pi / Loxberry

Since MBusPico v2.0 there is also a Python version available. Including a ready-made Python docker container running MBusPico.

This enables the usage of MBusPico application on your RaspberryPi already running LoxBerry.

Enable serial port

On an generic Raspberry Pi (for example running Raspian) execute sudo raspi-config and enable the serial port in (3) Interface options -> (I6) Serial Port. Just enable the serial port and do not enable the console on it. Afterwards reboot the device.

On a Loxberry this can be done directly in the web UI. From System settings select Loxberry services and More options:

Again reboot the device after saving the settings.

Loxberry

Install the Loxberry Docker Plugin. In the portainer web UI you can create a MBusPico docker container from Containers and hit the Add container button.

Make sure that you set some mandatory options:

  • the Network mode must be host
  • the serial port device (in most cases /dev/ttyS0) must be mapped to the docker container
  • MBusPico options (like at least the decryption key MBUSPICO_DEVICE_KEY) can be set via environment variables

Running manually

Extract the python.zip archive of an MBusPico release and execute it directly with Python:

cd /path/to/extracted
python3 main.py

Example docker run call:

docker run --name MBusPico \
	--network host \
	--device=/dev/ttyS0 \
	-e MBUSPICO_DEVICE_KEY=XXXXXXXXXXXXXXXXXXXX \
	-e MBUSPICO_HTTP_SERVER_PORT=8080 \
	-e MBUSPICO_HTTP_ENABLED=1 \
	-e MBUSPICO_SERIAL_PORT=/dev/ttyS0 \
	ravenworx/mbuspico:latest