openHAB provides a set of classic icons by default. Users may add their own icons in either png or svg format in the openHAB icons configuration folder, $OPENHAB_CONF/icons/classic/ .
The previous reads like I have to put my custom icons there. what if they have the same name? Will it use the default icon, or my icon? do I have to rename mine to avoid conflict?
Any hints appreciated… (Maybe 4 days of OH migration / config simply fried my brain)
Thanks. Does it matter, whether you look at the sitemap via basicui or classicui?
I placed my custom icons into the icons/classic folder, but they do not show on a sitemap looked at via basicui.
Same name should not matter as per docu, saying “Users may substitute their own icon for an icon from the default icon set by placing a file in the $OPENHAB_CONF/icons/classic/ folder with the same filename as the name of the icon being substituted.”
$OPENHAB_CONF/icons/classic/ is the right place for your icons in Basic UI, despite the somewhat misleading name…
Did you check the access rights and are the icons of type .png or .svg?
Also, in PaperUI verify the settings for Basic UI: Configuration > Services > UI > Basic UI Configure.
# [2019-01-01 19:10] maxg@rpi3ohv2 /etc/openhab2/icons $
la
total 44
drwxr-xr-x 3 openhab openhab 20480 Jan 1 15:07 .
drwxr-xr-x 14 openhab openhab 4096 Jan 1 17:15 ..
drwxr-xr-x 2 openhab openhab 20480 Jan 1 15:07 classic
# [2019-01-01 19:10] maxg@rpi3ohv2 /etc/openhab2/icons $
la classic/a*
-rwxrw-rw- 1 openhab openhab 3460 Apr 9 2018 classic/accuracy.png
-rwxrw-rw- 1 openhab openhab 3201 Apr 9 2018 classic/altitude.png
-rwxrw-rw- 1 openhab openhab 2203 Oct 13 09:23 classic/antenna.png
-rwxrw-rw- 1 openhab openhab 12941 May 23 2016 classic/app-icon.png
-rwxrw-rw- 1 openhab openhab 5094 May 23 2016 classic/attic.png
Huh, configuration in PaperUI… never used this; had a look without saving anything… and it showed icons as vector, which I assume needs to be set to bitmap for the .PNGs…
Is there are config file for the BasiUI, or much I use PaperUI for the config?
The docs state the defaults.
Looking at the structure of the statements, they seem to go into the runtime.cfg.
However, the default values seem to be:
# default = demo
org.eclipse.smarthome.basicui:defaultSitemap=demo
# Icons can be disabled; default=true
org.eclipse.smarthome.basicui:enableIcons=true
# Icons can be shown as PNG or SVG images
# Default: PNG
org.eclipse.smarthome.basicui:iconType=png
Hence, I assume no need to specify them… just checked; I had to add them explicitly to make these settings take effect.