From 16f7702edd545e35eea7355fa42621c87d9ff9f9 Mon Sep 17 00:00:00 2001 From: nold Date: Thu, 28 Dec 2023 10:39:37 +0100 Subject: [PATCH] feat(hass): wmbusmeters --- projects/homeassistant/project.yaml | 5 + projects/homeassistant/values/wmbusmeters.yml | 95 +++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 projects/homeassistant/values/wmbusmeters.yml diff --git a/projects/homeassistant/project.yaml b/projects/homeassistant/project.yaml index 93d3e3bf..eb2274aa 100644 --- a/projects/homeassistant/project.yaml +++ b/projects/homeassistant/project.yaml @@ -29,3 +29,8 @@ apps: chart: node-red repoURL: https://schwarzit.github.io/node-red-chart targetRevision: 0.23.1 + +- name: wmbusmeters + chart: app-template + repo: bjw-s + targetRevision: 2.4.0 diff --git a/projects/homeassistant/values/wmbusmeters.yml b/projects/homeassistant/values/wmbusmeters.yml new file mode 100644 index 00000000..ad1be6e3 --- /dev/null +++ b/projects/homeassistant/values/wmbusmeters.yml @@ -0,0 +1,95 @@ +controllers: + main: + containers: + main: + image: + repository: wmbusmeters/wmbusmeters + tag: latest + command: + - /wmbusmeters/wmbusmeters + - --useconfig=/etc + - --verbose + + securityContext: + privileged: true + + probes: + liveness: + enabled: false + readiness: + enabled: false + startup: + enabled: false + + +configMaps: + config: + enabled: true + data: + wmbusmeters.conf: | + loglevel=normal + device=rtl433 + logtelegrams=false + format=json + logfile=/dev/stdout + donotprobe=/dev/ttyACM0 + shell=/usr/bin/mosquitto_pub -h mqtt.lan -t wmbusmeters/"$METER_ID" -m "$METER_JSON" + ignoreduplicates=false + + meters: + enabled: true + data: + meter1: | + name=WashingMachine + id=22267173 + key= + driver=waterstarm + meter2: | + name=Water + id=22270064 + key= + driver=waterstarm + +persistence: + data: + accessMode: ReadWriteOnce + enabled: true + readOnly: false + size: 10Gi + type: persistentVolumeClaim + globalMounts: + - path: /wmbusmeters_data + + config: + enabled: true + type: configMap + name: wmbusmeters-config + advancedMounts: + main: # the controller with the "main" identifier + main: # the container with the "main" identifier + - path: /etc/wmbusmeters.conf + readOnly: true + subPath: wmbusmeters.conf + + meters: + enabled: true + type: configMap + name: wmbusmeters-meters + advancedMounts: + main: # the controller with the "main" identifier + main: # the container with the "main" identifier + - path: /etc/wmbusmeters.d + readOnly: true + + dev: + enabled: true + type: hostPath + hostPath: /dev + +service: + main: + ports: + http: + enabled: true + port: 3001 + type: ClusterIP