127 Replies

@ninjadev64 these are the things in the console
these errors are popping up when I press a button

try again now, small chance its fixed
the real error is the Failed to load resource: 404 not found one

The discord button seems to be stable now again. The HOAS (Homeassistant) Button was frist there but vanisehd as soon as I pressed a button. (The Yellow Exclamation mark was there the whole time on the HOAS Button)
any ideas? It at least works one time. At start of Opendeck. So it is possible to get the image. But after that it doesn't really work with HOAS Addon.
Please can you investigate this yourself, I really do not have time to fix issues with every single plugin - I'm busy this entire weekend and have school (+clubs, music lessons, sports etc) in the week
I will try
You can start by adding
println!("{:?}", event.payload.image);
at the start of the set_image function in src-tauri/src/events/inbound/states.rs
I don't know why, but since I added this line Opendeck just stays white when startet with
deno task tauri dev
. Even if I remove the line it stays white after rerun the command. Before I added the line it worked.
Nothing in the Logs except for [WARN] Failed to update application: Could not fetch a valid release JSON from the remote
which also happens with the Build one from the AUR.
It still works when I start the installed Opendeck.Yea just change
deno task dev
in tauri.conf.json to npm run dev
On the 2nd or 3rd line
And optionally add usePolling: true
to the watch
section of vite.config.tsworked.
Now when I press the Button of Homeassistant I get the following in the Terminal
Some("data:image/svg+xml;,<svg height=\"144\" version=\"1.1\" width=\"144\" xmlns=\"http://www.w3.org/2000/svg\"><defs/><path d=\"M12,2A7,7 0 0,0 5,9C5,11.38 6.19,13.47 8,14.74V17A1,1 0 0,0 9,18H15A1,1 0 0,0 16,17V14.74C17.81,13.47 19,11.38 19,9A7,7 0 0,0 12,2M9,21A1,1 0 0,0 10,22H14A1,1 0 0,0 15,21V20H9V21Z\" fill=\"#888888\" transform=\"matrix(3,0,0,3,36,0)\" style=\"\"/></svg>")
I am a bit confused. The image in Opendeck Config dir is a .png. But here it states it wants a svg?
and also I get three times Couldn't get key from code: Unidentified(Gtk(248))
every time I press the button with the not working image.You can ignore this
Over at stReamcontroller someone is also complaining about the missing HA images. Maybe something changed on HA side?
Maybe the SVG is just the error icon.
The error icon is the one shown by OpenDeck when the image is blank
Before I added that, Terrorwolf's buttons were just blank
I didn't think StreamController had plugin support?
I hadn't much time on the weekend to debug further. Will do today after work. Do you have a link to this for me?
Here, but not much info. https://discord.com/channels/1221536306367303690/1221539085068402758/1328171713971617883
I have streamcontroller running and also get the default HA icon. No entity specific icons.
If I understand correctly you also use the Homeassistant Streamdeck Plugin from cgiesche? If yes, could you check if you get in the Config folder of Opendeck (Or maybe streamcontroller if you use that) find the Image for Homeassistant Icon and if it changes as of the state of the Light/Device?
Also I can "fix" it when I force a reload of the images like for example if I change the state of the light and then add a few buttons.
And since the .png in the Config folder changes as soon as I change my light, I don't think its a problem of the Plugin. Maybe there is a refresh or something in the Streamdeck which is not called with Opendeck or so.
StreamController doesn't have Elgato plugin support though
So it won't be the same cgiesche plugin
My findings are just from this plugin. But even if its not the same plugin, it could be a similar problem there.
Can you check the contents of the saved .png file in a text editor
and with the official Elgato Software the Plugin works without Problems.
I don't why. but now its saved as a svg file.
If you want I can send you the .svg file
Sure, why not
Also forgot to mention, the issue happened again on the Discord button today
Maybe after line 52 of rendererHelper.ts add a console.log(image.src);
done. That should output to the "Rightclick Inspect" Console shouldn't it?
Outputs the SVG file correctly.
As in something like
http://localhost:57118//home/jan/.config/opendeck/images/sd-xxxx/xxxx/0.svg
?
@Terrorwolf did you say you had a testing homeassistant?as in
[Log] data:image/svg+xml;,<svg height="144" version="1.1" width="144" xmlns="http://www.w3.org/2000/svg"><defs/><path d="M12,2A7,7 0 0,0 5,9C5,11.38 6.19,13.47 8,14.74V17A1,1 0 0,0 9,18H15A1,1 0 0,0 16,17V14.74C17.81,13.47 19,11.38 19,9A7,7 0 0,0 12,2M9,21A1,1 0 0,0 10,22H14A1,1 0 0,0 15,21V20H9V21Z" fill="#888888%22%20transform=%22matrix(3,0,0,3,36,0)%22%20style=%22%22/%3E%3C/svg%3E (rendererHelper.ts, line 34)
I have a testing Homeassistant. But its offline unless needed.oh, right
Is the issue where your stream deck blinks every 10 seconds fixed?
If you want I can set you up with an test account tomorrow
yea, I might have a look when I have time
so make an account but don't keep it running, i'll tell you when i'm free
(am free now but probs not for a few days after this)
no problem. Just tell me when you are free and I will start it.
@Terrorwolf ^?
sry didn't saw the message. Yes it seems so.
For me, I get these Errors:

