This commit is contained in:
Martin Bauer 2019-06-30 22:57:34 +02:00
parent 2ce8f0c998
commit f7a5cf03e2
4 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,5 @@
FROM homeassistant/home-assistant FROM homeassistant/home-assistant
RUN apt-get update && apt-get install nodejs RUN apt-get update && apt-get install -y nodejs
WORKDIR /config WORKDIR /config
CMD [ "./run.sh" ] CMD [ "./run_on_server.sh" ]

View File

@ -92,7 +92,7 @@ media_player:
vacuum: vacuum:
- platform: xiaomi_miio - platform: xiaomi_miio
host: rockrobo host: rockrobo
token: !secret local_ip token: !secret vacuum_token
group: !include groups.yaml group: !include groups.yaml

View File

@ -11,5 +11,6 @@ services:
devices: devices:
- /dev/serial/by-id/usb-0658_0200-if00:/dev/ttyACM0 - /dev/serial/by-id/usb-0658_0200-if00:/dev/ttyACM0
restart: always restart: always
ports: network_mode: host
- "8123:8123" #ports:
# - "8123:8123"

2
run_on_server.sh Normal file → Executable file
View File

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
cd /config
./make_config.sh server ./make_config.sh server
./make_custom_frontend.sh ./make_custom_frontend.sh
cd /usr/src/app
python -m homeassistant --config /config python -m homeassistant --config /config