Page 1 of 1

Device status "date" in advanced via API

Posted: 16 Oct 2020 16:44
by vinisz
Hi,

Wondering how to retrieve the "date" field via the ZwaveApi.
I have access to the API, no problem, but can't figure out which field containts the "date" field or what it represents.
Schermafbeelding 2020-10-16 154329.jpg
Schermafbeelding 2020-10-16 154329.jpg (35.86 KiB) Viewed 510 times

Re: Device status "date" in advanced via API

Posted: 16 Oct 2020 19:45
by gsaw
I guess you want the field updateTime. It is in Unix-Time format

Re: Device status "date" in advanced via API

Posted: 17 Oct 2020 09:30
by vinisz
Thanks,

And which “updatedtime” should I use then, cause I see one for every “setting”
Is the one you’re pointing out here the correct one ?

Re: Device status "date" in advanced via API

Posted: 17 Oct 2020 11:33
by gsaw
vinisz wrote:
17 Oct 2020 09:30
Thanks,

And which “updatedtime” should I use then, cause I see one for every “setting”
Is the one you’re pointing out here the correct one ?
Each device have a global attribute updateTime. I think, it is that waht you need. But i'm not sure. If you want to be sure, you could try to figure it out in source code of Z-Way.

https://github.com/Z-Wave-Me/zwave-smarthome

Re: Device status "date" in advanced via API

Posted: 17 Oct 2020 15:21
by vinisz
Well, for sure it is not that one.
that seems to be the time that device was added or something.
I'm thinking more about the "last received time" now.

Re: Device status "date" in advanced via API

Posted: 18 Oct 2020 11:59
by PoltoS
I would assume you are searching for lastSend and lastReceived fields and their updateTime propery. Those are used in this part of the UI