Wolf Smartset Binding in version 5.0

Dear openhab users,

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.

Has anyone an idea? Thanks, Uwe

Meight it be that the skipt which is underlying (I asume it is a curl skipt) does not correctly transport the user or PW? Where can I find it?

There you go. Hope you find something!

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.

Thanks, but how? (sorry, I’m absolutally newbe)

There’s some figuring out to do, but you should find everything here: Logging binding in separate file.

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.

Best, Uwe

Maybe putting the log level to TRACE gives you some more leads.

It says:

No config description found for ‘thing:wolfsmartset:account:93987c76b2’, using alias ‘thing-type:wolfsmartset:account’ instead

‘thing:wolfsmartset:account:93987c76b2’ is my account thing. But I have set all configuration I can do.

In the source I found:

public class WolfSmartsetAccountBridgeHandler extends BaseBridgeHandler

public WolfSmartsetAccountBridgeHandler(final Bridge bridge, HttpClient httpClient) {
super(bridge);
this.httpClient = httpClient;
}

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?

Here is the configuration code for the thing:

UID: wolfsmartset:account:93987c76b2
label: WolfSmartset Account
thingTypeUID: wolfsmartset:account
configuration:
  discoveryEnabled: true
  refreshIntervalValues: 15
  password: yyy
  refreshIntervalStructure: 10
  username: xxx

There is no option to set an httpClient.

What does it mean?:

There is no config status provider for entity wolfsmartset:account:93987c76b2 available.

The httpClient is produced by:

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?

I have to redraw my earlier statement: Following the log the correct httpClient is working:

org.openhab.binding.network.internal.PresenceDetection

  • Message

    All 1 detection futures for www.wolf-smartset.de have completed

    org.openhab.binding.wolfsmartset.internal.api.WolfSmartsetApi

  • Message

    Error logging on to Wolf Smartset (5): 404Not Found

But now I’m as helpless as bevor. Why doeen’t it work? Can someone help me?

Best, Uwe

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.

Thank you, Uwe

Hello everyone,

I have the same problem here. Has anyone found a solution yet?

I have switched to GitHub - zivillian/ism7mqtt