-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#38] Using the HA addon, the PCE identifier is transformed into anot…
…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
Showing
4 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
addons/gazpar2haws/rootfs/app/config/configuration.template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |