Device status "date" in advanced via API

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
vinisz
Posts: 151
Joined: 23 Nov 2019 23:23

Device status "date" in advanced via API

Post 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 2493 times
Attachments
Schermafbeelding 2020-10-16 154422.jpg
Schermafbeelding 2020-10-16 154422.jpg (57.78 KiB) Viewed 2493 times
gsaw
Posts: 78
Joined: 22 Aug 2016 00:26

Re: Device status "date" in advanced via API

Post by gsaw »

I guess you want the field updateTime. It is in Unix-Time format
Attachments
2020-10-16 18_40_39-192.168.178.168_8083_ZWaveAPI_Data.png
2020-10-16 18_40_39-192.168.178.168_8083_ZWaveAPI_Data.png (30.85 KiB) Viewed 2487 times
vinisz
Posts: 151
Joined: 23 Nov 2019 23:23

Re: Device status "date" in advanced via API

Post 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 ?
gsaw
Posts: 78
Joined: 22 Aug 2016 00:26

Re: Device status "date" in advanced via API

Post 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
Attachments
2020-10-17 10_26_19-192.168.178.168_8083_ZWaveAPI_Data.png
2020-10-17 10_26_19-192.168.178.168_8083_ZWaveAPI_Data.png (179.48 KiB) Viewed 2472 times
vinisz
Posts: 151
Joined: 23 Nov 2019 23:23

Re: Device status "date" in advanced via API

Post 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.
Attachments
pic3.png
pic3.png (10.52 KiB) Viewed 2462 times
User avatar
PoltoS
Posts: 7571
Joined: 26 Jan 2011 19:36

Re: Device status "date" in advanced via API

Post 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
Post Reply