No project description provided
Project description
Home automation
Installation
pip3 install david-home-automation==0.1.23
(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
cp home_automation.service ~/.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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81ef5d9edc6482d9382f71ed999dc7d016fc3108a95c45a1433f0dcc5c1205ba |
|
MD5 | 91f1f728228d7c035a6771ac6bad9898 |
|
BLAKE2b-256 | a3df035e4d26f2f306ffead7ed00bf8cb5b7e742a10dacad903b9efc01b9a9f0 |
Close
Hashes for david_home_automation-0.1.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da74f15516a6f311dca6f3f8e08628c2cfb95f28983d90ca95b3ef34f8322864 |
|
MD5 | 347b442d5e736a149e30a4cb74b18074 |
|
BLAKE2b-256 | 7ceebb02fd03d8bbc564e2d2b28685e217097e02b93299e1d510f15d7e84d640 |