No project description provided
Project description
Home automation
Installation
pip3 install david-home-automation==0.1.18
(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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68f68b49cab8293c689490731cf07ecf6f09c1c9a8c8b7cece2fbd067b59c90c |
|
MD5 | 8a52913ccaa89cf04b1b64e3efb2eb0d |
|
BLAKE2b-256 | 216152d458b1af7eb5407d707f4b98bfdd38e7b3bf1c79217770999915856f9e |
Close
Hashes for david_home_automation-0.1.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bd67c5ae47a0ad66c09d221600147da3b7fa4ae5a672f36a466eab931deb09a |
|
MD5 | 08bb7beac2a767bde113b7fce8471d02 |
|
BLAKE2b-256 | 51326f4e6510c76e198c9752a16f12fc518b4187a8274898ac24c315df6421af |