From 4f531bece4deae6779e09364a8dea64d8ff48548 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Aug 2022 00:35:03 +0200 Subject: [PATCH] First Commit --- configuration.yaml | 10 ++++ lovelace/dashboard/hello_world.yaml | 30 ++++++++++++ lovelace/dashboard/lights.yaml | 59 +++++++++++++++++++++++ packages/homeassistant/homeassistant.yaml | 26 ++++++++++ packages/homeassistant/recorder.yaml | 7 +++ packages/light/adaptive.yaml | 4 ++ packages/light/buttons/automation.yaml | 13 +++++ packages/minimalist/minimalist_input.yaml | 3 ++ packages/pirateweather.yaml | 4 ++ resources.yaml | 34 +++++++++++++ ui-lovelace.yaml | 23 +++++++++ 11 files changed, 213 insertions(+) create mode 100644 configuration.yaml create mode 100755 lovelace/dashboard/hello_world.yaml create mode 100755 lovelace/dashboard/lights.yaml create mode 100755 packages/homeassistant/homeassistant.yaml create mode 100755 packages/homeassistant/recorder.yaml create mode 100755 packages/light/adaptive.yaml create mode 100755 packages/light/buttons/automation.yaml create mode 100755 packages/minimalist/minimalist_input.yaml create mode 100755 packages/pirateweather.yaml create mode 100755 resources.yaml create mode 100755 ui-lovelace.yaml diff --git a/configuration.yaml b/configuration.yaml new file mode 100644 index 0000000..6cb3835 --- /dev/null +++ b/configuration.yaml @@ -0,0 +1,10 @@ +default_config: + + +homeassistant: + packages: !include_dir_named packages + + +frontend: + themes: !include_dir_merge_named themes + diff --git a/lovelace/dashboard/hello_world.yaml b/lovelace/dashboard/hello_world.yaml new file mode 100755 index 0000000..b19c151 --- /dev/null +++ b/lovelace/dashboard/hello_world.yaml @@ -0,0 +1,30 @@ +- type: "custom:button-card" + template: "card_welcome_scenes" + triggers_update: input_boolean.welcome_collapse + entity: input_boolean.welcome_collapse + variables: + ulm_card_welcome_scenes_collapse: input_boolean.welcome_collapse #OPTIONAl --> uncomment also entity or triggers_update + ulm_weather: weather.pirateweather + entity_1: + entity_id: light.office_switch_lamp + icon: "mdi:lightbulb" #OPTIONAL + name: Office + color: "blue" + + +- type: vertical-stack + cards: + - type: 'custom:valetudo-map-card' + vacuum: 'valetudo_kunibert' + title: + show_status: false + show_battery_level: false + show_start_button: false + show_pause_button: false + show_stop_button: false + show_home_button: false + show_locate_button: false + + - type: 'custom:button-card' + template: "card_vacuum" + entity: 'vacuum.valetudo_kunibert' \ No newline at end of file diff --git a/lovelace/dashboard/lights.yaml b/lovelace/dashboard/lights.yaml new file mode 100755 index 0000000..5fa5351 --- /dev/null +++ b/lovelace/dashboard/lights.yaml @@ -0,0 +1,59 @@ +- type: horizontal-stack + cards: + - type: "custom:button-card" + template: card_light + entity: light.office_bulb + variables: + ulm_card_light_enable_slider: true + ulm_card_light_enable_color: true + ulm_card_light_force_background_color: true + ulm_card_light_name: Office + ulm_card_light_enable_collapse: true + ulm_card_light_enable_color: true + - type: "custom:button-card" + template: card_light + entity: light.bedroom_bulb_light + variables: + ulm_card_light_enable_slider: true + ulm_card_light_enable_color: true + ulm_card_light_force_background_color: true + ulm_card_light_name: Bedroom + ulm_card_light_enable_collapse: true + +- type: "horizontal-stack" + cards: + - type: 'custom:button-card' + template: card_input_boolean + entity: switch.adaptive_lighting_default + variables: + ulm_card_input_boolean_name: Adaptive + + - type: 'custom:button-card' + template: card_input_boolean + entity: switch.adaptive_lighting_sleep_mode_default + variables: + ulm_card_input_boolean_name: Sleep + +- type: horizontal-stack + cards: + - type: "custom:button-card" + template: card_light + entity: light.office_switch_lamp + variables: + ulm_card_light_enable_color: true + ulm_card_light_force_background_color: true + ulm_card_light_name: Office + - type: "custom:button-card" + template: card_light + entity: light.office_switch_lamp + variables: + ulm_card_light_enable_color: true + ulm_card_light_force_background_color: true + ulm_card_light_name: Office + - type: "custom:button-card" + template: card_light + entity: light.office_switch_lamp + variables: + ulm_card_light_enable_color: true + ulm_card_light_force_background_color: true + ulm_card_light_name: Office \ No newline at end of file diff --git a/packages/homeassistant/homeassistant.yaml b/packages/homeassistant/homeassistant.yaml new file mode 100755 index 0000000..f4d5796 --- /dev/null +++ b/packages/homeassistant/homeassistant.yaml @@ -0,0 +1,26 @@ +homeassistant: + name: Home + latitude: !secret latitude + longitude: !secret longitude + elevation: !secret elevation + unit_system: metric + temperature_unit: C + time_zone: Europe/Berlin + allowlist_external_dirs: + - '/tmp' + + +http: + use_x_forwarded_for: true + trusted_proxies: + - 172.30.33.0/24 + - 172.30.33.1/32 + - 172.30.32.0/24 + - 192.168.1.0/24 + - 192.168.2.0/24 + - 192.168.3.0/24 + + +lovelace: + mode: yaml + resources: !include ../../resources.yaml \ No newline at end of file diff --git a/packages/homeassistant/recorder.yaml b/packages/homeassistant/recorder.yaml new file mode 100755 index 0000000..d19f432 --- /dev/null +++ b/packages/homeassistant/recorder.yaml @@ -0,0 +1,7 @@ +recorder: + db_url: !secret db_url + auto_purge: true + purge_keep_days: 60 + exclude: + entities: + - sensor.time \ No newline at end of file diff --git a/packages/light/adaptive.yaml b/packages/light/adaptive.yaml new file mode 100755 index 0000000..a852697 --- /dev/null +++ b/packages/light/adaptive.yaml @@ -0,0 +1,4 @@ +adaptive_lighting: + min_brightness: 30 + lights: + - light.office_bulb \ No newline at end of file diff --git a/packages/light/buttons/automation.yaml b/packages/light/buttons/automation.yaml new file mode 100755 index 0000000..8d40fef --- /dev/null +++ b/packages/light/buttons/automation.yaml @@ -0,0 +1,13 @@ +automation: + - alias: guestroom_light_button + trigger: + - device_id: c6b9d0a0f7a56e9f2966cdb8cb312614 + domain: zha + platform: device + type: remote_button_short_press + subtype: button + action: + - type: toggle + device_id: 1fcba92f6a53183e10c1dc35a9bb82ce + entity_id: light.guestroom_switch_lamp + domain: light \ No newline at end of file diff --git a/packages/minimalist/minimalist_input.yaml b/packages/minimalist/minimalist_input.yaml new file mode 100755 index 0000000..75b321b --- /dev/null +++ b/packages/minimalist/minimalist_input.yaml @@ -0,0 +1,3 @@ +input_boolean: + welcome_collapse: + name: welcome_collapse \ No newline at end of file diff --git a/packages/pirateweather.yaml b/packages/pirateweather.yaml new file mode 100755 index 0000000..ca1991b --- /dev/null +++ b/packages/pirateweather.yaml @@ -0,0 +1,4 @@ +weather: + - platform: pirateweather + api_key: !secret pirate_weather_api + mode: daily \ No newline at end of file diff --git a/resources.yaml b/resources.yaml new file mode 100755 index 0000000..d6ce131 --- /dev/null +++ b/resources.yaml @@ -0,0 +1,34 @@ +- url: /hacsfiles/button-card/button-card.js + type: module +- url: /hacsfiles/light-entity-card/light-entity-card.js + type: module +- url: /hacsfiles/lovelace-auto-entities/auto-entities.js + type: module +- url: /hacsfiles/lovelace-card-mod/card-mod.js + type: module +- url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js + type: module +- url: /hacsfiles/mini-media-player/mini-media-player-bundle.js + type: module +- url: /hacsfiles/my-cards/my-slider.js + type: module +- url: /hacsfiles/my-cards/my-button.js + type: module +- url: /hacsfiles/simple-weather-card/simple-weather-card-bundle.js + type: module +- url: /hacsfiles/home-assistant-sun-card/home-assistant-sun-card.js + type: module +- url: /hacsfiles/lovelace-layout-card/layout-card.js + type: module +- url: /hacsfiles/lovelace-state-switch/state-switch.js + type: module +- url: /hacsfiles/lovelace-valetudo-map-card/valetudo-map-card.js + type: module +- url: /hacsfiles/lovelace-home-feed-card/lovelace-home-feed-card.js + type: module +- url: /hacsfiles/weather-card/weather-card.js + type: module +- url: /hacsfiles/lovelace-mushroom/mushroom.js + type: module +- url: /hacsfiles/lovelace-layout-card/layout-card.js + type: module \ No newline at end of file diff --git a/ui-lovelace.yaml b/ui-lovelace.yaml new file mode 100755 index 0000000..6e057ee --- /dev/null +++ b/ui-lovelace.yaml @@ -0,0 +1,23 @@ +--- +button_card_templates: !include_dir_merge_named "custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/" + + +title: "Overview" +theme: "minimalist-desktop" +background: "var(--background-image)" + +views: + - type: custom:vertical-layout + title: "Overview" + path: 0 + cards: + - type: custom:vertical-layout + type: vertical-stack + cards: + !include lovelace/dashboard/hello_world.yaml + - type: custom:layout-break + - type: custom:vertical-layout + type: vertical-stack + cards: + !include lovelace/dashboard/lights.yaml + \ No newline at end of file