No project description provided
Project description
Home automation
Installation
pip3 install david-home-automation==0.1.17
(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.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80cafd03980db936f13175b2f6ccf0f3031d15a4160054a41d3f5b62ff3f8a43 |
|
MD5 | 84447cbc5a6c67e0c2fe03d2baf8a69e |
|
BLAKE2b-256 | b3e26b77dbe5ef6af801408665c8ee1462c468661855d84e21f7dbe55d5d22fa |
Close
Hashes for david_home_automation-0.1.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b156e6b662cac4a0336d6cdfc0ee1690285d48950dbd232b83086bc34b3fda |
|
MD5 | 9f9a544c9fb43d290b27973216eb1c95 |
|
BLAKE2b-256 | c2c1870a2ce476a97ff039ae67c6738db81fd0714dd4fa428ffb43f041bba2a7 |