korapp / plasma-homeassistant Goto Github PK
View Code? Open in Web Editor NEWAdd Home Assistant to your plasma desktop
License: GNU General Public License v3.0
Add Home Assistant to your plasma desktop
License: GNU General Public License v3.0
Would it be possible to have items be more persistent? So that when you delete a widget where the items are in, those items would not get deleted as well? As it is, its quite easy to delete a widget and not realize that those items you spent quite a bit of time to configure, would disappear as well.
Hi!
I just came across your widget. Good job!
It took me some effort to get the widget working.
As i use nixos i installed two nixos packages and had to reboot afterwards.
environment.systemPackages = with pkgs; [
...
qt6.qtwebsockets
libsForQt5.qt5.qtwebsockets
];
After adding some items to the widget, i noticed that the buttons didn't appeared until i restarted Plasma.
I think some refreshing implementation might be needed.
Btw. i had the plan to develop my own widget and implement Voice Assistant (which i probably never would have complete).
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:
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
Describe the bug
User changes identity id of a device (in my case a light group) in Home Assistant. When trying to modify corresponding item in the plasmoid settings all fields are empty, forcing user to re-enter those, and not just the identity id. In addition toggle action doesn't work afterwards, clicking item's button in the widget does nothing. You have to uncheck Action in item settings, save it and re-check the action again and save.
To Reproduce
Expected behavior
After changing identity id in Home Assistant, I expected that I could modify settings of light.olohuoneen_kattovalaisinryhmä
item and just change its identity id to its new value, without need to set all the other fields too.
Also after I had updated item's settings I expected that clicking item's button would toggle the light group, but nothing happened.
Screenshots
Plasmoid settings after changing identity id of light.olohuoneen_kattovalaisinryhmä
to light.olohuoneen_kattovalaisin
in Home Assistant:
Settings of old item are missing:
Final settings after re-entering them and changing the identity id:
Desktop (please complete the following information):
Describe the bug
I added the widget via KDE Discover and added the widget to my homescreen. I get this error:
file:///home/mctom234/.local/share/plasma/plasmoids/com.github.korapp.homeassistant/contents/ui/main.qml:13:25: Type FullRepresentation unavailable
file:///home/mctom234/.local/share/plasma/plasmoids/com.github.korapp.homeassistant/contents/ui/FullRepresentation.qml:66:28: Cannot assign object of type "Action" to property of type "Action_QMLTYPE_115*" as the former is neither the same as the latter nor a sub-class of it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Whatever the widget should do on the first use
Desktop (please complete the following information):
Additional context
Maybe I am just missing some configuration steps. I am happy about every hint 😄
Describe the bug
If your KDE Wallet does not unlock at login when plasmashell starts and loads the widget, the widget will display "Configure" until plasmashell is restarted. e.g. plasmashell --replace
in Krunner.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Once the wallet is unlocked, the widget will be able to obtain the access token for Home Assistant, authenticate, and display the entities configured to be displayed.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
I have not tried using classic blowfish encryption with a password.
I've inputted my HA address and API key, but when I try to add entities -- they are not getting saved (or the list is displayed empty)
The widget itself is showing only a spinner
Here's couple of messages from journalctl
plasmashell[1250]: qml: Unsupported WebSocket scheme: file
plasmashell[1250]: qml: Messages can only be sent when the socket is open.
What could be causing this?
Thank you
I added my first entry after getting the qt5-websockets installed and rebooting.
The entity is my Desk lamp, and I added the option to Toggle it:
After hitting Apply, it turned the light off...paused about 1 second...back on...then off then on then off then on then off then on then went into strobe mode. Thank you for proving to me that I can somehow strobe my Cost Feit light! ⚡ While this is a great effect for Halloween, I'm afraid it won't work for daily use. :)
Also, I noticed that If I change the action to Turn On/Turn Off (either way), it overrides my current setting in Home Assistant, for example, Having it set to Turn On, only allowed my light to be set to 6%. Manually turning it off and on in the Home ASsistant Dashboard, it changed it from 100% to 6% so your app is assuming Master Control by presumably sending a stream of instructions when the action is selected.
Plasmoid fails to load on OpenSUSE Tumbleweed running Plasma 6
qt6-websockets-devel-6.6.2-1.1.x86_64
libqt5-qtwebsockets-devel-5.15.13+kde2-1.1.x86_64
Self explanatory, just spent about an hour looking into network logs and even wiresharking my network to pinpoint the source of traffic (spoiler alert: it was my computer failing to get credentials again! (No I don't think I updated the widget yet))
This Widget was written for an unknown older version of Plasma and is not compatible with Plasma 6.
Please contact the widget's author for an updated version.
On GNU/Debian 12 - Bookworm I get the following message.
_file:///home/jaap/.local/share/plasma/plasmoids/com.github.korapp.homeassistant/contents/ui/main.qml:29:5: Type WsClient unavailable
file:///home/jaap/.local/share/plasma/plasmoids/com.github.korapp.homeassistant/contents/ui/WsClient.qml:2:1: module "QtWebSockets" is not installed_
libqt5websockets5. libqt5websockets6. qml-module-qt-websockets, qml-module-qtwebsockets, qml6-module-qtwebsockets are installed.
Plasma-homeassistant is installed with plasma widgets installer.
Describe the bug
A clear and concise description of what the bug is.
I get the above error, even though I have the right QtWebsockets lib installed per instructions.
Output of zypper se
:
❯ zypper se libQt6WebSockets6
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
---+-------------------+-------------------------+--------
i+ | libQt6WebSockets6 | Qt 6 WebSockets library | package
I've tried configuring the widget to see if it makes a difference, but it does not make the error go away. The problem also persists after a full system reboot.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Widget shows me the configured entities.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
System info:
Kernel: 6.8.1-1-default arch: x86_64 bits: 64
Desktop: KDE Plasma v: 6.0.2 Distro: openSUSE Tumbleweed 20240319
Describe the bug
After installation, I created a token on my HA instance and input the details. When attempting to load, I get a spinning cog on the 'items' menu and nothing loads, as well as the following error on a banner: QWebSocketPrivate::processHandshake: Unhandled http status code: 404 (Not Found).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The plasmoid to get information from my HA instance
Desktop (please complete the following information):
Operating System: Arch Linux
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.7.0-zen3-1-zen (64-bit)
Graphics Platform: Wayland
Additional context
I'm sure I'm missing something painfully obvious. I can access HA by posting the same URL in a browser without issue.
Since the numbers after the dot in humidity or pressure do not make much sense, it would be very useful to be able to round values.
Can you please port plasma-homeassistant to plasma 6?
Is your feature request related to a problem? Please describe.
I can only toggle the light on and off.
Describe the solution you'd like
I want to control the brightness
Now that the beta is out, have you given any thought to setting it up for KDE 6? I am testing KDE 6 Beta 1 in a VM And so far, it looks like they are now limiting their Plasma widgets to those compatible with QT6 now.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.