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.
Device status "date" in advanced via API
Device status "date" in advanced via API
- Attachments
-
- Schermafbeelding 2020-10-16 154422.jpg (57.78 KiB) Viewed 2493 times
Re: Device status "date" in advanced via API
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 (30.85 KiB) Viewed 2487 times
Re: Device status "date" in advanced via API
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 ?
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
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 (179.48 KiB) Viewed 2472 times
Re: Device status "date" in advanced via API
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.
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 (10.52 KiB) Viewed 2462 times
Re: Device status "date" in advanced via API
I would assume you are searching for lastSend and lastReceived fields and their updateTime propery. Those are used in this part of the UI