This might be about these: https://github.com/cgiesche/streamdeck-homeassistant/blob/87c9edcb15ee837ce53f7194e82f829c2675610a/public/config/manifest.yml
GitHub
streamdeck-homeassistant/public/config/manifest.yml at 87c9edcb15ee...
Control your Home Assistant devices from StreamDeck - cgiesche/streamdeck-homeassistant
The its another Problem at yours. Mine is that Opendeck does not show the new picture which is already updated in the background on the filesystem.
Could you check if the image is updating at /home/<username>/.config/opendeck/images/<serialnumber>/Default/Keypad.<number>.0
The image shown in the folder is not the one shown in Opendeck/on the HW.

other exmple

If I choose the icon manually from the same folder, it is loaded/shown
very strange
Do they switch if you change profiles and back? Or reload?
yes. The also update when I "force" an image update like adding buttons moving buttons or removing buttons.
the yellow ! is the error symbol of Opendeck. do they update to the right one if you move another button? (somtimes i need to move it a few times)
I tried a few key and profile changes, but it is always the yellow exclamation mark for me
Ok. And in the background on the file system the Image is updating as soon as your light (or whatever you have configured) changes state?
I tried a few entities and got the correct image on the file system.
Which version do you have installed? The latest stable or the latest got version?
git from around 2 days ago
Ok
What OS are you using?
Kubuntu 24.10
Ok
I just noticed, the first time I am starting opendeck, the HA keys show the entity text as black on black background. (It says "heat") in the background.
But as soon I start to start to modify or move the key it is gone.

Also if I move other keys (no HA) around, they sometimes also get the yellow exclamation mark.
Saw it on Discord and run Command
404 on the image path on the local web server.
But are also missing on the file system


The Discord Plugin does seem to store the pictures somewhere else and ist working, (not breaking by moving the keys around) The images are not on the filesystem
With what Plugins do you have problems except the Homeassistant one?
Run Command. But I can heal it by just manually rechoosing the icon., and then it seems fixed for that key. I can move it around and it keeps its picture.
Will have to check when exactly it starts happening.
Maybe this helps:

This I can fix
I think I know why
try the latest commit, this is fixed i think
this is some error in a plugin (specifically in a property inspector), not opendeck
I can try in a few hours and will give feedback on Linux.
How did it go?
Old icons on the right are still broken. Also when moving them around.
New icons on the left are working fine, even when working around.
I will recreate the ones on the right.

Yes the old ones won't have fixed themselves
Any Update on this?
Also since a few wekks or so, the Discord Images also get the yellow Icon sometimes again
Not yet unfortunately
I have no time for anything these days
ok
I'm just going to link what i posted in the other thread for what works for me:
https://discord.com/channels/1143819637897834571/1360261258980622656/1362131336789229888
It may not be what you're trying to do.
Unfortunatly the icon still partly disaperas. (It was never set to Prefer icon from HA)
ahh. so all your buttons have errors for any HA plugin icons?
yes. Which one of the Actions did you use?
short press > scene > activate > 'scene name'
or "Entity (generic)"if you mean that
this. Ok. So its the same used. The other one works perfectly without problems.
Did you use your own image for the button? Because it doesn't seem default in your Screenshot.
yeah i edited the original to make it multicolored for my scene im activating
Yeah. And I am really trying only the default plugin icons which are having the problem.

