Open stiech82 opened 1 year ago
Hi,
I'm not sure exactly what your setup looks like but you should be able to use the setZoneOverlay
function call. A dynamic temperature can be set by sending in a message with msg.temperature
set to the required temperature. If you're getting back a 422 though I'm slightly nervous that you're trying to set the temperature on an AC unit. I don't have any AC and this it seems to return a 422 occasionally.
Thanks
Thanks,
you are right, i am using a AC unit.
But i can try it. How i set the setZoneOverlay with a function call? I found a lot and tried something, but maybe i used it wrong?
I set "setZoneOverlay" with your function. What i have to set more on this function? I am not good in this :(
Hi,
Apologies for the delay in replying. Something similar to the following flow should get you started. If you get a 422 back then please let me know what the error is - AC has typically been problematic but there's been a few patches over summer that should have fixed the functionality - please also double check that you're on the latest release (0.10.4).
Thanks
[
{
"id": "dc60ee421f0357c2",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "d63f6cc12f23458c",
"type": "inject",
"z": "dc60ee421f0357c2",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 140,
"y": 200,
"wires": [
[
"bbfb4629f651a86e"
]
]
},
{
"id": "b0bd38f662106706",
"type": "tado",
"z": "dc60ee421f0357c2",
"configName": "d1cf260f.0bb368",
"apiCall": "setZoneOverlay",
"homeId": "12345",
"deviceId": "",
"zoneId": "3",
"power": "on",
"temperature": "18",
"terminationType": "manual",
"terminationTimeout": 900,
"fanSpeed": "AUTO",
"acMode": "AUTO",
"name": "",
"reportDate": "",
"presence": "HOME",
"geoTracking": true,
"temperatureOffset": 0,
"windowDetection": true,
"windowDetectionTimeout": 900,
"openWindowMode": true,
"timetableId": "",
"x": 540,
"y": 200,
"wires": [
[
"f1706c0f22945e22"
]
]
},
{
"id": "f1706c0f22945e22",
"type": "debug",
"z": "dc60ee421f0357c2",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 760,
"y": 200,
"wires": []
},
{
"id": "bbfb4629f651a86e",
"type": "function",
"z": "dc60ee421f0357c2",
"name": "function 1",
"func": "msg.temperature = 20;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 320,
"y": 200,
"wires": [
[
"b0bd38f662106706"
]
]
},
{
"id": "d1cf260f.0bb368",
"type": "tado-config",
"name": ""
}
]
Hi @stiech82, Did this fix you issue? Are you happy for me to close? Thanks
i can't get it.
I'm not good at this and tried your excample, but i think i am to stupid. I got no response. I don't know how to config your example.
Hi, I'm finally tidying up some of the open issues (apologies) - did you ever resolve your issue? I believe the flow above should have fixed your issue. Thanks
hello,
is it possible to set a dynamic temperature? I tried it with "msg.payload" at temperature, but i got this error back "AxiosError: Request failed with status code 422"
I set with a function msg.payload like "22".