From c9b744449c8c771c7f42b63442541c5c2c9eee3a Mon Sep 17 00:00:00 2001 From: Christoph Giesche Date: Mon, 16 Oct 2023 22:12:47 +0200 Subject: [PATCH 1/4] streamdeck-homeassistant-117 Streamdeck Plus --- public/manifest.json | 7 +- src/components/PiComponent.vue | 77 ++++++++++++---- src/components/PluginComponent.vue | 89 ++++++++++++++----- src/components/ServiceCallConfiguration.vue | 42 ++++++--- src/components/accordeon/Accordeon.vue | 14 +++ src/components/accordeon/AccordeonItem.vue | 31 +++++++ src/modules/common/settings.js | 21 ++++- src/modules/common/streamdeck.js | 27 +++++- .../plugin/entityButtonImageFactory.js | 5 -- 9 files changed, 254 insertions(+), 59 deletions(-) create mode 100644 src/components/accordeon/Accordeon.vue create mode 100644 src/components/accordeon/AccordeonItem.vue diff --git a/public/manifest.json b/public/manifest.json index 42884d8..6f6dfd7 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -12,7 +12,12 @@ } ], "SupportedInMultiActions": true, - "UUID": "de.perdoctus.streamdeck.homeassistant.entity" + "UUID": "de.perdoctus.streamdeck.homeassistant.entity", + "Controllers": ["Keypad", "Encoder"], + "Encoder": { + "layout": "$A0", + "StackColor": "#AABBCC" + } }, { diff --git a/src/components/PiComponent.vue b/src/components/PiComponent.vue index 3dfa7ff..21fc5da 100644 --- a/src/components/PiComponent.vue +++ b/src/components/PiComponent.vue @@ -42,7 +42,7 @@
-

Button appearance

+

{{ controllerType }} appearance

@@ -115,19 +115,46 @@
-

Button actions

- -
Short Press
- - -
Long Press
- +

{{ controllerType }} actions

+ + + + + + + + + + + + + +