ha-tn-reporter
by egeback
Helm chartv1.1.0App 1.4.12Verified publisher
Reports Home Assistant temperature sensors to temperatur.nu
About this chart
ha-tn-reporter
Reports Home Assistant temperature sensors to temperatur.nu
Homepage: https://github.com/egeback/helm-charts/tree/main/charts/ha-tn-reporter
Maintainers
| Name | Url | |
|---|---|---|
| egeback | [email protected] |
Source Code
Requirements
Kubernetes: >=1.16.0-0
| Repository | Name | Version |
|---|---|---|
| https://bjw-s-labs.github.io/helm-charts | common | 5.3.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| controllers.main.containers.main.env | object | See below | Environment variables. See the ha-to-tn-reporter documentation. The token, hash and MQTT password come from the Secret, see reporter. |
| controllers.main.containers.main.env.REPORTER_HA_URL | string | "" | Home Assistant URL |
| controllers.main.containers.main.env.REPORTER_INTERVAL | string | "180" | Seconds between reports |
| controllers.main.containers.main.env.REPORTER_MQTT_HOST | string | "" | MQTT broker for Home Assistant discovery; empty disables MQTT |
| controllers.main.containers.main.env.REPORTER_SENSOR_MAPPING | string | "" | temperatur.nu station to HA sensor(s): `station=sensor.a |
| controllers.main.containers.main.env.REPORTER_STATE_FILE | string | "/data/state.json" | Lifetime counters, on the data volume (persistence.data) |
| controllers.main.containers.main.image.pullPolicy | string | "IfNotPresent" | image pull policy |
| controllers.main.containers.main.image.repository | string | "egeback/ha-tn-reporter" | image repository |
| controllers.main.containers.main.image.tag | string | chart.appVersion | image tag |
| controllers.main.containers.main.probes | object | See values.yaml | Probes against the /health endpoint (healthy once the first cycle ran, and MQTT is connected when enabled) |
| controllers.main.containers.main.securityContext.allowPrivilegeEscalation | bool | false | |
| controllers.main.containers.main.securityContext.capabilities.drop[0] | string | "ALL" | |
| controllers.main.containers.main.securityContext.readOnlyRootFilesystem | bool | true | |
| defaultPodOptions.securityContext.fsGroup | int | 1000 | |
| defaultPodOptions.securityContext.fsGroupChangePolicy | string | "OnRootMismatch" | |
| defaultPodOptions.securityContext.runAsGroup | int | 1000 | |
| defaultPodOptions.securityContext.runAsNonRoot | bool | true | |
| defaultPodOptions.securityContext.runAsUser | int | 1000 | |
| persistence | object | See values.yaml | Persistence for state.json (lifetime success/error counters) |
| persistence.data.enabled | bool | false | Without it the counters start over when the pod is recreated |
| persistence.tmp | object | {"globalMounts":[{"path":"/tmp"}],"type":"emptyDir"} | Writable /tmp for the read-only root filesystem |
| reporter | object | See below | Credentials, stored in a Secret and passed to the container as env vars |
| reporter.existingSecret | string | "" | Existing Secret with the keys REPORTER_HA_TOKEN, REPORTER_TN_HASH (and optionally REPORTER_MQTT_PASSWORD) |
| reporter.haToken | string | "" | Home Assistant long-lived access token. Required unless existingSecret is set. |
| reporter.mqttPassword | string | "" | MQTT password, if the broker needs one |
| reporter.tnHash | string | "" | temperatur.nu hash. Required unless existingSecret is set. |
| service | object | See values.yaml | Health endpoint, used by the probes |
Autogenerated from chart metadata using helm-docs v1.14.2
Deploy ha-tn-reporter with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ha-tn-reporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartha-tn-reporter is pinned at v1.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply