From 951b4edc17d23ff35f30d4f5fe22bb94d6fc823f Mon Sep 17 00:00:00 2001 From: Bennett Wetters Date: Sat, 13 Jan 2024 23:25:54 +0100 Subject: [PATCH] Rename config template and switch to new format --- ccchh-template.json | 42 ------------------------ config-template.json | 77 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 42 deletions(-) delete mode 100644 ccchh-template.json create mode 100644 config-template.json diff --git a/ccchh-template.json b/ccchh-template.json deleted file mode 100644 index 70d7a62..0000000 --- a/ccchh-template.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "api_compatibility": [ - "14" - ], - "space": "CCCHH", - "logo": "https://next.hamburg.ccc.de/images/logo.svg", - "ext_ccc": "erfa", - "url": "https://hamburg.ccc.de/", - "location": { - "address": "Zeiseweg 9, 22765 Hamburg, Germany", - "lon": 9.9445899999999998, - "lat": 53.55836 - }, - "contact": { - "phone": "+494023830150", - "irc": "ircs://irc.hackint.org:6697/#ccchh", - "mastodon": "@ccchh@chaos.social", - "email": "mail@hamburg.ccc.de", - "ml": "talk@hamburg.ccc.de", - "matrix": "#ccchh:hamburg.ccc.de" - }, - "feeds": { - "blog": { - "type": "application/atom+xml", - "url": "https://hamburg.ccc.de/feed.xml" - }, - "calendar": { - "type": "ical", - "url": "webcal://cloud.hamburg.ccc.de/remote.php/dav/public-calendars/QJAdExziSnNJEz5g/?export" - } - }, - "links": [ - { - "name": "Wiki", - "url": "https://wiki.ccchh.net" - }, - { - "name": "GitLab", - "url": "https://gitlab.hamburg.ccc.de" - } - ] -} diff --git a/config-template.json b/config-template.json new file mode 100644 index 0000000..49bc770 --- /dev/null +++ b/config-template.json @@ -0,0 +1,77 @@ +{ + "credentials": { + "home-assistant": { + "username": "home-assistant", + "password": "hamiau" + }, + "dooris-hauptraum": { + "username": "dooris-hauptraum", + "password": "doorimiau" + } + }, + "dynamic": { + "sensors": { + "temperature": [ + { + "sensor_data": { + "name": "Küche", + "location": "Hauptraum", + "unit": "C" + }, + "allowed_credentials": [ + "home-assistant" + ] + } + ] + }, + "state": { + "open": { + "allowed_credentials": [ + "dooris-hauptraum" + ] + } + } + }, + "static": { + "api_compatibility": [ + "14" + ], + "space": "CCCHH", + "logo": "https://next.hamburg.ccc.de/images/logo.svg", + "ext_ccc": "erfa", + "url": "https://hamburg.ccc.de/", + "location": { + "address": "Zeiseweg 9, 22765 Hamburg, Germany", + "lon": 9.9445899999999998, + "lat": 53.55836 + }, + "contact": { + "phone": "+49 40 23830150", + "irc": "ircs://irc.hackint.org:6697/#ccchh", + "mastodon": "@ccchh@chaos.social", + "email": "mail@hamburg.ccc.de", + "ml": "talk@hamburg.ccc.de", + "matrix": "#ccchh:hamburg.ccc.de" + }, + "feeds": { + "blog": { + "type": "application/atom+xml", + "url": "https://hamburg.ccc.de/feed.xml" + }, + "calendar": { + "type": "ical", + "url": "webcal://cloud.hamburg.ccc.de/remote.php/dav/public-calendars/QJAdExziSnNJEz5g/?export" + } + }, + "links": [ + { + "name": "Wiki", + "url": "https://wiki.ccchh.net" + }, + { + "name": "GitLab", + "url": "https://gitlab.hamburg.ccc.de" + } + ] + } +}