Commit 87ea03c3 authored by Thomas Eimers's avatar Thomas Eimers

Update Home Assistant setup docu

parent 37f1d7c7
Pipeline #94812368 passed with stages
in 14 minutes and 21 seconds
......@@ -19,7 +19,7 @@ RUN composer global require "hirak/prestissimo" "^0.3.7" && \
RUN pecl install Mosquitto-alpha && echo "extension=mosquitto.so" >> /etc/php/7.3/cli/php.ini
# Is use phpdb for code coverate RUN pecl install xdebug && rm -rf /tmp/pear && echo "extension=xdebug.so" >> /etc/php/7.3/cli/php.ini
# I use phpdb for code coverate RUN pecl install xdebug && rm -rf /tmp/pear && echo "extension=xdebug.so" >> /etc/php/7.3/cli/php.ini
#docker build --pull . -t registry.gitlab.com/notdefine/heating-control:ci
#docker push registry.gitlab.com/notdefine/heating-control:ci
......@@ -2,11 +2,39 @@
## home-assistant Software
[Read](https://www.home-assistant.io/docs/installation/raspberry-pi/)
[Read Setup](https://www.home-assistant.io/docs/installation/raspberry-pi/)
Setupverlauf bei mir (bitte den Link oben als Referenz nehmen)
```bash
sudo apt-get install python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev
sudo useradd -rm homeassistant -G dialout,gpio,i2c
cd /srv
sudo mkdir homeassistant
sudo chown homeassistant:homeassistant homeassistant
```
Kleine Hilfscript `gotoHomeassistant.sh` um in die Home Assistant Umgebung zu wechseln.
sudo mcedit /usr/local/bin/gotoHomeassistant.sh
sudo chmod +x /usr/local/bin/gotoHomeassistant.sh
```text
#!/bin/sh
sudo -u homeassistant -H -s -- bash -c "cd /srv/homeassistant && python3 -m venv . && source bin/activate && bash"
```
```bash
gotoHomeassistant.sh
python3 -m pip install wheel
pip3 install --upgrade homeassistant~=0.100.3
#pip3 install homeassistant => https://github.com/home-assistant/home-assistant/issues/28361
hass
```
## autostart (optional)
https://www.home-assistant.io/docs/autostart/systemd/
[Enable Autostart](https://www.home-assistant.io/docs/autostart/systemd/)
## Add Mqqt Message Queue to home-assistant
......@@ -90,3 +118,13 @@ binary_sensor.updater:
hidden: true
```
## Switch in homea assistant environment
```bash
sudo -u homeassistant -H -s
cd /srv/homeassistant
python3 -m venv .
source bin/activate
hass
```
https://www.home-assistant.io/integrations/roomba/
CV or numpy module not found, falling back to PIL
sudo apt install python3-opencv
Heating Control Copyright (C) 2013-2018 Thomas Eimers
Heating Control Copyright (C) 2013-2019 Thomas Eimers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -11,4 +11,4 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
\ No newline at end of file
along with this program. If not, see <https://www.gnu.org/licenses/>.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment