home-assistant: add spaceapi for us and turmlabor
This commit is contained in:
parent
80ba520664
commit
8756ebc937
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue