openhab-addons: [hydrawise] Communication error

I upgraded to 4.1.2 today while i saw that there is an authorization bugfix in the hydrawise binding done, but still i got this message after the upgrade in the BASIC UI Thing setup:

COMMUNICATION_ERROR
Request failed with HTTP status code: 400 response: {"errors":{"message":"Could not resolve promise"}}_

I am running the Hydrawise Binding on openHAB 4.1.2 stable version on a Debian Buster Machine.

This failure comes up since some days, all other APP’s are running as normal.

Any idea?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 62 (26 by maintainers)

Most upvoted comments

I just updated the 4.1 version, its the same link, so

bundle:update org.openhab.binding.hydrawise https://github.com/digitaldan/openhab-addons/releases/download/hydrawise-weather-fix/org.openhab.binding.hydrawise-4.1.3-SNAPSHOT.jar

I have not had a chance to test yet , so 🤞

Seems forecast working too

Let me post a new version today, there’s a few more changes that have not been published yet.

@clown-m , well thats interesting, you can see that when i am sending just a request for weather data , and nothing else it actually works and we get weather data for your region.

2024-04-09 09:22:38.209 [TRACE] [l.api.graphql.HydrawiseGraphQLClient] - Received Response: {"data":{"me":{"email":"*****","lastContact":"Wed, 03 Apr 24 19:16:42 +0000","controllers":[{"location":{"forecast":[{"time":"Tue, 09 Apr 24 00:00:00 +0200","updateTime":"Tue, 09 Apr 24 02:15:23 +0200","conditions":"Bew\u00f6lkt","averageWindSpeed":{"value":22,"unit":"km\/h"},"highTemperature":{"value":17,"unit":"\u00b0C"},"lowTemperature":{"value":10,"unit":"\u00b0C"},"probabilityOfPrecipitation":35,"precipitation":{"value":0.5,"unit":"mm"},"averageHumidity":63},{"time":"Wed, 10 Apr 24 00:00:00 +0200","updateTime":"Tue, 09 Apr 24 02:15:23 +0200","conditions":"Teilweise bew\u00f6lkt","averageWindSpeed":{"value":14,"unit":"km\/h"},"highTemperature":{"value":15,"unit":"\u00b0C"},"lowTemperature":{"value":6,"unit":"\u00b0C"},"probabilityOfPrecipitation":9,"precipitation":{"value":0,"unit":"mm"},"averageHumidity":60},{"time":"Thu, 11 Apr 24 00:00:00 +0200","updateTime":"Tue, 09 Apr 24 02:15:23 +0200","conditions":"Teilweise bew\u00f6lkt","averageWindSpeed":{"value":11,"unit":"km\/h"},"highTemperature":{"value":17,"unit":"\u00b0C"},"lowTemperature":{"value":5,"unit":"\u00b0C"},"probabilityOfPrecipitation":6,"precipitation":{"value":0,"unit":"mm"},"averageHumidity":64}]}},{"location":{"forecast":[{"time":"Tue, 09 Apr 24 00:00:00 +0200","updateTime":"Mon, 08 Apr 24 15:14:36 +0200","conditions":"Bew\u00f6lkt","averageWindSpeed":{"value":22,"unit":"km\/h"},"highTemperature":{"value":17,"unit":"\u00b0C"},"lowTemperature":{"value":11,"unit":"\u00b0C"},"probabilityOfPrecipitation":23,"precipitation":{"value":0,"unit":"mm"},"averageHumidity":63},{"time":"Wed, 10 Apr 24 00:00:00 +0200","updateTime":"Mon, 08 Apr 24 15:14:36 +0200","conditions":"Teilweise bew\u00f6lkt","averageWindSpeed":{"value":11,"unit":"km\/h"},"highTemperature":{"value":14,"unit":"\u00b0C"},"lowTemperature":{"value":7,"unit":"\u00b0C"},"probabilityOfPrecipitation":9,"precipitation":{"value":0,"unit":"mm"},"averageHumidity":61},{"time":"Thu, 11 Apr 24 00:00:00 +0200","updateTime":"Mon, 08 Apr 24 15:14:36 +0200","conditions":"Gr\u00f6\u00dftenteils bew\u00f6lkt","averageWindSpeed":{"value":11,"unit":"km\/h"},"highTemperature":{"value":17,"unit":"\u00b0C"},"lowTemperature":{"value":4,"unit":"\u00b0C"},"probabilityOfPrecipitation":7,"precipitation":{"value":0,"unit":"mm"},"averageHumidity":67}]}}]}}}

So then my code assumes weather is supported and uses the full GraphQL query with weather, which then of course fails. Sounds like its some kind of race condition in their code. I’ll update the jar here today to take this into account.

Thanks for your support i really appreciate your work.