No project description provided
Project description
Home automation
Installation
pip3 install david-home-automation==0.1.20
(sudo apt install --yes expect && cd $(mktemp -d) && git clone https://github.com/Heckie75/eQ-3-radiator-thermostat.git x && cd x && cp eq3.exp $HOME/.local/bin)
# (Optional) find your thermostat MACs via
bluetoothctl devices
# Create your config once
cat > ~/.config/david-home-automation.yaml <<EOF
thermostats:
- mac_address: XX:XX:XX:XX:XX:XX
name: Arbeitszimmer
hosts:
- broadcast_ip: 192.168.178.1
mac_address: XX:XX:XX:XX:XX:XX
name: Desktop
EOF
# You can also pass your config file path via an env variable
export HOME_AUTOMATION_CONFIG=your/path
# Run server
FLASK_APP=david_home_automation.main flask run --host=0.0.0.0 --port 5050
Development
FLASK_ENV=development FLASK_APP=david_home_automation/main poetry run flask run --host=0.0.0.0 --port 5050
As a service
sudo apt install --yes supervisor
./install.sh
# killall supervisord; supervisord -c /etc/supervisord.conf
TMP_FILE="$(mktemp)"
sed -e "s|FLASK_EXECUTABLE|$(which flask)|g" home_automation.service > $TMP_FILE
cp "${TMP_FILE}" ~/.config/systemd/user/home_automation.service
systemctl --user daemon-reload
systemctl --user start home_automation.service
systemctl --user status home_automation.service
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for david-home-automation-0.1.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ac57663e2f04d8ee36c30f3f8a730bed69078a819b10ce5b4ab53ad929a9f5 |
|
MD5 | d2bdccfdb9702898a3e98a0a188e3194 |
|
BLAKE2b-256 | ef62892bff32ab5a4d968d6ea94d8d458f41cbef5b3f8c4701a4f798d919201a |
Close
Hashes for david_home_automation-0.1.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9c6d00c00f0a458d7ce98d5240a8b7fd83dfb7ad9c7e1559549448692701d92 |
|
MD5 | 1c21af0ef2312d68cebc8d9883b724eb |
|
BLAKE2b-256 | d023e06c7fc74e3987c3ae2466e6214f12c49b7e2ccec4842de95479d0ddeece |