From b33c30865e7d7b246796fc3aa3a24058b1f5dfe7 Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 4 Aug 2022 23:05:49 +0200 Subject: [PATCH] WOIP --- lovelace/dashboard/hello_world.yaml | 4 ++-- lovelace/dashboard/lights.yaml | 11 ++++++++++- packages/homeassistant/default_theme.yaml | 12 ++++++++++++ packages/light/buttons/automation.yaml | 15 --------------- packages/light/buttons/scenes.yaml | 7 ------- packages/light/buttons/scripts.yaml | 16 ++++++++++++++++ 6 files changed, 40 insertions(+), 25 deletions(-) create mode 100755 packages/homeassistant/default_theme.yaml delete mode 100755 packages/light/buttons/scenes.yaml create mode 100755 packages/light/buttons/scripts.yaml diff --git a/lovelace/dashboard/hello_world.yaml b/lovelace/dashboard/hello_world.yaml index f8b7965..32e35fb 100755 --- a/lovelace/dashboard/hello_world.yaml +++ b/lovelace/dashboard/hello_world.yaml @@ -6,9 +6,9 @@ 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 + entity_id: light.living_room_lights icon: "mdi:lightbulb" #OPTIONAL - name: Office + name: Living Room color: "blue" - type: custom:weather-card diff --git a/lovelace/dashboard/lights.yaml b/lovelace/dashboard/lights.yaml index e266c93..208d299 100755 --- a/lovelace/dashboard/lights.yaml +++ b/lovelace/dashboard/lights.yaml @@ -61,4 +61,13 @@ variables: ulm_card_light_enable_color: true ulm_card_light_force_background_color: true - ulm_card_light_name: Sill \ No newline at end of file + ulm_card_light_name: Sill + +- type: "custom:button-card" + template: card_light + entity: light.livingroom_switch_tv + variables: + ulm_card_light_icon: mdi:television + ulm_card_light_enable_color: true + ulm_card_light_force_background_color: true + ulm_card_light_name: TV diff --git a/packages/homeassistant/default_theme.yaml b/packages/homeassistant/default_theme.yaml new file mode 100755 index 0000000..844433e --- /dev/null +++ b/packages/homeassistant/default_theme.yaml @@ -0,0 +1,12 @@ +automation: + - id: 'default_theme' + alias: Set Theme on HA Start + description: '' + trigger: + - event: start + platform: homeassistant + condition: [] + action: + - data: + name: minimalist-desktop + service: frontend.set_theme \ No newline at end of file diff --git a/packages/light/buttons/automation.yaml b/packages/light/buttons/automation.yaml index cdb47a7..8005a43 100755 --- a/packages/light/buttons/automation.yaml +++ b/packages/light/buttons/automation.yaml @@ -11,19 +11,4 @@ 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 deleted file mode 100755 index 2df2c48..0000000 --- a/packages/light/buttons/scenes.yaml +++ /dev/null @@ -1,7 +0,0 @@ -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/packages/light/buttons/scripts.yaml b/packages/light/buttons/scripts.yaml new file mode 100755 index 0000000..ae795d7 --- /dev/null +++ b/packages/light/buttons/scripts.yaml @@ -0,0 +1,16 @@ +#script: +# - name: Living Room Lights +# icon: "mdi:flower-tulip" +# entities: +# light.livingroom_switch_lamp_table: "toggle" +# light.livingroom_switch_lamp_couch: "toggle" +# light.living_room_switch_lamp_sill: "toggle" + +# Example configuration.yaml entry +light: + - platform: group + name: "Living Room Lights" + entities: + - light.livingroom_switch_lamp_table + - light.livingroom_switch_lamp_couch + - light.living_room_switch_lamp_sill \ No newline at end of file