Page 1 of 1

Easy way to get z-wave node last seen info...

Posted: Monday 08 January 2018 14:40
by lost
Hello,

Would be nice to be able to get the last seen info that can be read in hardware tab, under z-wave controller, for each included nodes, in Lua tables...

At the moment, this info can indeed be retrieved using :
http://localhost:8080/json.htm?type=ope ... odes&idx=2

And parsing json to get nodes LastUpdate info.

At 1st sight, this looks mis-labelled compared to a Lua otherdevices_lastupdate[device] info (i.e. last time a device changed state, not last seen by z-wave controller), but hereupper json API really returns last seen info.

An easier way to retrieve this (on a node idx/name basis, I suggest a otherdevices_lastseen[device]) without having to parse a global z-wave controller json response would help writing some device sanity check scripts.

BR.

Re: Easy way to get z-wave node last seen info...

Posted: Thursday 11 January 2018 13:41
by Ady92100
+1