Hello,
I am trying to create a chart from a fitness integration tracking my exercise duration for the week, and preferably by exercise name. Unfortunately, I do not know how to address the variables since one does not have an id. I tried to create sensors, but I only get dates, and null/undefined responses for anything else.
Here is an example of the data:
{
“2025-09-08”: {
“totalSessions”: 1,
“totalDuration”: 1838,
“totalDurationFormatted”: “30m”,
“sessions”: [
{
“startTime”: 1757369934,
“endTime”: 1757371772,
“duration”: 1838,
“durationFormatted”: “30m”,
“exerciseType”: “79”,
“exerciseName”: “Walking”,
“title”: “Walking 6:18:54 PM Sep 8, 2025”,
“notes”: null,
“segments”:
}
]
},
“2025-09-10”: {
“totalSessions”: 1,
“totalDuration”: 1708,
“totalDurationFormatted”: “28m”,
“sessions”: [
{
“startTime”: 1757540267,
“endTime”: 1757541975,
“duration”: 1708,
“durationFormatted”: “28m”,
“exerciseType”: “79”,
“exerciseName”: “Walking”,
“title”: “Walking 5:37:47 PM Sep 10, 2025”,
“notes”: null,
“segments”:
}
]
},
“2025-09-12”: {
“totalSessions”: 4,
“totalDuration”: 6078,
“totalDurationFormatted”: “1h 41m”,
“sessions”: [
{
“startTime”: 1757716410,
“endTime”: 1757718120,
“duration”: 1710,
“durationFormatted”: “28m”,
“exerciseType”: “79”,
“exerciseName”: “Walking”,
“title”: null,
“notes”: null,
“segments”:
},
{
“startTime”: 1757716526,
“endTime”: 1757718142,
“duration”: 1616,
“durationFormatted”: “26m”,
“exerciseType”: “79”,
“exerciseName”: “Walking”,
“title”: “Walking 6:35:26 PM Sep 12, 2025”,
“notes”: null,
“segments”:
},
{
“startTime”: 1757735155,
“endTime”: 1757736467,
“duration”: 1312,
“durationFormatted”: “21m”,
“exerciseType”: “79”,
“exerciseName”: “Walking”,
“title”: “Walking 11:45:55 PM Sep 12, 2025”,
“notes”: null,
“segments”:
},
{
“startTime”: 1757735160,
“endTime”: 1757736600,
“duration”: 1440,
“durationFormatted”: “24m”,
“exerciseType”: “79”,
“exerciseName”: “Walking”,
“title”: null,
“notes”: null,
“segments”:
}
]
}
Thank you in advance.