Read new Tado API features

Hey this chart looks very nice, may I ask which one it is please

1 Like

Hi guys, i am trying to extrapolate the data for the gas consumption. but when i try to access the page “https://energy-insights.tado.com/api/homes/{myid}/consumption?country=de” i always have “authentication failed”
the home id is correct becouse i use it in home assistant.
Any ideas?

I wanted to enable the gas estimation, used the Node-Red template here but I always get “no response from server” at the http request for the access-token.
Even when I do a manual curl in a terminal like provided:
curl -s “https://auth.tado.com/oauth/token” -d client_id=tado-web-app -d grant_type=password -d scope=home.user -d [email protected] -d password=YYYYYYY -d client_secret=wZaRN7rpjn3FoNyF5IFuxg9uMzYJcvOoQ8QWiIqS3hfk6gLhVlG57j5YNoZL2Rtc
I get no response.
Did they change something, what am I doing wrong?

are you subscribed user?

Yes I am
I cant figure out what I am doing wrong.

hi all, does someone has figure it out how to go ahed with this? i can’t figure out how to use the node red template.
i can use the curl command with the bear token but i have no response, i ended up with this error
" {“errors”:[{“code”:“unauthorized”,“title”:“cannot parse access token”}]}%" "
or this:
"{“errors”:[{“code”:“accessDenied”,“title”:“current user is not allowed to access home 0 (user is not a resident)”}]}% "

any idea?

It working well on my side.

Are you have a active subscription?

Yes i have.
Do you have a guide to follow? Maybe I am making some mistake. The node red pastebin in this thread is functional for you?

i use this:

(i cleanup my personal data: email, password, homeid)

i put my credential in the second node:
“{“client_id":“tado-web-app”,“grant_type”:“password”,“scope”:“home.user”,“username”:"[email protected]”,“password”:“xxxxx”,“client_secret”:“wZaRN7rpjn3FoNyF5IFuxg9uMzYJcvOoQ8QWiIqS3hfk6gLhVlG57j5YNoZL2Rtc”}”

and in the last node i put my home id
"msg.url = “https://energy-insights.tado.com/api/homes/xxxxx/consumption?country=it
"

but in the log i have “error no credential provided”. i can’t figure out what i am doing wrong, any ideas?

i now managed to give the data, but suddenly i received this errors: "“Cannot set property of non-object type: payload.details.totalConsumption”
"
and this:

““TypeError: Cannot read properties of undefined (reading ‘totalConsumption’)””
any ideas?

still no lucky, i still have the same error “Cannot set property of non-object type: payload.details.totalConsumption”
Someone has the same error?

Hello

The API endpoint are changeed. The new are:

https://energy-insights.tado.com/api/homes/139485/consumptionOverview?month=${year}-${month}&country=HUN

It need to manage the Year/month via variables. I use this funcion in Node-RED:

var date= new Date();
var month = (date.getMonth() + 1).toString().padStart(2, '0');
var year = date.getUTCFullYear();

msg.url = `https://energy-insights.tado.com/api/homes/139485/consumptionOverview?month=${year}-${month}&country=HUN`
msg.method = "GET"

msg.headers = {
    Authorization: "Bearer "+ msg.payload.access_token

}

return msg;
1 Like

hi! can you please post yur node red configuration?