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

NameEmailUrl
egeback[email protected]

Source Code

Requirements

Kubernetes: >=1.16.0-0

RepositoryNameVersion
https://bjw-s-labs.github.io/helm-chartscommon5.3.0

Values

KeyTypeDefaultDescription
controllers.main.containers.main.envobjectSee belowEnvironment 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_URLstring""Home Assistant URL
controllers.main.containers.main.env.REPORTER_INTERVALstring"180"Seconds between reports
controllers.main.containers.main.env.REPORTER_MQTT_HOSTstring""MQTT broker for Home Assistant discovery; empty disables MQTT
controllers.main.containers.main.env.REPORTER_SENSOR_MAPPINGstring""temperatur.nu station to HA sensor(s): `station=sensor.a
controllers.main.containers.main.env.REPORTER_STATE_FILEstring"/data/state.json"Lifetime counters, on the data volume (persistence.data)
controllers.main.containers.main.image.pullPolicystring"IfNotPresent"image pull policy
controllers.main.containers.main.image.repositorystring"egeback/ha-tn-reporter"image repository
controllers.main.containers.main.image.tagstringchart.appVersionimage tag
controllers.main.containers.main.probesobjectSee values.yamlProbes against the /health endpoint (healthy once the first cycle ran, and MQTT is connected when enabled)
controllers.main.containers.main.securityContext.allowPrivilegeEscalationboolfalse
controllers.main.containers.main.securityContext.capabilities.drop[0]string"ALL"
controllers.main.containers.main.securityContext.readOnlyRootFilesystembooltrue
defaultPodOptions.securityContext.fsGroupint1000
defaultPodOptions.securityContext.fsGroupChangePolicystring"OnRootMismatch"
defaultPodOptions.securityContext.runAsGroupint1000
defaultPodOptions.securityContext.runAsNonRootbooltrue
defaultPodOptions.securityContext.runAsUserint1000
persistenceobjectSee values.yamlPersistence for state.json (lifetime success/error counters)
persistence.data.enabledboolfalseWithout it the counters start over when the pod is recreated
persistence.tmpobject{"globalMounts":[{"path":"/tmp"}],"type":"emptyDir"}Writable /tmp for the read-only root filesystem
reporterobjectSee belowCredentials, stored in a Secret and passed to the container as env vars
reporter.existingSecretstring""Existing Secret with the keys REPORTER_HA_TOKEN, REPORTER_TN_HASH (and optionally REPORTER_MQTT_PASSWORD)
reporter.haTokenstring""Home Assistant long-lived access token. Required unless existingSecret is set.
reporter.mqttPasswordstring""MQTT password, if the broker needs one
reporter.tnHashstring""temperatur.nu hash. Required unless existingSecret is set.
serviceobjectSee values.yamlHealth 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartha-tn-reporter is pinned at v1.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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