@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]
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
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.
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.
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.
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 !
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.
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.