Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[#38] Using the HA addon, the PCE identifier is transformed into another number. #41

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

[#38](https://github.com/ssenart/gazpar2haws/issues/38): Using the HA addon, the PCE identifier is transformed into another number.

[#36](https://github.com/ssenart/gazpar2haws/issues/36): Error if HA endpoint configuration is missing in configuration.yaml.

### Added
Expand Down
20 changes: 10 additions & 10 deletions addons/gazpar2haws/rootfs/app/config/configuration.template.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
logging:
file: log/gazpar2haws.log
console: true
console: true
level: debug
format: '%(asctime)s %(levelname)s [%(name)s] %(message)s'
format: "%(asctime)s %(levelname)s [%(name)s] %(message)s"

grdf:
scan_interval: ${GRDF_SCAN_INTERVAL} # Number of minutes between each data retrieval (0 means no scan: a single data retrieval at startup, then stops).
devices:
- name: gazpar2haws # Name of the device in home assistant. It will be used as the entity_id: sensor.${name}.
username: "!secret grdf.username"
password: "!secret grdf.password"
pce_identifier: "!secret grdf.pce_identifier"
timezone: ${GRDF_TIMEZONE} # Timezone of the data. It should be the same as the Home Assistant timezone.
last_days: ${GRDF_LAST_DAYS} # Number of days of data to retrieve
reset: false # If true, the data will be reset before the first data retrieval. If false, the data will be kept and new data will be added.
- name: gazpar2haws # Name of the device in home assistant. It will be used as the entity_id: sensor.${name}.
username: "!secret grdf.username"
password: "!secret grdf.password"
pce_identifier: "!secret grdf.pce_identifier"
timezone: "${GRDF_TIMEZONE}" # Timezone of the data. It should be the same as the Home Assistant timezone.
last_days: ${GRDF_LAST_DAYS} # Number of days of data to retrieve
reset: false # If true, the data will be reset before the first data retrieval. If false, the data will be kept and new data will be added.

homeassistant:
host: "!secret homeassistant.host"
port: "!secret homeassistant.port"
endpoint: ${HOMEASSISTANT_ENDPOINT}
endpoint: "${HOMEASSISTANT_ENDPOINT}" # The websocket endpoint to use. It should be /api/websocket by default.
token: "!secret homeassistant.token"
12 changes: 6 additions & 6 deletions addons/gazpar2haws/rootfs/app/config/secrets.template.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
grdf.username: ${GRDF_USERNAME}
grdf.password: ${GRDF_PASSWORD}
grdf.pce_identifier: ${GRDF_PCE_IDENTIFIER}
grdf.username: "${GRDF_USERNAME}"
grdf.password: "${GRDF_PASSWORD}"
grdf.pce_identifier: "${GRDF_PCE_IDENTIFIER}"

homeassistant.host: ${HOMEASSISTANT_HOST}
homeassistant.port: ${HOMEASSISTANT_PORT}
homeassistant.token: ${HOMEASSISTANT_TOKEN}
homeassistant.host: "${HOMEASSISTANT_HOST}"
homeassistant.port: "${HOMEASSISTANT_PORT}"
homeassistant.token: "${HOMEASSISTANT_TOKEN}"
14 changes: 7 additions & 7 deletions config/secrets.template.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
grdf.username: ${GRDF_USERNAME}
grdf.password: ${GRDF_PASSWORD}
grdf.pce_identifier: ${GRDF_PCE_IDENTIFIER}

homeassistant.host: ${HOMEASSISTANT_HOST}
homeassistant.port: ${HOMEASSISTANT_PORT}
homeassistant.token: ${HOMEASSISTANT_TOKEN}
grdf.username: "${GRDF_USERNAME}"
grdf.password: "${GRDF_PASSWORD}"
grdf.pce_identifier: "${GRDF_PCE_IDENTIFIER}"
homeassistant.host: "${HOMEASSISTANT_HOST}"
homeassistant.port: "${HOMEASSISTANT_PORT}"
homeassistant.token: "${HOMEASSISTANT_TOKEN}"
Loading