home-assistant: add spaceapi for us and turmlabor

This commit is contained in:
Sandro - 2023-04-12 01:23:09 +02:00
parent 80ba520664
commit 8756ebc937
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 24 additions and 0 deletions

View File

@ -39,6 +39,30 @@ in
home-assistant = {
enable = true;
config = {
binary_sensor = [
{
platform = "rest";
name = "Turmlabor";
unique_id = "status_turmlabor_dresden";
resource = "https://turmlabor.de/spaces.api";
method = "GET";
scan_interval = 60;
verify_ssl = true;
value_template = "{{ value_json['state']['open'] }}";
device_class = "door";
}
{
platform = "rest";
name = "c3d2";
unique_id = "status_c3d2";
resource = "https://c3d2.de/spaceapi.json";
method = "GET";
scan_interval = 60;
verify_ssl = true;
value_template = "{{ value_json['state']['open'] }}";
device_class = "door";
}
];
default_config = { }; # yes, this is required...
automation = "!include automations.yaml";
homeassistant = {