Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use "lastUpdated" to show when sensor was updated #25

Open
tvillingett opened this issue Nov 2, 2016 · 4 comments
Open

use "lastUpdated" to show when sensor was updated #25

tvillingett opened this issue Nov 2, 2016 · 4 comments

Comments

@tvillingett
Copy link
Contributor

Is it possible to use this timestamp (unixtime?) to give as info to homekit. I'm not sure where/how to send it to homekit...
{"id":"9044149","name":"Garage inne","lastUpdated":1478118807,"ignored":0,"client":"130828","clientName":"Torodd1","online":"1","editable":1,"battery":254,"keepHistory":0,"protocol":"fineoffset","model":"temperaturehumidity","sensorId":"231"}

@mifi
Copy link
Collaborator

mifi commented Nov 3, 2016

Where does homekit show timestamps? There is a CurrentTime characteristic but I don't know what it's supposed to mean.

https://github.com/KhaosT/HAP-NodeJS/blob/7fb8c2924e8bb08a548bf101d0605db09a6f6952/lib/gen/HomeKitTypes.js

@tvillingett
Copy link
Contributor Author

Hmm, I was assuming it existed, but it may be only as internally registered time from receiving an update. The CurrentTime I believe is for setting the internal real time clock of accessories, for their own timestamp when logging time-series of data.
In this case maybe it could use the timestamp to save and check if the data is newer than the last sent, and don't resend it if it was the same, and then the homekit app on iOS will mark it as not updated.

@mifi
Copy link
Collaborator

mifi commented Nov 3, 2016

Then we would need to save state in the program? That should be avoided if possible

@dezral
Copy link

dezral commented Nov 28, 2017

could this not be possible now with the sensor/history in the telldus API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants