stampzilla / stampzilla-go

Homeautomation software written in Go and React
Apache License 2.0
34 stars 3 forks source link

proposal: add lastupdated field to Device models/devices/device.go #168

Open jonaz opened 5 years ago

jonaz commented 5 years ago

What do you think @stamp ? Currently some devices like xioami zigbee devices have it in their state. Perhaps would be nice to always put it in the device at the time the server gets the update-devices message. That way the server could also have a timeout period when it sets the devices as Online=false.

edit: the timeout thing might only be applicable to sensors.

stamp commented 5 years ago

I'm thinking a solution that works something like this