OpenDTU Logger 0.1.0 release: Adds support for password-protected OpenDTU's.

This commit is contained in:
Pieter Hollander 2024-07-26 23:54:56 +02:00
parent 29a221d703
commit 00a5e7d014
Signed by: pieter
SSH key fingerprint: SHA256:HbX+9cBXsop9SuvL+mELd29sK+7DehFfdVweFVDtMSg
3 changed files with 23 additions and 6 deletions

View file

@ -1,5 +1,10 @@
# Changelog # Changelog
## [0.1.0] 2024-07-26
- **BREAKING CHANGE:** The `opendtu` configuration variable was renamed to `opendtu_address`.
- This version adds support for password-protected OpenDTU's, by implementing support for authentication.
## [0.0.11] 2024-07-26 ## [0.0.11] 2024-07-26
- Adds automatic database migrations, so future upgrades can be performed automatically and will not require user intervention. - Adds automatic database migrations, so future upgrades can be performed automatically and will not require user intervention.

View file

@ -43,13 +43,17 @@ Save the configuration, go to the "Info" tab and start TimescaleDB.
With the database initialised, we can now setup OpenDTU Logger. Add the [add-on repository](https://git.hollander.online/energy/home-assistant-addons) using the [instructions](https://git.hollander.online/energy/home-assistant-addons) provided. Then, click "Install" to install this add-on. Go to "Configuration". With the database initialised, we can now setup OpenDTU Logger. Add the [add-on repository](https://git.hollander.online/energy/home-assistant-addons) using the [instructions](https://git.hollander.online/energy/home-assistant-addons) provided. Then, click "Install" to install this add-on. Go to "Configuration".
- If you're using Expaso's TimescaleDB add-on, the `db` setting will **not** require any changes. - If you're using Expaso's TimescaleDB add-on, the `db` setting will **not** require any changes.
- **In the `opendtu` field, enter the *IP address* or *hostname* of your OpenDTU.** E.g.: `192.168.1.5` or `opendtu.local`. - **In the `opendtu_address` field, enter the *IP address* or *hostname* of your OpenDTU.** E.g.: `192.168.1.5` or `opendtu.local`.
- If your OpenDTU is password-protected
- `opendtu_auth`: Enable this setting
- `opendtu_username`: `admin`
- `opendtu_password`: `replace_with_your_password`
- In `tz`, enter your timezone. The default is "Europe/Amsterdam". If you are in a different location, choose your timezone from [this list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). - In `tz`, enter your timezone. The default is "Europe/Amsterdam". If you are in a different location, choose your timezone from [this list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
- Optionally, if you don't want to use TimescaleDB, disable `timescaledb`. - Optionally, if you don't want to use TimescaleDB, disable `timescaledb`.
Save the configuration, go to the "Info" tab and start OpenDTU Logger. Save the configuration, go to the "Info" tab and start OpenDTU Logger.
Check the "Log" page. If the setup is succesfull, it should contain a mesasge stating: `OpenDTU Logger has been successfully initialised. Starting data recording...`. Check the "Log" page. If the setup is succesfull, it should contain a message stating: `OpenDTU Logger has been successfully initialised. Starting data recording...`.
### Setting up Grafana ### Setting up Grafana

View file

@ -20,11 +20,19 @@ map:
- config:rw - config:rw
options: options:
db: "host=77b2833f-timescaledb user=postgres port=5432 password=homeassistant dbname=opendtu_logger sslmode=disable" db: "host=77b2833f-timescaledb user=postgres port=5432 password=homeassistant dbname=opendtu_logger sslmode=disable"
opendtu: "192.168.12.79" opendtu_address: "192.168.12.79"
timescaledb: "true" opendtu_auth: false
opendtu_username: admin
opendtu_password: null
timescaledb: true
tz: "Europe/Amsterdam" tz: "Europe/Amsterdam"
schema: schema:
db: str db: str
opendtu: str opendtu_address: str
opendtu_auth: bool
opendtu_username: str?
opendtu_password: password?
timescaledb: bool timescaledb: bool
tz: str tz: str
breaking_versions:
- "0.1.0"