From 008993a199b4da0162e4e8d2ccd85defd19df1bb Mon Sep 17 00:00:00 2001 From: bforbird Date: Thu, 24 Jan 2019 23:30:03 +0100 Subject: [PATCH] Explain how to get the device running when running hass in docker (#8258) * Explain how to get the device running when running hass in docker * Minor changes --- source/_components/sensor.dsmr.markdown | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/_components/sensor.dsmr.markdown b/source/_components/sensor.dsmr.markdown index 0c47292e9cb..e2220b3a2f2 100644 --- a/source/_components/sensor.dsmr.markdown +++ b/source/_components/sensor.dsmr.markdown @@ -119,16 +119,22 @@ or [HASSbian](/getting-started/installation-raspberry-pi-image/) users have to give dialout permission to the user `homeassistant`: -``` +```bash $ sudo usermod -a -G dialout homeassistant ``` and after that you need to reboot! -``` +```bash $ sudo reboot ``` +Docker users have to allow Docker access to the device by adding `--device /dev/ttyUSB21:/dev/ttyUSB21` to the run command: + +```hass +$ docker run --device /dev/ttyUSB0:/dev/ttyUSB0 -d --name="home-assistant" -v /home/USERNAME/hass:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant +``` + ### {% linkable_title Technical overview %} DSMR is a standard to which Dutch smartmeters must comply. It specifies that the smartmeter must send out a 'telegram' every 10 seconds (every second for DSMR 5.0 devices) over a serial port.