A number is an invalid character to start an item-name:
The Item name is used to uniquely identify an Item. The name must be unique across all .items files in your openHAB configuration. The only characters permitted in an Item name are letters, numbers and the underscore character. Names must not begin with numbers. Spaces and special characters are not permitted.
The check was not performed correctly before and has been fixed, so that’s why your invalid item name now pops up.
That answers my question from here on when this check was added (see Integer as first character of Item name - how to fix?), but what’s the best way to fix this? We now have orphaned items in the JSON with no way to fix them in the GUI. Roll back to an earlier version, fix the Items, then move forward again? Or edit the JSON after stopping OH?
<parameter name="config_duration" type="integer" min="1" max="254">
<label>Step duration</label>
<description><![CDATA[Sets the dim rate speed<br>Values from 1 to 127 are defined in seconds,
while values from 128 to 254 are defined in minutes.]]></description>
<default>255</default>
<options>
<option value="255">Device Default</option>
<option value="0">Change Instantly</option>
</options>
<limitToOptions>false</limitToOptions>
</parameter>
This is the config parameter that the error relates to, but this definition looks ok to me so I’m not sure what it’s complaining about unless the value is outside the allowable range of less than 0, or greater than 255. Can you check this to see what it’s set to? The default is 255 so this should be ok unless it was changed.
I was not able to find “Step duration” in the UI, also it was not defined in the Code panel of the Thing.
After adding config_duration: 255 to the Code panel it is working again.
I had not touched its config for at least some months and it worked fine until I did the update. Looking at the commits in the zwave-repo I don’t see why anything should break from these.
The problem relates to the rigorous checking introduced in 3.3M2. Since this is handled by the core, it is not a zwave issue. What needs to change is this in the DB? (edit: Actually I do not know where this needs to be changed) (change 254 to 255)
The 254 is being picked up by the checker as max, even though the default is 255. I had a similar problem with a different device where the default was outside the range the checker checked. (if that makes sense?)
Can you link to the file where this definition is made. In case 255 has a special meaning (and is outside of the defined range 1 to 254 it should be added as <option />. If this is the case and the check fails, it’s a bug in the checker.
I’m afraid I can’t. I don’t have the device and could not find this xml fragment. I just recognized what was going on from an earlier issue (3.3M2) that I fixed with a Z-wave DB edit.
Might have to wait for morning in NZ, unless one of the folks that have the device know.
$ sudo apt update
Hit:1 http://ppa.launchpad.net/mythbuntu/31/ubuntu focal InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Err:6 https://openhab.jfrog.io/artifactory/openhab-linuxpkg testing InRelease
502 Bad Gateway [IP: 34.139.10.89 443]
Fetched 336 kB in 10s (33.7 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch https://openhab.jfrog.io/artifactory/openhab-linuxpkg/dists/testing/InRelease 502 Bad Gateway [IP: 34.139.10.89 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
If there is the “handler” message, it is related to the last 24 hours of posts directly above yours. The quickest thing will be to edit the channel to 254 step duration (edit: based on subsequent posts setting to 254 would fall into the “bad idea” category ), pending either a validator change or binding change.