nitaybz / homebridge-tado-ac

Homebridge plugin to support Tado Smart AC Control devices.
MIT License
40 stars 12 forks source link

Request failed with status code 422 #115

Open georgecoca opened 2 years ago

georgecoca commented 2 years ago

Hi. I'm running Hoobs on latest version 4.1.22 and I've installed this plugin through Hoobs UI. The configuration is the default one, nothing changed there. The accessories are added correctly but every time I want to set in HEAT or COOL mode I get the error code 422 (which seems to be related to authentication). My username and password are the same I use for Tado Account, in fact the plugin works fine getting the state and everything but only fails when i want to set / change the mode / temperature. The OFF option works okay. See here the log:

31/01/2022, 14:47:41Tado Ac Bridge TadoACLiving AC  -> Setting New State:
31/01/2022, 14:47:41Tado Ac Bridge TadoAC{
  "termination": {
    "type": "MANUAL"
  },
  "setting": {
    "type": "AIR_CONDITIONING",
    "power": "OFF"
  }
}
31/01/2022, 14:47:45Tado Ac BridgeTadoACLiving AC  -> Setting New State:
31/01/2022, 14:47:45Tado Ac BridgeTadoAC{
  "termination": {
    "type": "MANUAL"
  },
  "setting": {
    "type": "AIR_CONDITIONING",
    "power": "ON",
    "mode": "HEAT",
    "temperature": {
      "fahrenheit": 68,
      "celsius": 20
    }
  }
}
31/01/2022, 14:47:46Tado Ac Bridge TadoAC ERROR: Request failed with status code 422
31/01/2022, 14:47:46Tado Ac Bridge TadoAC ERROR setting mode to HEAT
georgecoca commented 2 years ago

I tried to manually make the API request with the same params, and the code error 422 returns also this error message:

{
    "errors": [
        {
            "code": "setting.notSupported",
            "title": "fan level not in supported fan levels [LEVEL1, LEVEL2, LEVEL3, AUTO]"
        }
    ]
}
zerodayyy commented 2 years ago

I'm experiencing the same issue