Docker image for Raspberry Pi without Z-Wave

Hi,

I’ve been running my own ‘flavour’ of the RPi compatible Docker image (https://hub.docker.com/r/lroguet/rpi-home-assistant/) which is lighter than the official one (https://hub.docker.com/r/homeassistant/rpi2-home-assistant/) and I thought I could share on the forum too. It’s been pulled almost 3,000 times already so a few must already be using it.

That image is lighter because it does not support Z-Wave but I believe is sufficient for some people. It is however built and pushed to the hub within an hour of a new release of Home Assistant.

Feel free to test it and comment, file bugs, …

Hi, I’m using this docker image and it seems to be working nicely, thanks for posting it up.

The only small problem I’m getting is a few ‘database is locked’ errors in home-assistant.log, and I was wondering if this is easily fixed?

I’m fairly new to HA and docker, and I was wonder if it was an issue with the way I’ve set things up?

Here’s is one of the errors from the log:

16-10-23 16:00:45 homeassistant.components.recorder: Error during query: (sqlite3.OperationalError) database is locked [SQL: 'SELECT states.state_id AS states_state_id, states.domain AS states_domain, states.entity_id AS states_entity_id, states.state AS states_state, states.attributes AS states_attributes, states.event_id AS states_event_id, states.last_changed AS states_last_changed, states.last_updated AS states_last_updated, states.created AS states_created \nFROM states \nWHERE (states.domain IN (?, ?) OR states.last_changed = states.last_updated) AND states.last_updated > ? AND states.domain NOT IN (?, ?) AND states.last_updated < ? ORDER BY states.entity_id, states.last_updated'] [parameters: ('thermostat', 'climate', '2016-10-21 23:00:00.000000', 'zone', 'scene', '2016-10-22 23:00:00.000000')]

This error does not occur that often, once every few hours or so.

Hey Iroquet,
I am trying your Docker image right now, as I want to run Hass on my OSMC Raspi2 and I can’t get my Harmony remote running there…
As I just started with Hass and more recently with docker I just show you quickly what I have done :wink:
So for now I installed docker
curl -sSL https://get.docker.com | sh
Pulled your Hass from Github
docker pull lroguet/rpi-home-assistant
Created the container
docker run -d --name hass --net=host -v /etc/localtime:/etc/localtime:ro -v /home/pi/home- assistant/configuration:/config lroguet/rpi-home-assistant:latest

And voila Hass is running.
However I cannot get Systemd running I tried to follow the setup from Hass wiki
[Unit]
Description=Home Assistant
Requires=docker.service I don’t have a docker.service?!?
After=docker.service

[Service]
Restart=always
RestartSec=3
ExecStart=/usr/bin/docker run docker run -d --name hass --net=host -v /etc/localtime:/etc/localtime:ro -v /home/pi/home-assistant/configuration:/config lroguet/rpi-home-assistant:latest
ExecStop=/usr/bin/docker stop -t 2 home-assistant-%i
ExecStopPost=/usr/bin/docker rm -f home-assistant-%i

[Install]
WantedBy=multi-user.target

I further recognized, that after a restart of my pi sometimes I can use
sudo docker start hass
and sometimes I have to repeat the hole for install again as it cannot find the container.

Some help would be highly appreciated (and sorry I am totally a Windows guy :wink: