From 5a237e8c8150b437842fee925eae918de7f23169 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Wed, 18 Jan 2023 13:52:33 +0100 Subject: [PATCH] add doorstatus_ts --- generator/config.yaml | 3 +++ generator/template.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/generator/config.yaml b/generator/config.yaml index 7fe4265..43960a6 100644 --- a/generator/config.yaml +++ b/generator/config.yaml @@ -7,6 +7,9 @@ variables: doorstatus: topic: c3re/hhdst cast: bool + doorstatus_ts: + topic: c3re/hhdst_tsu + cast: int clubraum_temp: topic: c3re/clubraumtemp cast: float diff --git a/generator/template.json b/generator/template.json index dbe41d5..017adc1 100644 --- a/generator/template.json +++ b/generator/template.json @@ -16,7 +16,7 @@ "issue_report_channels": ["email"], "state": { "open": "{{doorstatus}}", - "lastchange": "{{doorstatus#timestamp}}", + "lastchange": "{{doorstatus_ts}}", "icon": { "open": "https://c3re.de/doorstatus/open.png", "closed": "https://c3re.de/doorstatus/closed.png"