-
-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config param changes in .things file not propagating to things #3791
Comments
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/changes-in-thing-config-files-not-populated-in-oh4/149208/11 |
Please describe your environment as requested in the issue template. |
I can't speak for the one who posted his issue on the community forum. However my own case is OH v4.02 running on openhabian on an RPi. EDIT the OP on the forum said he is running v4.02 (but he did not mention what hardware). Also @mstormi reported a similar issue, and it is safe to say he is running openhabian, I think.. :) |
It would also be good to know what underlying file system is used as that can also influence if and when file events are triggered. |
Maybe you can also test if it works better with 4.1.0-SNAPSHOT? 🙂 It has some fixes, see openhab/openhab-osgiify#42. |
I believe that the openhabian images use ext4 |
I am away for about 1 week, so I can only test when I get back. |
I ran into this issue last night. I'm on snapshot 3600. I have a things file containing a single line for my Denon 8500 (denonmarantz binding). No other things are in the file. I made an IP address change and had to update the thing. Nothing made it pull in. I tried a disable and re-enable of the thing in the GUI, nothing. Finally restarted OH and it worked. During the restart I saw this message which I haven't seen before. All of my things came up clean so it's unclear if it caused an issue.
|
As posted elsewhere, I wonder if the issue is caused by a mismatch between date/time stamp on the .things file in the file system versus the date/time stamp on the cached data within OH?? I.e. it may be related to the system clock time in the OS (used for file system timestamps) vs the time zone used in OH. Or something like that.. |
I've never had issues with this before and this systems been up almost 2 years. Not sure how the clocks would get out of sync like that on a single system. |
No shooting at the dark please. |
If you see the "Loading foo.things" (or similar) message, the file-system is NOT your issue. In that case the issue is in the |
I'm running OH 4.0.2 on Ubuntu, ext4 filesystem on a Dell x86 system. No openhabian, no rasbi. I can see the loading xxx.things message in the log. |
As it was confirmed it was working in OH3, we can then assume it was broken by PR #3526 which was there to fix an issue. |
Can you all confirm that this issue is still present in the latest snapshot? |
Not yet for me but at the same time I never encountered it yet. I will have to mix several things from different bindings in the same file to reproduce it first. |
This issue has been mentioned on openHAB Community. There might be relevant details there: |
I can update this weekend and test again. 3600 isn't too old, is there a recent commit which updated something? |
It's too old! 😉 It doesn't have #3790 which may help if files aren't properly reloaded. |
@J-N-K I will test the latest snapshot when I return in one week. And will give an update then.
Perhaps we should consider porting this to Java? Or at least open an issue to remind us to do it in future.. |
Upgraded to most current snapshot 3613. I can not replicate this anymore. File watch service looks like it's working as expected. First time I changed the IP to an invalid one, second one I changed it back. GUI also showed the updates.
|
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/things-changes-require-to-restart-openhab/86435/14 |
I am not yet 100% sure if this is a binding issue or a core issue, so posting here just in case it is the latter.
There are two reported cases where changing a config param value in a .things file does not propagate to the thing. The log file shows that the .things file was reloaded, but the config param value of the thing does not change. Also disabling and reenabling the thing does not update the value. However restarting OH does update the value.
https://community.openhab.org/t/changes-in-thing-config-files-not-populated-in-oh4/149208?u=andrewfg
openhab/openhab-addons#15498
The text was updated successfully, but these errors were encountered: