I’m really new in openhab. I have installed the new release 5.0 and I’m trying to migrate all my home automatisation stuff (mostly mqtt devices) to openhab. During that I’m facing some problems I’m trying to solve by reading Internet and forum stuff as well as asking ChatGPT but some issues I cannot find solutions for. So, let my ask the first question (the server where openhab is running has a well established internet connection):
I’m trying to integrate my “Wolf Smartset” account and therefore I’m trying to create a “Wolf Smartset Account thing”. I enter my access data correctly but it always says “COMMUNICATION_ERROR - Authorization failed”. I’m sure the login data a correct because I can login on the mobile app as well as on the internet page www.wolf-smartset.de.
You can put the binding’s logging into debug level and it will show more about the request/ response and hopefully something about the authorisation issue.
Okay, I found out how to configure the log on UI. Activating DEBUG mode for bindings delivers:
org.openhab.binding.wolfsmartset.internal.api.WolfSmartsetApi Error logging on to Wolf Smartset (0): 404Not Found
Meaning for me the html (https://www.wolf-smartset.de/) is not correctly set!? I have probably no option to set the page in the configuration, have I? It’s preset, isn’t it?
I’m trying now to search in the source where the error happens.
But I havn’t foud yet where the constructor is called an the httpClient is transfered. Because, the hattpClient is not part of the configuration code it should be a constant string, should’t it? And where is it?
public class WolfSmartsetHandlerFactory extends BaseThingHandlerFactory {
private final HttpClient httpClient;
@Activate
public WolfSmartsetHandlerFactory(@Reference HttpClientFactory httpClientFactory) {
this.httpClient = httpClientFactory.getCommonHttpClient();
}
What does it mean? The client is already known? Do I have to declaire it somewhere?
For my opinion the methode “loginRequest()” in the class “WolfSmartsetApi” does not work anymore. Probably, Wolf has changed the web site.
I can not deside if it is only the wrong http "WOLF_API_URL = “https://www.wolf-smartset.com/portal/” or if the web site itself has changed, I have now knowledge about HTML coding.
It would be nice if someone could fix the code and makes an update, soon. Otherwise, the Wolf binding should be removed from OH add-ones, because it’s missleading and confusing.