binderth
(Thomas Binder)
December 5, 2016, 9:24am
1
If I Change .items, .rules or .persist, I get double entries in the log like this:
2016-12-05 09:28:46.232 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'astro.rules'
2016-12-05 09:28:46.582 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'astro.rules'
(...)
2016-12-05 10:15:07.644 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'weather.items'
2016-12-05 10:15:07.897 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'weather.items'
So I wonder, why there’s always double entries and if they do have some side effects?
I’m using openHABian 2.0.0.-SNAPSHOT build #627 , if that’s relevant.
Chri46
(Christian Berndt)
August 2, 2017, 10:31am
3
Issue still persists on openHAB 2.1.0 - release build.
And is seems that rules are execute twice as well:
2017-08-02 12:26:07.835 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'rollershutter.rules’
2017-08-02 12:26:55.968 [INFO ] [.smarthome.model.script.StatusUpdate] - Wind below Threshold 15.61000000
2017-08-02 12:26:55.977 [INFO ] [.smarthome.model.script.StatusUpdate] - Chris precense OFF
2017-08-02 12:26:55.981 [INFO ] [.smarthome.model.script.StatusUpdate] - Maria precense ON
2017-08-02 12:26:55.995 [INFO ] [.smarthome.model.script.StatusUpdate] - Temp below Threshold 33.38750000
2017-08-02 12:26:56.004 [INFO ] [pse.smarthome.model.script.Debugging] - Rule greater 5000 Lum
2017-08-02 12:26:56.009 [INFO ] [.smarthome.model.script.StatusUpdate] - SZ NoAction HighLum 0
2017-08-02 12:26:56.044 [INFO ] [pse.smarthome.model.script.Debugging] - Rule greater 5000 Lum
2017-08-02 12:26:56.048 [INFO ] [.smarthome.model.script.StatusUpdate] - SR NoAction HighLum 0
2017-08-02 12:26:56.081 [INFO ] [pse.smarthome.model.script.Debugging] - CC Rule greater 5000 Lum
2017-08-02 12:26:56.086 [INFO ] [.smarthome.model.script.StatusUpdate] - CC NoAction HighLum 0
2017-08-02 12:26:56.122 [INFO ] [pse.smarthome.model.script.Debugging] - Ch Rule greater 5000 Lum
2017-08-02 12:26:56.127 [INFO ] [.smarthome.model.script.StatusUpdate] - CH NoAction HighLum 0
2017-08-02 12:26:56.408 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘rollershutter.rules’, using it anyway:
Cannot reference the field ‘Sunset_Time’ before it is defined
2017-08-02 12:26:56.668 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'rollershutter.rules’
2017-08-02 12:27:23.183 [INFO ] [.smarthome.model.script.StatusUpdate] - Wind below Threshold 15.21000000
2017-08-02 12:27:23.211 [INFO ] [.smarthome.model.script.StatusUpdate] - Wind below Threshold 15.21000000
2017-08-02 12:27:23.216 [INFO ] [.smarthome.model.script.StatusUpdate] - Chris precense OFF
2017-08-02 12:27:23.219 [INFO ] [.smarthome.model.script.StatusUpdate] - Maria precense ON
2017-08-02 12:27:23.224 [INFO ] [.smarthome.model.script.StatusUpdate] - Wind below Threshold 15.21000000
2017-08-02 12:27:23.233 [INFO ] [.smarthome.model.script.StatusUpdate] - Wind below Threshold 15.21000000
2017-08-02 12:27:23.244 [INFO ] [.smarthome.model.script.StatusUpdate] - Temp below Threshold 33.38750000
2017-08-02 12:27:23.256 [INFO ] [pse.smarthome.model.script.Debugging] - Rule greater 5000 Lum
2017-08-02 12:27:23.262 [INFO ] [.smarthome.model.script.StatusUpdate] - SZ NoAction HighLum 0
2017-08-02 12:27:23.307 [INFO ] [pse.smarthome.model.script.Debugging] - Rule greater 5000 Lum
2017-08-02 12:27:23.313 [INFO ] [.smarthome.model.script.StatusUpdate] - SR NoAction HighLum 0
2017-08-02 12:27:23.355 [INFO ] [pse.smarthome.model.script.Debugging] - CC Rule greater 5000 Lum
2017-08-02 12:27:23.360 [INFO ] [.smarthome.model.script.StatusUpdate] - CC NoAction HighLum 0
2017-08-02 12:27:23.397 [INFO ] [pse.smarthome.model.script.Debugging] - Ch Rule greater 5000 Lum
2017-08-02 12:27:23.402 [INFO ] [.smarthome.model.script.StatusUpdate] - CH NoAction HighLum 0
2017-08-02 12:30:14.973 [INFO ] [.smarthome.model.script.StatusUpdate] - Temp below Threshold 33.29350000
2017-08-02 12:30:20.894 [INFO ] [.smarthome.model.script.StatusUpdate] - Temp below Threshold 33.29350000
I also have this issue since a long time now, i can see several other posts in the forum, but i cant see any resolution to this in any of the other threads. it really messes with one of my rules
NCO
(E. Gerland)
December 27, 2017, 6:37pm
5
I don’t see double entried in the logfiles, but my mariadb persistence always stores switches twice.
Same with strings.
Numbers are sometimes stored 3 times.
Is this still a known issue?
This is still true with OH 2.3
NCO
(E. Gerland)
July 8, 2018, 3:57pm
7
Is this possibly the configuration causing the double entry issue?
I experience the double entry in my MySQL database as well and it might not be related to your issue here, because I am using OH persistence to write into my mariaDB.
However one thing came to my mind:
I have defined in my persistence file, that each single item (*) should be stored on changes and should be restored at startup.
I did this because i wanted the Groups‘ state to be stored and not just the items within the group (G_Lights*).
Does this potentially cause OH to store twice?
One fo…