I’m new to openHAB, and I’m having a similar experience with rule editing in the PaperUI as described by the OP.
I’ve created a simple rule to turn off three lights at 11pm. In creating the rule I accidentally created an action to turn one of the lights ON
rather than OFF
at that specified time. Oops.
So, I’ve clicked on the rule to edit it. This action opens the rule for editing. I’ve then clicked the cog icon on the incorrect action in the THEN
clause of the rule, and changed the command being sent to OFF
. Saved the action by clicking OK
. And then save the rule by clicking the blue tick at the top of the page. I get a message displayed briefly at the bottom of the page indicating that the rule has been saved.
However, the rule has NOT been saved. If I open the JSON rule representation at /homes/openhab/userdata/jsonb/automation_rules.json
I find that the rule has NOT been updated. Further, if I open the rule again in the editor I find that it hasn’t changed either.
My installation is on a Synollogy NAS DS412+ (DSM 6.1.6-15266 Update 1). I installed openHAB 2.2.0.010 (on volume1)
When I view the logs, I don’t see any error from saving the rule. In fact, the event.log
updates with a sequence of messages claiming that the rule was updated, INITIALIZING
, and then IDLE
.
However I do see that there is an error near the start of the log claiming that openHAB can’t generate a new SSL certificate when it was first installed and started. Now, I have the Java 8 from Synology installed. Do I need to install further cryptographic software to get the EC KeyPairGenerator? And could this be the root of my problem?
Even so, how did it manage to save the rule in the first place?
All help gratefully accepted.
Cheers, S t u a r t .
PS: I find the file system layout confusing for openHAB on the Synology. It appears to be installed in:
/volume1/homes/openhab
(owned by root
)
This directory has three sub-directories named addons
, conf
, and userdata
.
The addons
directory contains just a README
file.
The conf
directory contains a whole bunch of sub-directories, including a rules
sub-directory (which again just includes a README
)
And the userdata
sub-directory contains a bunch of things including jsonb/automation_rules.json
. There is also a backup
sub-directory in the jsonb
sub-directory which appears to get a copy of the rules every time I save them - with the correction!
What’s really going on here?