I have Domoticz logging a number of temperatures from 1-wire sensors using an I2C interface. In the local logs the timestamps are always on the 5 minute, near enough:
Code: Select all
2022-03-12 17:10:00 67.6
2022-03-12 17:15:00 67.6
2022-03-12 17:20:00 67.5
2022-03-12 17:25:00 67.4
Code: Select all
{
"Battery" : 255,
"LastUpdate" : "2022-03-12 17:28:19",
"RSSI" : 12,
"description" : "",
"dtype" : "Temp",
"hwid" : "2",
"id" : "AA07",
"idx" : 5,
"name" : "TankTop",
"nvalue" : 0,
"stype" : "LaCrosse TX3",
"svalue1" : "67.4",
"unit" : 7
}
{
"Battery" : 255,
"LastUpdate" : "2022-03-12 17:23:14",
"RSSI" : 12,
"description" : "",
"dtype" : "Temp",
"hwid" : "2",
"id" : "AA07",
"idx" : 5,
"name" : "TankTop",
"nvalue" : 0,
"stype" : "LaCrosse TX3",
"svalue1" : "67.5",
"unit" : 7
}
{
"Battery" : 255,
"LastUpdate" : "2022-03-12 17:18:09",
"RSSI" : 12,
"description" : "",
"dtype" : "Temp",
"hwid" : "2",
"id" : "AA07",
"idx" : 5,
"name" : "TankTop",
"nvalue" : 0,
"stype" : "LaCrosse TX3",
"svalue1" : "67.6",
"unit" : 7
}
{
"Battery" : 255,
"LastUpdate" : "2022-03-12 17:13:04",
"RSSI" : 12,
"description" : "",
"dtype" : "Temp",
"hwid" : "2",
"id" : "AA07",
"idx" : 5,
"name" : "TankTop",
"nvalue" : 0,
"stype" : "LaCrosse TX3",
"svalue1" : "67.6",
"unit" : 7
}
But is the MQTT task resampling the sensors? Or is it delayed logging of the previously captured data? That would mean the timestamps are only relevant to the MQTT publish and not the data capture.
Thanks
SumDum