ahh like the icons from the entity list? they do not work at all for me
interrsting. For me they update on the filesystem but just not in OD (In OD they then change to the Yellow !). When I update my Profile with moving buttons or adding or removing some, they reappear correctly until it changes again. For example turn on or off a light or even change color.
I retested this with 2.5 and current plugin version ans still the same behaviour as described by Terrorwolf. Most of the time just the yellow exclamation mark in OD, while the filesystem has the icon.
Yeah. Issue still ongoing.
Might the issue be with the .svg file extension? Maybe this cannot be diretly displayed.
If I add a svg as an icon manually it is convertet to png and then shown on the board.
since its working unless there is a change i don't think so
but maybe a point to further investigate
In my current setup It is always the exclamation mark in the Deck and the correct SVG on the File system.
I did not find a workaround anymore.
true
for me also they are not working anymore. not even at the first time after opendeck start
@everyone this may have been solved!
https://github.com/nekename/OpenDeck/issues/94#issuecomment-3033554023
GitHub
Kimai plugin not working · Issue #94 · nekename/OpenDeck
Hi and thanks for this great product. I've been using some basic features for a while, but I recently discovered Kimai and want to use that. However the plugin does not behave, and I cannot see...
Will check before going to sleep. Probably in around 1h
Just with quick testing the PR without installing it, it seems to work. I can test more during the weekend.
3 things:
1: Not sure if it is connected with this PR or not but everytime I press any button (regardless if anything is configured on it or not) I get the following error message in the Terminal
Couldn't get key from code: Unidentified(Gtk(248))
2: The Image problem seems to be fixed.
3: This also seems to fix the problem with the Discord Icons not loading properly (Yellow error) and the Images resetting on the Discord Plugin.
Keep in Mind, just a short test without too much base.That's awesome to hear, btw issue 1 has always existed but maybe only in dev mode so that's why you're seeing it now
I thought I have seen it already. That explains it.
Looking forward to when this PR will be merged
No new bugs found from my side today in the PR.
after more thorough testing you mean?
yeah
@Terrorwolf I had to update the PR because their changes weren't compliant to the spec, and wouldn't match some valid things while matching some invalid things. Please could you try my update to the PR and let me know if it's good to merge
Will try when at home or tomorrow. Currently not at home
@nekename (dev) With the newest Commit, I can't get any image on the Homeassistant Action which was not working. (The custom images one still works with the static images).
:( it should work though? because both the regex pattern of the original PR and my changes match what i can see is sent in the HA plugin source code
my changes only stopped things like
data:image/svg+xml;utf8,data
from working (note no charset=), whereas HA plugin does have the right charset=utf8 part:
I can only report what I see. If you want, I can hop on a call and try to debug it with you if you have a bit of time.
could you add
console.log(image);
to be line 10 of rendererHelper.ts?is this the right place?

Int the Inspector Console nothing shows up. also not in the terminal which I am starting OpenDeck from
Anything else I can try @nekename (dev) or where I can look for logs or so?
its very odd that nothing shows up in the console, it should log every time an image is displayed
try putting it at the beginning of the function?
Now I got a lot of these

looks like a plugin property inspector error, not an opendeck one
no messages when the images of the actions change?
or when you switch profile?
these are being created at profile switch and none when the image in the file system changes
with the newest commit it isn't even showing the initial image as with your version. Just the yellow ! all the time as soon as configured
anything else I can check?
maybe go back to the previous commit of the PR and see if it was actually fixed there?
I find it very odd that there's no console.log messages, are you sure you don't have that log level disabled in your console?
I presume you mean 'newest commit' as the latest commit of the PR and not the main branch?
Yeah. Newest commit of the pr.
Will try when back at the pc
Yeah. Dpuble and tripple checked because I also found it odd
Done and instant it works again without problems
hmm..
do the console.logs work in this commit?
let me check.
after line 65 of rendererHelper.ts (
image.src = processImage ? getImage(state.image, fallback) : state.image;
) please also add console.log(processImage, state.image, fallback, getImage(state.image, fallback), image.src);
now it works
[Log] data:image/svg+xml;,<svg height="144" version="1.1" width="144" xmlns="http://www.w3.org/2000/svg"><defs/><path d="M12,2A7,7 0 0,0 5,9C5,11.38 6.19,13.47 8,14.74V17A1,1 0 0,0 9,18H15A1,1 0 0,0 16,17V14.74C17.81,13.47 19,11.38 19,9A7,7 0 0,0 12,2M9,21A1,1 0 0,0 10,22H14A1,1 0 0,0 15,21V20H9V21Z" fill="#888888" transform="matrix(3,0,0,3,36,0)" style=""/><circle cx="143" cy="0" r="15" fill="#62ff65" style=""/></svg> (rendererHelper.ts, line 3, x2)
Ok, that image isn't exactly spec compliant :(
I'll update the regex to accept it
not 100% sure if its the Homeassistant one tho
paste it into your browser and see it
this is it

so probably home assistant
ok. yeah. Its the Homeassistant one then
anything specific I should look for with this added?
that's alright, i'm fixing it now
@Terrorwolf please try the latest PR commit
it works. No problem spotted
nice, I found a small problem though, am fixing it
may I ask which one?
it can match some base64 urls when they are not supposed to be matched
ah ok
try now
it's commit e324c8df1b1bf762dcffbd2b19ee557d43b816c3
still working
cool
merged
updated, tried and working
Post marked as solved
hey @Terrorwolf, could you give this a try?
https://github.com/nekename/OpenDeck/issues/107#issuecomment-3117684115
GitHub
Encoding information in data URLs seems not handled correctly in Op...
This issue was rewritten completely after I did some more research :) Hi, I am the developer of the home-assistant plugin for the stream-deck. My plugin sends images to the main application as data...
the latest commit I mean
will try later.
just installed. Seems to work for now
nice