# Color item to reflect status like onoff

**URL:** <https://community.openhab.org/t/color-item-to-reflect-status-like-onoff/103013>\
**Category:** Android App\
**Created:** [July 30, 2020, 9:09am UTC](https://community.openhab.org/t/color-item-to-reflect-status-like-onoff/103013 "2020-07-30T09:09:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dossidos](https://community.openhab.org/user_avatar/community.openhab.org/dossidos/32/75084_2.png) [@dossidos](https://community.openhab.org/u/dossidos)\
**Post date:** [July 30, 2020, 9:09am UTC](https://community.openhab.org/t/color-item-to-reflect-status-like-onoff/103013/1 "2020-07-30T09:09:58Z")

</div>

Hi,  
is there a way that a color item in the app reflects its status so I can see if it is on?  
Like the other simple on off lamps do.

---

<div class="post-metadata">

**Author:** ![mueller-ma](https://community.openhab.org/user_avatar/community.openhab.org/mueller-ma/32/12448_2.png) [@mueller-ma](https://community.openhab.org/u/mueller-ma)\
**Post date:** [August 2, 2020, 12:48pm UTC](https://community.openhab.org/t/color-item-to-reflect-status-like-onoff/103013/2 "2020-08-02T12:48:23Z")

</div>

Hey @dossidos,  
the Color item doesn’t show the current state without opening it first. However you can add a slider for the color item above the color item itself, like this:

```auto
Slider item=LightLivingRoom
Colorpicker item=LightLivingRoom

```

---

<div class="post-metadata">

**Author:** ![brizzik](https://community.openhab.org/user_avatar/community.openhab.org/brizzik/32/51273_2.png) [@brizzik](https://community.openhab.org/u/brizzik)\
**Post date:** [August 4, 2020, 8:06am UTC](https://community.openhab.org/t/color-item-to-reflect-status-like-onoff/103013/3 "2020-08-04T08:06:44Z")

</div>

Do you mean the colors in your sitemap items?

You can do that with color labels and values.

```csv
Switch item=light valuecolor=[ON="green", OFF="red"] valuecolor=[ON="green", OFF="red"] 

```

See the documentation for more info:  
[https://www.openhab.org/docs/configuration/sitemaps.html#label-and-value-colors](https://www.openhab.org/docs/configuration/sitemaps.html#label-and-value-colors)

---

<div class="post-metadata">

**Author:** ![dossidos](https://community.openhab.org/user_avatar/community.openhab.org/dossidos/32/75084_2.png) [@dossidos](https://community.openhab.org/u/dossidos)\
**Post date:** [August 13, 2020, 7:37am UTC](https://community.openhab.org/t/color-item-to-reflect-status-like-onoff/103013/4 "2020-08-13T07:37:46Z")

</div>

Thanx for all your answers!

The sitemap is created automatically as i add the items to the corresponding groups.  
So i don’t edit the sitemap file for each light i add.

What i want is that the rgb item in the app shows a dark bulb when not active.  
The item currently is always yellow - so i have to tap it to see if it is realy on.

Alle items should work the same way.

Tapping the bulb switches on/off and changes its color according the the state.

There is no confirmation of on/off when you don’t see that actual light.  
Please reflect the state of the rgb bulb in the app.item.

Thanks

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [August 13, 2020, 10:11am UTC](https://community.openhab.org/t/color-item-to-reflect-status-like-onoff/103013/5 "2020-08-13T10:11:53Z")

</div>

> [@dossidos](#):
>
> So i don’t edit the sitemap file for each light i add.

If you want to change the widget behaviour, you will have to change your behaviour i.e. edit your sitemaps by hand.
