From f521f42370c86010317e7140f0798c7562c88352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 4 Feb 2024 20:54:32 +0100 Subject: [PATCH] home-assistant: read hq state directly from schalter --- hosts/home-assistant/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/home-assistant/default.nix b/hosts/home-assistant/default.nix index 0d865752..8d41d15d 100644 --- a/hosts/home-assistant/default.nix +++ b/hosts/home-assistant/default.nix @@ -63,11 +63,11 @@ in platform = "rest"; name = "c3d2"; unique_id = "status_c3d2"; - resource = "https://c3d2.de/spaceapi.json"; + resource = "http://schalter.hq.c3d2.de/schalter.json"; method = "GET"; scan_interval = 60; verify_ssl = true; - value_template = "{{ value_json['state']['open'] }}"; + value_template = "{{ not value_json['status'] }}"; device_class = "door"; } ];