I am running a Testsystem of openhabian started in November updated in December.
From the very first beginning I encountered issues.
I wanted to use the test pi for finding out how to backup the system, as I lost now three times my hole system. The loss of oh3 is realy anoying, because I used the main UI for running my system and now I lost all my code, rules, graph, database etc, because I can not realy access my old drive data where everything is stored.
So I started with OH4 in November I waited until the update in December and I am not sure if I will wait for the raspian os update.
OH1 broke because of hardware issues, OH2 because of linux OS update, OH3 because of openhab update. OH1 and OH2 I used the file drive aproach. With OH3 I changed to the UI driven one, which I realy prefer. But the biggest issue here is, that I have no local copies of the code pages, yaml etc. as all this is stored within a database. Here it would be nice to have readable textfile copies on the drive. (May be they exist, but I do not know where.)
After instatlling new addons epecialy when I started create my model I encountered that I have to clean the browser cach very often or start directly in incognito mode. (With OH3 I never had this kind of issues)
If this is not working then I have to reboot the pi.
But all of this is now not working with rules. I like the OH UI, but with OH4 most is not working in the first attemp.
So if there is no solution, I will start with abrand new openhabian. Maybe the playing around with the actual version over weeks is causing this problem. (I think, that the openhabian-config does do the updates very well, but I normaly do not reboot the system afterwards. I noticed this weekend, when I installed the mosquitto, it did not work on the UI at all. But after a reboot suddently it did.)
Sad to hear that you had those problems over the last years. I decided for backup strategy which just includes OH conf and userdata directory via openHAB-cli and never had any problems. I wrote a script which reduces time to setup a fresh PiOS and over years I never had any problems. To me also because of omitting ZRAM and avoiding SD cards.
Just to encourage you to try a different backup strategy…
Sounds like some of your problems are based on corrupt SD card or corrupt config files?
I recently migrated to Pi5/bookworm. No problem at all.
Is the problem of your initial post solved as at least the code tab reappeared?
My last system was running on a 256GB ssd directly booted from the pi setuped with openhabian.
This worked fine for me. Until I did a quick apt-get update… like I did weeks and months before.
That stopped/killed the system.
Now I am changing to 16GB card + 64GB backup SD-card.
Here I will have then the recomended local image copies.
I will also usue the cli backup, and will try to copy all this regulary to a synology.
Hopefully the next big OH Update finds a way to fullfill upgrades in a save way. I am just a user I want to run my home. But I am not a linux expert, at least I am not capable to be allways in the frontline. I just want to use it.
The code tab never disapeared. It allways was there.
I have trouble with the grayed name field of the rule. It is requried, but not editable.
That’s why I do not use openhabian’s update procedure because I always check first which packages apt is going to upgrade.
In the screenshot above there seemed to be another problem as the code tab was not displayed correctly (label of code tab was missing). That‘s why I pointed this out.
If you add a new rule without adding trrigger or actions first, are you able to enter the name of the rule?
Every time you make a change, a backup of that file is created under $OH_USERDATA/jsondb/backup.
The files are in a human readable JSON format.
There is a known issue with Firefox and how it does caching. There is a fix in work but I don’t think it’s been merged and released yet. OH 4 added some caching capabilities to improve the performance of MainUI.
Do you see any errors in the log?
Can you capture in separate screen shots or as an animated gif the steps you take to create the rule?
Have you tried clicking in the field and entering the name? Keep in mind that the “Required” is always grayed out like that. That doesn’t necessarily mean you cannot click on it an type in the name you want. It’s grayed out not to indicated it cannot be edited, but to indicate that the field has no value. The “Name” is not “Required”.
This looks like a browser issue. Have you tried a different browser? There really is nothing on the server side you can do to make these fields not editable or even clickable. There is no setting, configuration, or anything else like that.