Yeah, that was pretty obvious to me too.
But, just one more question please:
As I see it I need to do a fresh install but can’t use Backup and Transfer since that just installs the same bad system. I need to copy the Rules and Items (files) manually, but where can I find them?
What do you mean by “(files)”. If you are defining your rules and items in files surely you know where those files are since you’ve been editing them. If you’ve defined everything in the UI and you want to know where that stuff gets saved, $OH_USERDATA/jsondb. Not that Items, ItemChannelLinks, and Item Metadata are all stored in separate files. Rules are in the automation files.
Sorry to bother you again, but I finally understand my problem. You were right, and I need your expert advice.
In OH2 the Stick Identifier was “zwave:device:xxxxxxxx:node…”
In OH3 the stick identifier is “zwave:serial_zstick:xxxxxxxx:node…”
I just typed in the number (x) and did not notice the name change to “zwave:serial_zstick”.
How can I fix this without editing all 138 Items? Exclude and Include or what?
If you plan on using the semantic model, it will probably be less work in the long run to use “Create equipment from Thing” to recreate your Items anyway. You can create hundreds of Items this way in just a few minutes. When you do it this way all the Items get created in place in the semantic model and all the links are established out-of-the-box. After migrating half my Items over by hand and the other half by recreating them, I cannot recommend doing it by hand.
Stop OH and manually change the name of the stick ID and all the zwave Thing IDs to match the old IDs in $OH_USERDATA/jsondb/org.openhab.core.thing.Thing.json.
Stop OH and manually change the name of the stick ID and all the zwave Thing IDs to match the new IDs in $OH_USERDATA/jsondb/org.openhab.core.thing.link.ItemChannelLink.json.
In MainUI individually remove the old link and add the new link.
This is how you bypass that restriction. Through the UI or through the REST API indeed, you cannot change the UID of a Thing. However, while OH isn’t running, you can change anything you want in the jsondb files as long as you are exceptionally careful and consistent. It is in fact easy to mess up so if you are worried you would do well to recreate the Links rather than do brain surgery on OH.
The files are owned by user openhab. You’ll probably have to use sudo.
I’ve no idea what /srv/openhab-userdata is or where is comes from. Maybe it’s a symbolic link to the /var/lib/openhab folder for the samba share?
Finally got OH3.4.2 running on files only for a start.
A few things:
The Stick UID was changed by OH after installation. Stick install UID was zwave:serial_stick.xxxxx, while the actual UID was zwave:device:xxxxx.
A learning point, and my GUI mode show stopper.
But now I get a gazillion number of ERROR messages like this:
“Could not create rrd4j database file ‘/var/lib/openhab/persistence/rrd4j/SF_Bath_Setpoint.rrd’: Invalid file header. File [/var/lib/openhab/persistence/rrd4j/SF_Bath_Setpoint.rrd] is not a RRD4J RRD file”
However, folder and files are present. Can it be fixed?
Is there a way to change Z-Wave device parameters in files only mode? If not, I may have to try GUI again, knowing about the stick UID issue.
OH3 GUI Mode is now running fine, but I have a quick final question if a may:
I want to use Astro:sun:local sunrise and -fall times to switch outdoor lights. Here is the trigger I’ve set up, which I believe is OK?
But I can’t find (or have overlooked) in the docs and GUI, how to apply time offset (+/- n min) to these triggers.
Would you have a quick GUI tip?
Thanks again for your time. Much appreciated!!
Got to the Astro Thing under Settings-> Things and click on the Channels tab. Find the Channel you want to supply an offset for, click on it and choose edit the channel config (or whatever it’s called). You can set the offset there. But be aware that there’s only the one offset per Channel. If you need multiple offsets on the same Channel, you’ll need to create multiple Astro Things.