From 6be308fa0edbe5552c50c725c50535fab9d26195 Mon Sep 17 00:00:00 2001 From: jens Date: Wed, 17 Dec 2025 17:33:26 +0000 Subject: [PATCH] =?UTF-8?q?Home=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Home.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Home.md diff --git a/Home.md b/Home.md new file mode 100644 index 0000000..25cfab4 --- /dev/null +++ b/Home.md @@ -0,0 +1,25 @@ +### Home Assistant + +in der configurations.yaml datei: +unter +``` +mqtt: +sensor: + +`- name: "Gas Usage" + state_topic: "homeassistant/sensor/gas_meter/state" + unit_of_measurement: "m³" + device_class: gas + state_class: total_increasing + value_template: "{{ value_json.total_m3 }}" + json_attributes_topic: "homeassistant/sensor/gas_meter/state" + json_attributes_template: "{{ {'daily_usage': value_json.daily_m3, 'pulses': value_json.total_pulses, 'timestamp': value_json.timestamp} | tojson }}" +` +`binary_sensor: + - name: "Gas Meter Status" + state_topic: "homeassistant/sensor/gas_meter/status" + payload_on: "online" + payload_off: "offline" + device_class: connectivity` +``` +``` \ No newline at end of file