Wunda Smart Heating?

@tonyroberts This integration is amazing work, thank you. It’s working perfectly with my system.

I have a feature request; can we have a configuration interface to allow the values of the presets to be changed?

I prefer to have different presets for summer and winter. Changing them one by one for each room in the app is a laborious task. It would be so much easier to use an automation.

The URL for updating them is [hubIP]/setregister.cgi?[id]@[preset]=[temp]

Where [preset] is: t_lo, t_norm or t_hi

What are you using as the controller in home assistant? I would have thought it would be easier to set the presets there and forget about the wundasmart presets.

For example, in my set up I’m using a smart thermostat per room which looks something like this

climate:
  - platform: smart_thermostat
    name: Living Room Smart Thermostat
    unique_id: living_room_smart_thermostat
    heater: switch.living_room_heating
    target_sensor: sensor.living_room_temperature
    ac_mode: False
    kp: 75
    ki: 0.0
    kd: 250000
    keep_alive: 00:01:00
    pwm: 00:30:00
    min_cycle_duration: 00:10:00
    min_off_cycle_duration: 0:10:00
    min_temp: 7
    max_temp: 25
    away_temp: 7
    eco_temp: 17
    sleep_temp: 17
    comfort_temp: 19
    boost_temp: 21
    target_temp: 7

Once set up, the presets can be changed if needed as they’re state variables on the climate entity. The wundasmart presets are not used anywhere.

FWIW, rather than configure each room individually (there is a fair bit of boilerplate stuff) I use this GitHub - tonyroberts/ha-jinja2config: Compile Home Assistant yaml config files from jinja templates

Thanks for replying.

I don’t know what you mean by controller.

The integration gives me 1 device, which has a climate entity for each room plus sensors for each thermostat.

I can’t see any way to change the values of the presets there.

In automations, I can change which preset is currently active but I can’t change the value of it.

I already have schedules set up in the wundasmart app which use these presets.

Ah ok, I see. I’m not sure there’s a standard way to expose changing presets via the climate entity, but adding them as _temp state attributes sensors seems reasonable to me.

I will take a look when I get some time, but if you have an idea of how to do this and want to raise a PR then I will happily review that.

Thanks!
Tony

@martin16 this is done in the dev branch.

If you go into HACS and then find the Wundasmart integration, then click the three dots on the top right and do “Redownload” you’ll see a toggle to include beta releases. Select that, and then pick dev to download and install the dev version.

After you restart HA you’ll then be able to find the set preset temp service under services in the developer tools.

You’ll also find new sensors for the presets in each room. The preset names are the home assistant names mapped to wundasmarts lo/norm/hi names (reduced = lo, eco = norm, comfort = hi)

Let me know if you try this, and assuming it all works I’ll create a new release.

Thanks for that. 1 slight problem; I’m using HACS 2.0 and it doesn’t have the option for beta releases.

I’ve enabled the pre-release switch entity for the wundasmart integration and turned it on, but it doesn’t offer anything except the current release.

I’ve created a pre-release for this (v1.3.0) so you should see it now

This is perfect. Thanks so much.

Just installed a Hub Switch and went through the PCAP Android capture [as mentioned earlier in the thread in Dec 22) of the app connecting to the hub and did a bit of temp changing, etc, but looking at the PCAP, I see no local addresses (192.168 sort of things),. On the connections tab, I see nothing but TCP, DNS and HTTPS traffic- no HTTP and no appearance the auth text.
Have things just moved on with the HubSwitch code, such that the PCAP scheme doesnt work any more?

After a hint from @tonyroberts on the github page, I realised that I was terminating the pcap capture too soon. After making some mods on the app, it takes about 30 seconds for the change to be actioned. I’ve just repeated it and left the capture running for another minute, and I can see the HTTP accesses to the local IP address off the Hubswitch.

Added a mini climate card YAML to roughly map the wundasmart app look and feel for thermostats here.

Just installed this and works wonders. It however keeps giving me a fat error that crashes the whole thing:

Failed setup, will retry: cannot create weak reference to ‘NoneType’ object

It looks like this happens if I do more than one click to any of the controls within the spage of a minute (eg, change the temperature, and then change it again after a few seconds). I.e. works great, unless you are impatient, and while this is completely workable it is also a bit of a usability issue in a household with multiple users. I wonder if there is an easy solution for this, at least for it not to crash, even if it means binning the last action.

I’ve just released a new version (0.5.0) that should improve stability when the hub has been running continuously for many months.

Previously I noticed that if the polling interval was short then the hub would become unresponsive after a while, and even if the polling interval was left as the default 5 minutes the hub would sometimes become unresponsive after several months.

The changes in this latest version should address those problems. I’ve also added an additional sensor that reports if the hub is reachable or not, which could be used in an automation if you wanted to try rebooting the hub if it goes offline (e.g. using a shelly or something like that).

I’m having trouble getting the Integration working in HACS which appears to be because of the log in details.

I’ve tried running PCAPdroid and following the steps above and even leaving it quite some time after making changes in the Wunda app I’m not seeing anything that isn’t HTTPS, 53 or 443 or Unknown UDP. Various items showing api.wundasmart.net

I know this is more than likely a user error/me not having unravelled what I need to do to make this work - it’s currently the only thing I have that I can’t get working in HACS which is frustrating !

Any help very gratefully received

I have been trying to get this integration to work for ages, mainly because I was having difficulty with getting the password. Anyway I think I have that now but when I go to Devices & Services > Add Integration I am getting an error:

Config flow could not be loaded: {“message”:“invalid handler specified”}

Because I have tried at least 3 times in the past I am not sure if I have the latest version (although I think I successfully deleted it), loaded from @tonyroberts GitHub page, but I am still a HA newbie and I may have messed it up.

Do I actually have the correct version or how do I check?
Can anyone shed any light on what is wrong?

I think when I open add the integration I am supposed to get something that allows me to add the ip-address and user name and password? As I have tried in the past this data may have been added and it has almost certainly changed (the ip-address has I am pretty sure and the password may have) but I have no idea where these can be reset?

I do have access to the home assistant configs via Visual Studio and I can see in the the custom_components\wundasmart\config_flow.py folders and file the default CONF_USERNAME AND CONF_PASSWORD are both root but being a complete newbie I am loath to change that.

Any help anyone can give would be wonderful.

I would try deleting all previous versions (make sure the files are deleted), and then install using HACS. The error you’re seeing could be because the component is installed in a folder with the wrong name (possibly if you tried to install it manually, or if you still have an old version installed somewhere). If you install using HACS you won’t have that problem.

Don’t change the settings in the code. When you install the component (or reconfigure it) you enter the username and password there.