From a33f005e337e0345361faa61ab818057bdbe8837 Mon Sep 17 00:00:00 2001 From: Dusan Klinec Date: Sun, 30 Jun 2024 09:59:34 +0200 Subject: [PATCH] ha - change apps and secret ops --- ph4ha/config/.gitignore | 2 ++ ph4ha/config/apps.example.yaml | 30 ++++++++++++++++++++++++++++++ ph4ha/config/apps.yaml | 12 ------------ ph4ha/config/secrets.example.yaml | 5 +++++ ph4ha/config/secrets.yaml | 2 -- 5 files changed, 37 insertions(+), 14 deletions(-) create mode 100644 ph4ha/config/.gitignore create mode 100644 ph4ha/config/apps.example.yaml delete mode 100644 ph4ha/config/apps.yaml create mode 100644 ph4ha/config/secrets.example.yaml delete mode 100644 ph4ha/config/secrets.yaml diff --git a/ph4ha/config/.gitignore b/ph4ha/config/.gitignore new file mode 100644 index 0000000..c09a3ea --- /dev/null +++ b/ph4ha/config/.gitignore @@ -0,0 +1,2 @@ +secrets.yaml +apps.yaml diff --git a/ph4ha/config/apps.example.yaml b/ph4ha/config/apps.example.yaml new file mode 100644 index 0000000..dedd68c --- /dev/null +++ b/ph4ha/config/apps.example.yaml @@ -0,0 +1,30 @@ +shelly: + module: shelly_app + class: ShellyHallway + shelly_cor_host: 127.0.0.1 + shelly_cor_token: !secret shelly_cor_token + shelly_cor_pass: !secret shelly_cor_pass + +venting: + module: vent + class: Venting + hum_sensor: sensor.aqarabathroom_humidity + vent_switch: switch.shellyplus1_083af202ae44_switch_0 + +blinds: + module: blinds + class: Blinds + blinds: + - name: "LivBig" + ip_address: "192.168.0.10" + ha_name: "shellyplus2pm-xxx" + password: !secret shelly_blinds_liv_big + - name: "Bedroom" + ip_address: "192.168.0.11" + ha_name: "shellyplus2pm-yyy" + password: !secret shelly_blinds_bedroom + - name: "Study" + ip_address: "192.168.0.12" + ha_name: "shellyplus2pm-zzz" + password: !secret shelly_blinds_study + weekdays_open_time: "input_text.weekday_blind_open_time" diff --git a/ph4ha/config/apps.yaml b/ph4ha/config/apps.yaml deleted file mode 100644 index 412e0b5..0000000 --- a/ph4ha/config/apps.yaml +++ /dev/null @@ -1,12 +0,0 @@ -shelly: - module: shelly_app - class: ShellyHallway - shelly_cor_host: 127.0.0.1 - shelly_cor_token: !secret shelly_cor_token - shelly_cor_pass: !secret shelly_cor_pass - -venting: - module: vent - class: Venting - hum_sensor: sensor.aqarabathroom_humidity - vent_switch: switch.shellyplus1_083af202ae44_switch_0 diff --git a/ph4ha/config/secrets.example.yaml b/ph4ha/config/secrets.example.yaml new file mode 100644 index 0000000..abeefff --- /dev/null +++ b/ph4ha/config/secrets.example.yaml @@ -0,0 +1,5 @@ +shelly_cor_token: secret-token-here +shelly_cor_pass: pass-here +shelly_blinds_liv_big: pass-here +shelly_blinds_bedroom: pass-here +shelly_blinds_study: pass-here diff --git a/ph4ha/config/secrets.yaml b/ph4ha/config/secrets.yaml deleted file mode 100644 index feaa789..0000000 --- a/ph4ha/config/secrets.yaml +++ /dev/null @@ -1,2 +0,0 @@ -shelly_cor_token: secret-token-here -shelly_cor_pass: pass-here