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"; } ];