From c15458f76b82f2281a98da58fa82dcaa21bd0929 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 29 Nov 2022 01:27:02 +0100 Subject: [PATCH] Add appdaemon configuration --- configuration/appdaemon/appdaemon.yaml | 25 +++++++++++++++++++++++++ configuration/appdaemon/apps/apps.yaml | 23 +++++++++++++++++++++++ home-assistant.yml | 6 +++++- 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 configuration/appdaemon/appdaemon.yaml create mode 100644 configuration/appdaemon/apps/apps.yaml diff --git a/configuration/appdaemon/appdaemon.yaml b/configuration/appdaemon/appdaemon.yaml new file mode 100644 index 0000000..08a9ea5 --- /dev/null +++ b/configuration/appdaemon/appdaemon.yaml @@ -0,0 +1,25 @@ +--- +secrets: /config/secrets.yaml +appdaemon: + latitude: !secret latitude + longitude: !secret longitude + elevation: 2 + time_zone: Europe/Warsaw + plugins: + HASS: + type: hass + MQTT: + type: mqtt + namespace: mqtt + client_id: "appdaemon" + client_host: 192.168.60.100 + client_port: 1883 + client_user: "appdaemon" + client_password: !secret appdaemon_mqtt_password + client_topics: NONE + +http: + url: http://127.0.0.1:5050 +admin: +api: +hadashboard: diff --git a/configuration/appdaemon/apps/apps.yaml b/configuration/appdaemon/apps/apps.yaml new file mode 100644 index 0000000..457d675 --- /dev/null +++ b/configuration/appdaemon/apps/apps.yaml @@ -0,0 +1,23 @@ +--- +nspanel-1: + module: nspanel-lovelace-ui + class: NsPanelLovelaceUIManager + config: + panelRecvTopic: "tele/tasmota_0E48CC/RESULT" + panelSendTopic: "cmnd/tasmota_0E48CC/CustomSend" + model: eu + sleepTimeout: 30 + sleepBrightness: + - time: "7:00:00" + value: 10 + - time: "23:00:00" + value: 0 + screensaver: + entity: weather.home + cards: + - type: cardEntities + title: Example 1 + entities: + - entity: light.couch_lights + - entity: light.office + - entity: light.kitchen_lights diff --git a/home-assistant.yml b/home-assistant.yml index f571caa..2c00b4b 100644 --- a/home-assistant.yml +++ b/home-assistant.yml @@ -69,4 +69,8 @@ copy: src: python_scripts dest: '{{ pwd_config }}' - directory_mode: yes \ No newline at end of file + directory_mode: yes + - name: Copy appdaemon + copy: + src: configuration/appdaemon + dest: '{{ pwd_config }}/appdaemon' \ No newline at end of file