Easy way to get z-wave node last seen info...
Posted: Monday 08 January 2018 14:40
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.
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.