Some of my sensor values are not persisted and i can’t seem to find the cause. The values do change, i checked to be sure using the basic UI i see different value’s during the day for this sensor. I have other sensors with the same setup (using _grpPersist) that have their value persisted as expected. I don’t see any validation errors on this items file or persist file in the logs. I don’t see any problem in the logs. Anyone with a suggestion to look into?
Number verd0_keuken_pir1_lux "Lux [%d]" <battery> (_grpBeveiliging,_grpVerd0,_grpPersist) { channel="zwave:device:512:node33:sensor_luminance" }
Number verd0_woonkamer_pir2_lux "Lux [%d]" <battery> (_grpBeveiliging,_grpVerd0,_grpPersist) { channel="zwave:device:512:node34:sensor_luminance" }
If it does return some values, then try querying the ‘items’ table.
If it says the item doesn’t exist, I’d set jdbc to debug (log:set DEBUG org.openhab.persistence.jdbc) and restart OH while tailing the log file to watch for errors. The error may be in one of the other items files that is being loaded before this one, which then prevents the rest of the items from being restored at startup or persisted.
Did you try lowercase items, or are you sure it is Items? If you’re getting data from the REST API, then it is persisting data. Wait a minute… I gave you the wrong URL. Try this…
So we can conclude the data is changing (observed in basic ui) and it is not persisted to the database. Is there any logging i can turn on? Just to be sure, i’m using snapshot 2.4.0 build #1310
Only the group start with an underscore and other items (in the same group) are corectly persisted. I did discover some warnings about the same node/channel: OH2 Z-Wave refactoring and testing... and SECURITY
Well not sure if it is related because the basicUI gets updated and so should the database. I will set de debugging today.
openhab restarted and all trouble seem to have gone. Weird. Thanks for everyones time.