Added last valve open time
This commit is contained in:
@@ -37,6 +37,7 @@ function reactToSensorData(nextSensorReading) {
|
||||
}, {
|
||||
'$set': {
|
||||
'state.in_valve': 'opening',
|
||||
'significantEvents.lastInValveOpen': new Date(),
|
||||
'time': new Date(),
|
||||
'set_by': 'server'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user