# OH 2.0 Incorrect icon for "poweroutlet-au"

**URL:** <https://community.openhab.org/t/oh-2-0-incorrect-icon-for-poweroutlet-au/26163>\
**Category:** Items & Sitemaps\
**Tags:** icons, bug, sitemap1\
**Created:** [April 4, 2017, 9:54pm UTC](https://community.openhab.org/t/oh-2-0-incorrect-icon-for-poweroutlet-au/26163 "2017-04-04T21:54:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin](https://community.openhab.org/user_avatar/community.openhab.org/kevin/32/94617_2.png) [@kevin](https://community.openhab.org/u/kevin)\
**Post date:** [April 4, 2017, 9:54pm UTC](https://community.openhab.org/t/oh-2-0-incorrect-icon-for-poweroutlet-au/26163/1 "2017-04-04T21:54:57Z")

</div>

setting

```
icon="poweroutlet-au"

```

in sitemap, displays the wrong icon. Downloading the (correct) icon from GitHub provides the correct file which I put into /etc/openhab2/icons/classic But this didn’t display until I renamed it to poweroutletau without the “-” and changed the sitemap

OH2 has a problem with icons with “-” in the title where the part after the “-” doesn’t map to an item state.

To put it another way

```
icon="powersocketau" works with a copy of the icon renamed to "powersocketau" and placed in the /etc/openhab2/icons/classic folder
icon="powersocket-au" doesn't display the default icon "powersocket-au" and displays the default euro power socket instead

```

Just a minor bug, but thought I’d report it 😉

---

<div class="post-metadata">

**Author:** ![ThomDietrich](https://community.openhab.org/user_avatar/community.openhab.org/thomdietrich/32/71239_2.png) [@ThomDietrich](https://community.openhab.org/u/ThomDietrich)\
**Post date:** [April 4, 2017, 10:36pm UTC](https://community.openhab.org/t/oh-2-0-incorrect-icon-for-poweroutlet-au/26163/2 "2017-04-04T22:36:33Z")

</div>

Could you also post the GitHub URL please?

---

<div class="post-metadata">

**Author:** ![pahansen](https://community.openhab.org/user_avatar/community.openhab.org/pahansen/32/4938_2.png) [@pahansen](https://community.openhab.org/u/pahansen)\
**Post date:** [April 4, 2017, 10:49pm UTC](https://community.openhab.org/t/oh-2-0-incorrect-icon-for-poweroutlet-au/26163/3 "2017-04-04T22:49:37Z")

</div>

For dynamic icons to work you still need a `powersocket.png` (or svg) file in addition to the `powersocket-au.png` file. Have you got this? Then when the `powersocket` item changes state to `au` it ‘should’ work.

I also need to check, but all my dynamic icons are defined in my items file rather than the sitemap. Perhaps that has some influence?

---

<div class="post-metadata">

**Author:** ![kevin](https://community.openhab.org/user_avatar/community.openhab.org/kevin/32/94617_2.png) [@kevin](https://community.openhab.org/u/kevin)\
**Post date:** [April 4, 2017, 10:57pm UTC](https://community.openhab.org/t/oh-2-0-incorrect-icon-for-poweroutlet-au/26163/4 "2017-04-04T22:57:22Z")

</div>

[https://github.com/eclipse/smarthome/blob/master/extensions/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/poweroutlet-au.png](https://github.com/eclipse/smarthome/blob/master/extensions/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/poweroutlet-au.png)  
[https://github.com/eclipse/smarthome/blob/master/extensions/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/poweroutlet-au.svg](https://github.com/eclipse/smarthome/blob/master/extensions/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/poweroutlet-au.svg)

---

<div class="post-metadata">

**Author:** ![kevin](https://community.openhab.org/user_avatar/community.openhab.org/kevin/32/94617_2.png) [@kevin](https://community.openhab.org/u/kevin)\
**Post date:** [April 4, 2017, 11:00pm UTC](https://community.openhab.org/t/oh-2-0-incorrect-icon-for-poweroutlet-au/26163/5 "2017-04-04T23:00:16Z")

</div>

Its not a dynamic icon thing, and that is likely the problem. The “au” on the end refers to Australia  
powersocket-au is an Australian Power Outlet  
powersocket-uk is a UK Power Outlet  
powersocket-eu is a European Power Outlet

Unless of course it picks up the location somewhere along the way and the sitemap should contain just

```
icon="powersocket"

```

They aren’t dynamic icons in this context as far as I’m aware, but they are named have dynamic icon naming. I have all my icons defined in sitemap, and the rest of them work so I suspect that isn’t the problem.  
To workaround it I’ve put renamed icons into the /etc/openhab2/icons/classic folder

---

<div class="post-metadata">

**Author:** ![ThomDietrich](https://community.openhab.org/user_avatar/community.openhab.org/thomdietrich/32/71239_2.png) [@ThomDietrich](https://community.openhab.org/u/ThomDietrich)\
**Post date:** [April 5, 2017, 4:21pm UTC](https://community.openhab.org/t/oh-2-0-incorrect-icon-for-poweroutlet-au/26163/6 "2017-04-05T16:21:28Z")

</div>

Fully agree. Here we go:

> <https://github.com/eclipse-archived/smarthome/pull/3207>
>
> https://community.openhab.org/t/26163
> 
> Signed-off-by: Thomas Dietrich \<Thomas.…Dietrich@tu-ilmenau.de\>

Btw. openHAB doesn’t have “a problem with icons with “-” in the title”, the dash simply has a special meaning and shouldn’t be part of the icon name (which it was for the mentioned icons).
