Set names for (z-wave) items for use in rules

Hello everyone,

I’m new to openHAB 2 and love the things I’m now able to do. Till now I used domoticz (which is also good) on a Raspberry Pi 3.

I think my question is easy to answer but I’ve not found the answer here.

When I set up my z-wave devices (things), I let openHAB create the item-linking (easy mode) so the names I have to use in rules are really uncomfortable like: zwave_device_8123aoeo_node1_switch_binary

Is there a way to generate a map / item-list where I can define devices like:

switch_1 = zwave_device_8123aoeo_node1_switch_binary
switch_2 = zwave_device_8123aoeo_node2_switch_binary
switch_3 = zwave_device_8123aoeo_node3_switch_binary

And then use switch_1.state in all rules I write?

Greetings
Kel

Hi Kel,

I would turn of Item linking and write the items files yourself.
More control over the item names.

mine for example is like this now.

Switch Living1Motion “Living1 Motion” {channel="“zwave:…”
Number Living1Hum “Living1 Humidity [%.0f %%]” {channel="“zwave:…”
Number Living1Temp “Living1 Temperature [%.1f °C]”{channel="“zwave:…”
Number Living1lux “Living1 [%.0f Lux]” {channel="“zwave:…”

then use Living1Motion.state==ON etc in rules

Regards
Chris

Hi Chris,

thank you very much for your response. This looks like the naming I was hoping for :slight_smile:

Is it also possible to keep the auto-linking on and set names additional? I like it to easily add new items, but sometimes I wish to set custom names for my rules.

Greetings
Kel

edit) Ohhh, I see… Then there are at least two switches for each item… ok, so I keep the auto-linking activated but do not set it within Paper UI when I’m going to set it in the /items folder…

Yes you are correct, this would create 2 items and more confusion.
I try my best stay away from auto linking as much as possible.

Regards
Chris