Home automation
Installation
pip3 install david-home-automation==0.1.38
(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
python3 -m david_home_automation.server --server-host=0.0.0.0 --server-port 5000
Setup as a service
./install.sh
Setup eq3 bluetooth
Follow the eq3.exp guide for pairing your thermostats.
Make sure you do not connect/pair from multiple devices as the thermostats get easily confused.
If you are encountering strange connection issues or crypted error messages from the API (and by extension also eq3.exp), reset your thermostats to factory settings (see manual).
A useful debugging tool is btmon.
Development
poetry install
FLASK_ENV=development FLASK_APP=david_home_automation/main poetry run flask run --host=0.0.0.0 --port 5050
Metadata
Release files for david-home-automation 0.1.38
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| david-home-automation-0.1.38.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| david_home_automation-0.1.38-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.9 kB
Release files / david-home-automation-0.1.38.tar.gz
| Download URL | david-home-automation-0.1.38.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fb3b23a0b9df9aa6d35b87b900ad851591f7a949f00d50120b823de9c733c00
|
|
BLAKE2b-256 checksum How to use checksums |
6ef70a228f8cf130638892662d0e831fb4278a3f1316aa3b18d70538c1dafb54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / david_home_automation-0.1.38-py3-none-any.whl
| Download URL | david_home_automation-0.1.38-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38c1e44388cd2f1fc74e1e8b3e07f3082322fd0198901c2e60edd81146b39536
|
|
BLAKE2b-256 checksum How to use checksums |
8fd5706ca811a4d88412e09d8227cdaa632e4c476c381c448452f9f609ffcf27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|