I’ve got an item Switch PresenceJF_Home "JF @ Home" (gPresence)
I’ve got a myopenhab.persist file
Strategies{
}
Items {
// persist all items once a day and on every change and restore them from the db at startup
// careful, this might result in huge databases - that's why it is in comment here ; * : strategy = everyChange, everyUpdate, restoreOnStartup
Presence*, Owntracks* : strategy = everyMinute, restoreOnStartup
BatteryJF_Phone : strategy = everyChange, restoreOnStartup
LR*, Garage : strategy = everyChange, restoreOnStartup
AllLights : strategy = everyChange, restoreOnStartup
ByPassLights : strategy = everyChange, restoreOnStartup
SleepingIn : strategy = everyChange, restoreOnStartup
}
Yes, you should be using Oracle Java and build 101 or later. Neither OpenJDK nor Oracle Javas before 101 have the my.openhab.org’s certificate authority as a trusted authority. Upgrading the JRE is easier than manually adding the certificate to your trust chain.
Make sure you are using myipenhab.org, the Cloud Connector add-on, your Items you wish to share in the .Cfg file, and you are running the latest Oracle Java.
I’m using myopenhab.org, the latest Oracle Java, the Cloud Connector add-on and I’ve tried to expose the items over the persistence file, I also tried to configure it with the given UI.
As a result I see 2 items, one that shoud exposed to myopenhab and one that shloud not and 2 items are missing.
Which .cfg file do you mean? in OH2 there are no cfg files anymor (as far as i know).