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"