Images not properly loading

As stated above also as stated in #general
No description
64 Replies
Terrorwolf
TerrorwolfOP3w ago
No description
Terrorwolf
TerrorwolfOP3w ago
@ninjadev64 these are the things in the console
Terrorwolf
TerrorwolfOP3w ago
these errors are popping up when I press a button
No description
ninjadev64
ninjadev643w ago
try again now, small chance its fixed the real error is the Failed to load resource: 404 not found one
Terrorwolf
TerrorwolfOP3w ago
No description
Terrorwolf
TerrorwolfOP3w ago
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.
ninjadev64
ninjadev643w ago
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
Terrorwolf
TerrorwolfOP3w ago
I will try
ninjadev64
ninjadev643w ago
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
Terrorwolf
TerrorwolfOP3w ago
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.
ninjadev64
ninjadev643w ago
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.ts
Terrorwolf
TerrorwolfOP3w ago
worked. 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.
ninjadev64
ninjadev643w ago
You can ignore this
fightforlife
fightforlife3w ago
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.
ninjadev64
ninjadev643w ago
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?
Terrorwolf
TerrorwolfOP3w ago
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?
fightforlife
fightforlife3w ago
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.
Terrorwolf
TerrorwolfOP3w ago
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.
ninjadev64
ninjadev643w ago
StreamController doesn't have Elgato plugin support though So it won't be the same cgiesche plugin
Terrorwolf
TerrorwolfOP3w ago
My findings are just from this plugin. But even if its not the same plugin, it could be a similar problem there.
ninjadev64
ninjadev643w ago
Can you check the contents of the saved .png file in a text editor
Terrorwolf
TerrorwolfOP3w ago
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
ninjadev64
ninjadev643w ago
Sure, why not
Terrorwolf
TerrorwolfOP3w ago
Also forgot to mention, the issue happened again on the Discord button today
ninjadev64
ninjadev643w ago
Maybe after line 52 of rendererHelper.ts add a console.log(image.src);
Terrorwolf
TerrorwolfOP3w ago
done. That should output to the "Rightclick Inspect" Console shouldn't it? Outputs the SVG file correctly.
ninjadev64
ninjadev643w ago
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?
Terrorwolf
TerrorwolfOP3w ago
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.
ninjadev64
ninjadev643w ago
oh, right Is the issue where your stream deck blinks every 10 seconds fixed?
Terrorwolf
TerrorwolfOP3w ago
If you want I can set you up with an test account tomorrow
ninjadev64
ninjadev643w ago
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)
Terrorwolf
TerrorwolfOP3w ago
no problem. Just tell me when you are free and I will start it.
ninjadev64
ninjadev642w ago
@Terrorwolf ^?
Terrorwolf
TerrorwolfOP2w ago
sry didn't saw the message. Yes it seems so.
fightforlife
fightforlife2w ago
For me, I get these Errors:
No description
Terrorwolf
TerrorwolfOP2w ago
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
fightforlife
fightforlife2w ago
The image shown in the folder is not the one shown in Opendeck/on the HW.
fightforlife
fightforlife2w ago
No description
fightforlife
fightforlife2w ago
other exmple
No description
fightforlife
fightforlife2w ago
If I choose the icon manually from the same folder, it is loaded/shown
ninjadev64
ninjadev642w ago
very strange
Percy_Ikana
Percy_Ikana2w ago
Do they switch if you change profiles and back? Or reload?
Terrorwolf
TerrorwolfOP2w ago
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)
fightforlife
fightforlife2w ago
I tried a few key and profile changes, but it is always the yellow exclamation mark for me
Terrorwolf
TerrorwolfOP2w ago
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?
fightforlife
fightforlife2w ago
I tried a few entities and got the correct image on the file system.
Terrorwolf
TerrorwolfOP2w ago
Which version do you have installed? The latest stable or the latest got version?
fightforlife
fightforlife2w ago
git from around 2 days ago
Terrorwolf
TerrorwolfOP2w ago
Ok What OS are you using?
fightforlife
fightforlife2w ago
Kubuntu 24.10
Terrorwolf
TerrorwolfOP2w ago
Ok
fightforlife
fightforlife2w ago
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.
No description
fightforlife
fightforlife2w ago
Also if I move other keys (no HA) around, they sometimes also get the yellow exclamation mark. Saw it on Discord and run Command
fightforlife
fightforlife2w ago
404 on the image path on the local web server. But are also missing on the file system
No description
No description
fightforlife
fightforlife2w ago
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
Terrorwolf
TerrorwolfOP2w ago
With what Plugins do you have problems except the Homeassistant one?
fightforlife
fightforlife2w ago
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.
fightforlife
fightforlife2w ago
Maybe this helps:
No description
ninjadev64
ninjadev647d ago
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
fightforlife
fightforlife6d ago
I can try in a few hours and will give feedback on Linux.
ninjadev64
ninjadev646d ago
How did it go?
fightforlife
fightforlife6d ago
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.
No description
ninjadev64
ninjadev646d ago
Yes the old ones won't have fixed themselves

Did you find this page helpful?