# Using groups in Items

**URL:** <https://community.openhab.org/t/using-groups-in-items/87705>\
**Category:** VS Code\
**Created:** [December 15, 2019, 9:01pm UTC](https://community.openhab.org/t/using-groups-in-items/87705 "2019-12-15T21:01:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![schneider\_mav](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@schneider\_mav](https://community.openhab.org/u/schneider_mav)\
**Post date:** [December 15, 2019, 9:01pm UTC](https://community.openhab.org/t/using-groups-in-items/87705/1 "2019-12-15T21:01:52Z")

</div>

Hello  
i will use Groups in my items files.

For Example:

> Number Livingroom\_Temperature1 “Temperature [%.1f °C]” [“TargetTemperature”] {knx=“1/0/15+0/0/15”}  
> Number Livingroom\_Temperature2 “Temperature [%.1f °C]” (rOG\_Bad) [“TargetTemperature”] {knx=“1/0/15+0/0/15”}

i get no error in my “openhab.log” so i think the syntax is ok  
in VS Code i have only the “Livingroom\_Temperature1” entry in my Items List.

is this a bug or not implemented or i am to stubid to use this extension?

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [December 15, 2019, 9:13pm UTC](https://community.openhab.org/t/using-groups-in-items/87705/2 "2019-12-15T21:13:45Z")

</div>

Did you restart both OH and VSCode?  
Your syntax look OK but you need to use the proper [code fences](https://community.openhab.org/t/how-to-use-code-fences/38383)

---

<div class="post-metadata">

**Author:** ![schneider\_mav](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@schneider\_mav](https://community.openhab.org/u/schneider_mav)\
**Post date:** [December 15, 2019, 9:46pm UTC](https://community.openhab.org/t/using-groups-in-items/87705/3 "2019-12-15T21:46:21Z")

</div>

hi. i have added a new line with

> Group rOG\_Bad “OG:Bad”

and now it works

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [December 15, 2019, 10:09pm UTC](https://community.openhab.org/t/using-groups-in-items/87705/4 "2019-12-15T22:09:47Z")

</div>

Yes having a group to put the item into would help!
