Ticket #356 (new defect)

Opened 5 years ago

Sensor json format differ

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

Description

The json returned from sensors/list with includeValues doesn't match the format used in sensor/info.

In sensor/info the data fields are under a certain "data" struct which makes it very easy to identify the different sensor values. But when using sensors/list with includeValues, the sensor values are just delivered "flat" under the same struct.

Not only does it make the client side implementation complicated since we need to deal with two different formats. It's also more or less impossible to know which fields are actually sensor values. At least dynamically.

I would actually say this is as a defect. I was about to make Remotestick do less requests to Telldus Live but this format makes it very hard.

Note: See TracTickets for help on using tickets.