Tado ?

Alles was per HTTP gesteuert werden kann
Antworten
wireless-dj
Beiträge: 445
Registriert: Sa 26. Mär 2016, 08:08

Fr 12. Apr 2019, 09:14

Hallo,

Gibt es eine Möglichkeit, http-Befehle für Tado-Heizkörperthermostate in AirStudio einzubauen?
Ich hab hier mehrere davon.

Interessant wäre es, wenn man also in der Aktorenverwaltung per URL Eingabe einen
Thermostaten auf eine bestimmte Temperatur einstellen kann, ausschalten, oder auf
Automatik stellen kann.

Eine Funkunterstützung ist ja soweit ich weiß nicht möglich...!?

Danke & Gruß,

Volker
wireless-dj
Beiträge: 445
Registriert: Sa 26. Mär 2016, 08:08

Mo 15. Apr 2019, 15:57

Hm, kann mir da keiner helfen?

Wenn ich diese URL im Browser eingebe:
https://my.tado.com/api/v2/homes/MEINEH ... INPASSWORT

... dann bekomme ich tatsächlich eine Antwort mit dem Status aller Thermostate.

Die TADO-API beschreibt das auch.
http://blog.scphillips.com/posts/2017/0 ... do-api-v2/

Weiterhin steht dort geschrieben:
---------------------
/api/v2/homes/<homeID>/zones/<zoneID>/overlay
Using a PUT on this endpoint for a heating zone we can manually set the heating temperature (an “overlay”) and query the manual setting. So to set the temperature to 21°C for example:

$ curl -X PUT "https://my.tado.com/api/v2/homes/<homeI ... D>/overlay" -H "Authorization: Bearer `cat /tmp/tadotoken`" -H "Content-Type:application/json;charset=UTF-8" --data-binary '{"setting":{"type":"HEATING","power":"ON","temperature":{"celsius":21}},"termination":{"type":"MANUAL"}}'

The request payload is defined in the --data-binary argument and you must also define the content-type of the request data with the additional Content-Type header. Alternative termination types are TADO_MODE for stopping manual control when the next Tado mode change occurs or “TIMER” in which case you must also define how many seconds you want the manual mode to persist for. The request payload for that would be something like:

{
"setting": {
"type": "HEATING",
"power": "ON",
"temperature": {
"celsius": 21
}
},
"termination": {
"type": "TIMER",
"durationInSeconds": 900
}
}
The response confirms the setting:

{
"type": "MANUAL",
"setting": {
"type": "HEATING",
"power": "ON",
"temperature": {
"celsius": 21,
"fahrenheit": 69.8
}
},
"termination": {
"type": "TIMER",
"durationInSeconds": 900,
"expiry": "2017-01-08T13:31:36Z",
"remainingTimeInSeconds": 763,
"projectedExpiry": "2017-01-08T13:31:36Z"
}
}
A GET on the endpoint will also return the JSON response above if an overlay is defined.
-----------------------

Man kann ja ein PUT mit dem LMAir senden, aber wie müsste der http-Befehl aussehen, und mit welchem Inhalt?

Es wäre toll, denn dann könnte man die Thermostate wirklich mit steuern.

@jbmedia : Gibt's da ne Chance???

@all : Hat das schon Jemand geschafft?


Danke & Gruß,

Volker
Antworten