Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to override default icon/missing base icon files #538

Closed
xsnrg opened this issue Dec 9, 2015 · 1 comment · Fixed by #543
Closed

Unable to override default icon/missing base icon files #538

xsnrg opened this issue Dec 9, 2015 · 1 comment · Fixed by #543
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@xsnrg
Copy link

xsnrg commented Dec 9, 2015

I am trying to change the icon used for Switch items to the light icon but getting a 404 instead.

I think I have found a problem with trying to override a default icon. See here for more details: https://community.openhab.org/t/various-icon-woes/4895

Using Switch as an example, if I try to specify an icon for the individual item in the .items file, such as <light>, I will get the 404. If I remove the icon element from the item completely, I will get the default switch icon. I have verified this with the IDE and the demo conf files as well.

It looks like <light> is actually a special case. The base image for light.svg does not exist, only -ON and -OFF. If I use <heating> as the icon, it works as expected. I would have though that after toggling the switch with the light icon set that once the state was known, it would have selected the ON or OFF icon, but does not seem to be the case.

kaikreuzer added a commit to kaikreuzer/openhab-addons that referenced this issue Dec 10, 2015
Signed-off-by: Kai Kreuzer <kai@openhab.org>
@kaikreuzer
Copy link
Member

Sorry for taking so long and thanks for your analysis. The problem was indeed that no "fallback" icons were available - the existence of this file defines whether or not the iconset includes this icon. I have added all missing files, so that should be fixed now!

@kaikreuzer kaikreuzer added the bug An unexpected problem or unintended behavior of an add-on label Dec 10, 2015
Flole998 pushed a commit to Flole998/openhab-addons that referenced this issue Dec 30, 2021
…penhab#538)

Signed-off-by: Henning Treu <henning.treu@googlemail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants