Step 1: Connect to and authenticate against a JSON endpoint at Teamwork.com. COMPLETE
Step 2: Connect HA to that resource through the REST platform. COMPLETE
- platform: rest
resource: https://subdomain.teamwork.com/tasklists.json
method: GET
name: Tasks
authentication: basic
username: blahblahblah
password: X
json_attributes:
- ?
- ?
Step 3: Create a dynamic list from the data and display it in Lovelace Not done.
QUESTION:
Do we have any geniuses out there who know how to do this?
Hypothetical JSON:
{
"STATUS":"OK",
"TASKS":[
{
"TASK":1,
"DESCRIPTION":"Water Plants",
"SUB-TASKS":[
{
"SUBTASK":1,
"DESCRIPTION":"Get Hose"
},
{
"SUBTASK":2,
"DESCRIPTION":"Turn on water",
}
]
}
]
}
The goal would be to iterate through the data, building headings for tasks and listing sub-tasks below the headings, then display it in the UI.
Water Plants
- Get Hose
- Turn on Water
Anyone know how to accomplish this?