Ticket #270 (new enhancement)

Opened 7 years ago

Last modified 6 years ago

Poll multiple sensors in Live! API

Reported by: patrik åkerfeldt <patrik.akerfeldt@…> Owned by:
Priority: major Milestone: 2.1.3
Component: Telldus Live! Version:
Keywords: Cc:
Blocked By: Blocking:
Platform: All Sensitive: no
Verified by Telldus: no

Description

New method suggested sensors/poll which gives sensor values and lastUpdated for each ID specified. For example:

sensors/poll?ids=12345,12346
might return:
[

{

"id": "12345",
"lastUpdated": 1354259383,
"data": [

{

"name": "temp",
"value": "2.7"

},
{

"name": "humidity",
"value": "65"

}

]

},
{

"id": "12346",
"lastUpdated": 1354259401,
"data": [

{

"name": "temp",
"value": "19.7"

},
{

"name": "humidity",
"value": "75"

}

]

}

]

Suggested parameters:
ids => comma separated list of sensor Ids (the global id) to include in the result set

This request would include every id specified, even though it might refer to an ignored sensor.

Change History

comment:1 Changed 7 years ago by micke prag <micke.prag@…>

  • Milestone set to 2.1.3

comment:2 Changed 6 years ago by stefan persson <stefan.persson@…>

Also see #321

Note: See TracTickets for help on using tickets.