Find a file
2024-03-03 18:49:46 +01:00
.github/workflows Create rust.yml 2023-11-20 21:09:38 +01:00
.idea initial import 2023-11-20 21:00:23 +01:00
src fix clippy warnings 2024-03-03 15:20:28 +01:00
.gitignore initial import 2023-11-20 21:00:23 +01:00
Cargo.lock initial import 2023-11-20 21:00:23 +01:00
Cargo.toml initial import 2023-11-20 21:00:23 +01:00
flake.lock Add first flake test 2024-03-03 18:49:46 +01:00
flake.nix Add first flake test 2024-03-03 18:49:46 +01:00
LICENSE.txt initial import 2023-11-20 21:00:23 +01:00
README.md initial import 2023-11-20 21:00:23 +01:00

TRV Control

A small program to control thermostatic radiator valves using zigbee2mqtt. The idea is, that you write a configuration file specifying profiles, which get activated on a specified schedule.

Installation

cargo install --locked --git https://github.com/madmo/trvcontrol

Usage

Sample config:

[mqtt]
host = "localhost"
port = 1883
user = "user"
password = "password"

[profiles.workday_morning]
alarm = { days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"], time = 04:00:00 }
temperature = { bath_trv = 23.0, bedroom_trv = 21.0 }

[profiles.workday_day]
alarm = { days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"], time = 08:00:00 }
temperature = { bath_trv = 20.0, office_trv = 23 }

Starting the program:

trvcontrol config.toml

License

Distributed under the ISC License. See LICENSE.txt for more information.