From cdec784ed0b309582b0aa8c323a384d50edf141c Mon Sep 17 00:00:00 2001 From: Philipp Hansen Date: Thu, 4 Aug 2022 15:52:12 +0200 Subject: [PATCH] WOIP --- configuration.yaml | 3 +-- lovelace/dashboard/hello_world.yaml | 8 ++++++-- lovelace/dashboard/lights.yaml | 17 +++++++++++------ packages/light/buttons/automation.yaml | 16 ++++++++++++++++ packages/light/buttons/scenes.yaml | 7 +++++++ resources.yaml | 2 ++ 6 files changed, 43 insertions(+), 10 deletions(-) mode change 100644 => 100755 configuration.yaml create mode 100755 packages/light/buttons/scenes.yaml diff --git a/configuration.yaml b/configuration.yaml old mode 100644 new mode 100755 index 6cb3835..03fa50c --- a/configuration.yaml +++ b/configuration.yaml @@ -6,5 +6,4 @@ homeassistant: frontend: - themes: !include_dir_merge_named themes - + themes: !include_dir_merge_named themes \ No newline at end of file diff --git a/lovelace/dashboard/hello_world.yaml b/lovelace/dashboard/hello_world.yaml index b19c151..f8b7965 100755 --- a/lovelace/dashboard/hello_world.yaml +++ b/lovelace/dashboard/hello_world.yaml @@ -10,7 +10,9 @@ icon: "mdi:lightbulb" #OPTIONAL name: Office color: "blue" - + +- type: custom:weather-card + entity: weather.pirateweather - type: vertical-stack cards: @@ -27,4 +29,6 @@ - type: 'custom:button-card' template: "card_vacuum" - entity: 'vacuum.valetudo_kunibert' \ No newline at end of file + entity: 'vacuum.valetudo_kunibert' + + diff --git a/lovelace/dashboard/lights.yaml b/lovelace/dashboard/lights.yaml index 5fa5351..e266c93 100755 --- a/lovelace/dashboard/lights.yaml +++ b/lovelace/dashboard/lights.yaml @@ -34,26 +34,31 @@ variables: ulm_card_input_boolean_name: Sleep +- type: 'custom:button-card' + template: card_title + name: Living Room + label: Lights + - type: horizontal-stack cards: - type: "custom:button-card" template: card_light - entity: light.office_switch_lamp + entity: light.livingroom_switch_lamp_table variables: ulm_card_light_enable_color: true ulm_card_light_force_background_color: true - ulm_card_light_name: Office + ulm_card_light_name: Table - type: "custom:button-card" template: card_light - entity: light.office_switch_lamp + entity: light.livingroom_switch_lamp_couch variables: ulm_card_light_enable_color: true ulm_card_light_force_background_color: true - ulm_card_light_name: Office + ulm_card_light_name: Couch - type: "custom:button-card" template: card_light - entity: light.office_switch_lamp + entity: light.living_room_switch_lamp_sill 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 + ulm_card_light_name: Sill \ No newline at end of file diff --git a/packages/light/buttons/automation.yaml b/packages/light/buttons/automation.yaml index 8d40fef..cdb47a7 100755 --- a/packages/light/buttons/automation.yaml +++ b/packages/light/buttons/automation.yaml @@ -1,3 +1,4 @@ +#Guest Room Light automation: - alias: guestroom_light_button trigger: @@ -10,4 +11,19 @@ automation: - type: toggle device_id: 1fcba92f6a53183e10c1dc35a9bb82ce entity_id: light.guestroom_switch_lamp + domain: light + +#Guest Room Light +automation: + - alias: office_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.office_bulb domain: light \ No newline at end of file diff --git a/packages/light/buttons/scenes.yaml b/packages/light/buttons/scenes.yaml new file mode 100755 index 0000000..2df2c48 --- /dev/null +++ b/packages/light/buttons/scenes.yaml @@ -0,0 +1,7 @@ +scene: + - name: Living Room Lights + icon: "mdi:flower-tulip" + entities: + light.livingroom_switch_lamp_table: "toggle" + light.livingroom_switch_lamp_couch: "toggle" + light.livingroom_switch_lamp_sill: "toggle" \ No newline at end of file diff --git a/resources.yaml b/resources.yaml index d6ce131..ebc423a 100755 --- a/resources.yaml +++ b/resources.yaml @@ -31,4 +31,6 @@ - url: /hacsfiles/lovelace-mushroom/mushroom.js type: module - url: /hacsfiles/lovelace-layout-card/layout-card.js + type: module +- url: /hacsfiles/weather-card/weather-card.js type: module \ No newline at end of file