From b5bc58e98a2d19a8d4e87faafeb3e8c1034d8cc8 Mon Sep 17 00:00:00 2001 From: ttrabatt Date: Mon, 15 Sep 2025 23:01:17 +0200 Subject: [PATCH] Added configuration for bubble card modules --- configuration.yaml | 1 + templates.yaml | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 templates.yaml diff --git a/configuration.yaml b/configuration.yaml index 4cdc9b5..219c376 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -18,6 +18,7 @@ switch: !include switches.yaml light: !include lights.yaml climate: !include climates.yaml binary_sensor: !include binary_sensors.yaml +template: !include templates.yaml # DO NOT remove - Sets MariaDB as database recorder: diff --git a/templates.yaml b/templates.yaml new file mode 100644 index 0000000..d9772a5 --- /dev/null +++ b/templates.yaml @@ -0,0 +1,12 @@ +# Storage for Bubble Card Modules + +- trigger: + - trigger: event + event_type: bubble_card_update_modules + sensor: + - name: "Bubble Card Modules" + state: "saved" + icon: "mdi:puzzle" + attributes: + modules: "{{ trigger.event.data.modules }}" + last_updated: "{{ trigger.event.data.last_updated }}"