Skip to content

Commit

Permalink
[#38] Using the HA addon, the PCE identifier is transformed into anot…
Browse files Browse the repository at this point in the history
…her number. (#41)

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

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

---------

Co-authored-by: Stéphane Senart <>
  • Loading branch information
ssenart authored Jan 15, 2025
1 parent 56d567a commit d0c443a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 23 deletions.
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}"

0 comments on commit d0c443a

Please # to comment.