As we can read in documentation: All values are stored in a field called “value”
Is there any solution to read value from different field ?
For example, is it possible to read the latest value using rule ( like …PreviousState(measurement.field1) ) and write to another openhab item (sotred in value field) using postUpdate?
Yes there is a way to read different values from influxdb.
like
<item>.previousState()
For example:
test.rules
rule "YourRule"
when
Time cron "11 */3 * ? * *" // At second :11, every 3 minutes starting at minute :00, of every hour
then
var int nTimeShort = 4
var int nTimeLong = 30
var Number nAvgTempShort = GroundFloor_Living_Temperature.averageSince(now.minusMinutes(nTimeShort))
var Number nAvgTempLong = GroundFloor_Living_Temperature.averageSince(now.minusMinutes(nTimeLong))
end
A full list of persistence extensions you can find here: