perbrage / node-red-contrib-telldus-zwave-v2-local

Control Telldus on/off devices using the local API in NodeRed
MIT License
1 stars 1 forks source link

lastUpdated telldus API #6

Open dezral opened 6 years ago

dezral commented 6 years ago

I can see in the Telldus API that there is a "lastUpdated" timestamp info that is the time when last time value was updated.. is it possible to include that info..

I have few temp/hum sensor from telldus that have this info..

https://telldus.com/produkt/thermo-hygro-sensor-433mhz/ <<

could use maxtime/mintime and max/min values also..

https://api.telldus.com/explore/sensor/info

looks like this: { "id": "XXXXXXXXX", "clientName": "NAMEOFBRIDGE", "name": "Temp place", "lastUpdated": 1534318198, "ignored": 0, "editable": 1, "data": [ { "name": "temp", "value": "24.2", "scale": "0", "lastUpdated": 1534318198, "max": "24.3", "maxTime": 1534312342, "min": "24.1", "minTime": 1534313158 }, { "name": "humidity", "value": "59", "scale": "0", "lastUpdated": 1534318198, "max": "59", "maxTime": 1534312438 } ], "protocol": "fineoffset", "sensorId": "57", "timezoneoffset": 7200, "battery": "254", "keepHistory": "1" }

perbrage commented 5 years ago

Sorry for a late reply! I will have a look at this and see what I can do! Cheers!

perbrage commented 5 years ago

Looks like those values are not available when using the local API. I guess it might be something that is stored in Telldus Live, thus not available using the local API. Too bad!

dezral commented 5 years ago

Thanks for cheking..

How about defin a topic on lets say the metrics sensor out.. or just add the given name of the node as topic also..