plasma-homeassistant icon indicating copy to clipboard operation
plasma-homeassistant copied to clipboard

Enhancement Ideas: Widget Functionality and Layout Improvements

Open moritz-john opened this issue 2 years ago • 7 comments

Hello,

First and foremost, I want to express my gratitude for creating this fantastic widget.


I've noticed a couple of things and have some feedback:

  1. Currently, I can only use one widget at a time, as the other one keeps on spinning, even though both are configured with the same URL and Token. In case I need to use a different token per widget(?), this should be documented somewhere.
  2. It would be fantastic if we could resize widget 2️⃣/3️⃣, similar to how we can with widget 1️⃣ (or if the height of the widget is being automatically adjusted based on the number of entities). As you can see, I currently only need to control two entities, so there's a considerable amount of wasted space.
  3. I'd appreciate the ability to change the view so that all my entities span the entire width, mirroring the layout in 1️⃣, rather than creating a horizontal stack as seen in 3️⃣. image image

For the README:

Use
1) Enter the URL of the Home Assistant instance
2) Create Long Lived Access Token on your Home Assistant Profile page (https://<your_ha_address>/profile) and put it in the plasmoid configuration
3) Add entities

Maybe add a 4) step: "reboot", "login / logout" or kquitapp5 plasmashell && kstart5 plasmashell since I had to do one of those things in order to make my entities appear.

Kind regards, Moritz

moritz-john avatar Nov 11 '23 16:11 moritz-john

Thank you for your feedback.

  1. I am aware of this - it has been on my mind for some time.
  2. (3). I'm considering a more customizable layout but for now you should be able to achieve this (if you are using Plasma 5.26 or later) by resizing the widget:

https://github.com/korapp/plasma-homeassistant/assets/3818002/0c8c1b64-67b4-408a-9728-6cd7157e4fab

It shouldn't be necessary to re-initialize the plasma, so this may be a bug. I'll investigate it.

korapp avatar Nov 11 '23 19:11 korapp

for now you should be able to achieve this (if you are using Plasma 5.26 or later) by resizing the widget

You are absolutely right! Thank you for the video. I am running Plasma 5.27.9

moritz-john avatar Nov 11 '23 19:11 moritz-john

Should I close this issue? Aside from 1. (which you are already ware of), you provided a nice workaround for the other "issues". Thank you :).

moritz-john avatar Nov 11 '23 19:11 moritz-john

I experience the same issue. I added it as desktop widget first and it worked fine. Then I wanted to add a widget to my taskbar and it just opened a popup with a spinner. Even after deleting the desktop widget, en readding the taskbar widget it's the same.

wpinfusion avatar Nov 25 '23 16:11 wpinfusion

Please check if the problem still occurs in v0.3.0.

korapp avatar Jan 07 '24 16:01 korapp

Please check if the problem still occurs in v0.3.0.

Thank you so much for your work. I can confirm that two widgets at the same time are working now!

moritz-john avatar Jan 07 '24 17:01 moritz-john