Z-wave items not using labels

I have recently noticed, that all my z-wave connected items in my .items files, seem to not use the label from the items file - but instead use a standard default label.

.items example

Switch 			s13Smart6								"Phonestand outlet"									<switch>																{ channel="zwave:device:abc80f17:node5:switch_binary" }

.sitemap example

Switch item=s13Smart6

Here, I would expect the switch to have the label “Phonestand outlet” - but in fact, the default label “Switch” is shown - which is the label the z-wave item gets in paperUI when I searched for it.

The problem is the same for all Z-wave items in my setup - and functionality otherwise (also with these items) are not affected.

I use OH2 - build 2.0 on a QNAP NAS (running in a container).

Have anyone experienced something like this - and can suggest where to look for a solution ?

You could try to add the label again withing the .sitemaps

Switch item=s13Smart6 label="some foo"

But that’s just a workaround and not a solution.

I know the workaround - I am just curious as to why the zwave items acts this way now, as I am 100% sure it haven’t been like this always (and it doesn’t make sense)… It may just be a new zwave related setting somewhere that I need to be aware of ?

I don’t think this has anything to do with ZWave. The bindings have no link to items - they don’t know about them, and they don’t have anything to do with the files, so I can’t see this being a binding issue.

It is just strange that the problem only exists for zwave items ? - items linked to other bindings (MQTT, Sonos, Fritzbox etc) works like normal/always ?

Do you have your zwave items in a file by itself? Maybe there’s a problem with the file?

I don’t use items files, but if I use HABmin, I can set the item names and within the system, it doesn’t know if the setting is done by the item file, or the UI, so again, I don’t think it’s a binding issue. I would look for something that is specific to the way zwave is configured in your system.

I have all my items in one big file.

I noticed that the problem also exist for my sonos items - so it is not just zwave (I just have most of those).

Doing some more digging in the log - and found that when I make a change in my .items file it generates a lot of warnings of duplicates and a quick glance tells me that it is exactly those fields that causes problems.

Any idea where to look for the settings mistake / error ?

2017-08-10 18:17:20.746 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'avfager.items'
2017-08-10 18:17:22.919 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Sonos_Controller'. Ignoring 'org.eclipse.smarthome.core.library.items.PlayerItem'.
2017-08-10 18:17:22.919 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Sonos_Volume'. Ignoring 'org.eclipse.smarthome.core.library.items.DimmerItem'.
2017-08-10 18:17:22.919 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Sonos_Mute'. Ignoring 'org.eclipse.smarthome.core.library.items.SwitchItem'.
2017-08-10 18:17:22.919 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Sonos_LED'. Ignoring 'org.eclipse.smarthome.core.library.items.SwitchItem'.
2017-08-10 18:17:22.919 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Sonos_CurrentAlbum'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2017-08-10 18:17:22.919 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Sonos_State'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2017-08-10 18:17:22.919 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Sonos_CurrentArtist'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2017-08-10 18:17:22.919 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Sonos_CurrentTitle'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2017-08-10 18:17:22.920 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Sonos_Stop'. Ignoring 'org.eclipse.smarthome.core.library.items.SwitchItem'.
2017-08-10 18:17:22.920 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'Sonos_NotificationVolume'. Ignoring 'org.eclipse.smarthome.core.library.items.DimmerItem'.
2017-08-10 18:17:22.920 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'VSonos_Controller'. Ignoring 'org.eclipse.smarthome.core.library.items.PlayerItem'.
2017-08-10 18:17:22.920 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'VSonos_Volume'. Ignoring 'org.eclipse.smarthome.core.library.items.DimmerItem'.
2017-08-10 18:17:22.920 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'VSonos_Mute'. Ignoring 'org.eclipse.smarthome.core.library.items.SwitchItem'.
2017-08-10 18:17:22.920 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'VSonos_LED'. Ignoring 'org.eclipse.smarthome.core.library.items.SwitchItem'.
2017-08-10 18:17:22.920 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'VSonos_CurrentAlbum'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2017-08-10 18:17:22.920 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'VSonos_State'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2017-08-10 18:17:22.921 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'VSonos_CurrentArtist'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2017-08-10 18:17:22.921 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'VSonos_CurrentTitle'. Ignoring 'org.eclipse.smarthome.core.library.items.StringItem'.
2017-08-10 18:17:22.921 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'VSonos_Stop'. Ignoring 'org.eclipse.smarthome.core.library.items.SwitchItem'.
2017-08-10 18:17:22.921 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'VSonos_NotificationVolume'. Ignoring 'org.eclipse.smarthome.core.library.items.DimmerItem'.
2017-08-10 18:17:22.924 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'wintergardenScene'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2017-08-10 18:17:22.924 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'frontdoor_relay'. Ignoring 'org.eclipse.smarthome.core.library.items.SwitchItem'.
2017-08-10 18:17:22.924 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 'frontdoorScene'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2017-08-10 18:17:22.925 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 's12Smart6'. Ignoring 'org.eclipse.smarthome.core.library.items.SwitchItem'.
2017-08-10 18:17:22.925 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 's12Smart6_Power'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2017-08-10 18:17:22.925 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 's12Smart6_Energy'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2017-08-10 18:17:22.925 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 's12Smart6_Volts'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2017-08-10 18:17:22.925 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 's12Smart6_Amps'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.
2017-08-10 18:17:22.925 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 's12Smart6_Reset'. Ignoring 'org.eclipse.smarthome.core.library.items.SwitchItem'.
2017-08-10 18:17:22.925 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 's13Smart6'. Ignoring 'org.eclipse.smarthome.core.library.items.SwitchItem'.
2017-08-10 18:17:22.925 [WARN ] [.rule.jvmmodel.RulesJvmModelInferrer] - Duplicate field: 's13Smart6_Power'. Ignoring 'org.eclipse.smarthome.core.library.items.NumberItem'.

First, load the file into Designer to see if it detects any syntax errors.

What text editor are you using? Does it save a temp backup of the file with a .rules extension (e.g. .avfager.items)? OH could be trying to load both files and finding duplicate Item definitions.

I have looked at bit around with my friend google - and it seems that there has been a bug listed in various forms related to this warning. I need to try and update my OH2 to latest version and see if it goes away.

Your suggestion for editor settings is good - I use Notepad++ and have no backups etc.

I have never used “Designer” before? Can you share a link to some description which would make entry for me easy ?

http://docs.openhab.org/installation/designer.html