Drayton Wiser Home Assistant Integration

Ok, this is likely related to a code change in the last release as HA deprecated the way we register this path. I wonder if something is different in your setup that means this no longer works.

If you are up for amending a couple of lines of code, could you try this.

In

custom_components/wiser/frontend/__init__.py

At the top of the file after the line 4 which says

import os

add

import pathlib

Then @ line 27 which says

await self.hass.http.async_register_static_paths(
                [StaticPathConfig(URL_BASE, "custom_components/wiser/frontend", False)]
            )

change it to the below, restart HA and see if that fixes it.

await self.hass.http.async_register_static_paths(
                [StaticPathConfig(URL_BASE, pathlib.Path(__file__).parent, False)]
            )

Let me know if this works and I’ll update it for the next release.

On my dev platform , I cannot use either wiser schedule and wiser zigbee.
ressources :
/wiser/wiser-zigbee-card.js?v=2.1.2
/wiser/wiser-schedule-card.js?v=1.3.3

I follow your suggestions
results :
1/ after restart HA no change
2/ I select the ressurces and I erase ?v=x.x.x to get /wiser/wiser-zigbee-card.js and /wiser/wiser-schedule-card.js then it work fine

Ok, step 2 is just changing the identity to load it into the cache. We do this so that a new version updates without any Shift F5 requirement. If you put them back, does that still work? Or if you put them back and do a Shift F5?

EDIT: Or you can test that it exists by pasting the address into your browser. Ie

http://homeassistant.local:8123/wiser/wiser-schedule-card.js?v=1.3.3

etc. The ?v=1.3.3 makes no difference in this as you can remove it or put anything you want there and it will load the same file.

1 Like

[quote=“msp1974, post:3954, topic:80965”]
Ok, step 2 is just changing the identity to load it into the cache. We do this so that a new version updates without any Shift F5 requirement. If you put them back, does that still work? Or if you put them back and do a Shift F5?
[/quote]

When I put them back it still works.

EDIT: Or you can test that it exists by pasting the address into your browser. Ie

```
http://homeassistant.local:8123/wiser/wiser-schedule-card.js?v=1.3.3

The browser display the file.

@msp1974 can confirm the steps you outlined above worked for me. Resolved.

1 Like

I keep getting notifications that new devices have been discovered but there are no new devices in the list. How can i stop these notifications?

Thanks

Explain more. What notifications do you mean?

Within HA home screen the left hand menu at the bottom it says “notifications”. I keep being notified of new devices discovered which i dismiss on a daily basis.

Does it say from Wiser Integration?

Sorry, my mistake, its an HA notification not from the Wiser integration.

Hi folks,

I am new to HA and have added my existing Wiser system.

I am looking to develop some analytics that would tell me how many hours each TRV has been on for as well as determining the rate at which each room loses temperature.

I have found an older code here:

I think this would atleast give me hours on, but maybe not temperature lost.

I have downloaded file editor, but not sure how I can properly apply this and if there is any code which can help enhance what I am looking for?

Thanks,
Scott

Hi everyone
Apologies for butting in with a question. I installed my new UK Drayton Hub and Roomstat and configured this HA integration a couple of days ago. All seems to be working great- I really appreciate having a scheduler card in HA. However, my boiler is cycling on and off as the room heats up to the setpoint, as shown in the screenshot. I would expect the boiler to stay on continuously until the setpoint is reached then turn off.
Is this expected behaviour and if not, what is causing it?

Thanks

This is expected behaviour. Assuming a gas boiler Wiser will fire the boiler for some calculated fraction of 10 minutes depending on the difference between the target temperature and the current temperature.

A simplified explanation:
The day is divided up into 10 minute time slots. You have no control over the actual start time of each slot,
If the target temperature is more than 2 degrees above the current temperature Wiser will switch the boiler on for 100% of the next time slot (10 minutes).
When the current temperature gets within 2 degrees of the target temperature the boiler will switch the boiler on for less than 100% of the next time slot, the minimum on time is 2 minutes.
You can see this happening in your graph above. Long firings of the boiler at the start of the graph, short firings as the actual temperature nears the target temperature.

This is all intended to save energy by preventing your room temperature from overshooting the target. It all worked well on your graph until 9:23 when the current temperature exceeded the target without the boiler firing, this might have been caused by the sun shining through the window and heating up the room.

1 Like

Thanks for the explanation! Not sure I totally agree that is a sensible way of doing it but at least I know everything is working as expected.

1 Like

You’re right its not a good way but because Wiser doesnt fully support Opentherm and because older boilers also dont support Opentherm then it is the only way to do it and i think Wiser does a fairly good job. If your boiler does support Opentherm then dont use Wiser, there are other controllers in the market that support Opentherm. If your boiler supports its own version of Opentherm i.e. worcester or Vaillant then buy their controls.

My boiler doesn’t have any opentherm control.
To reduce the cycling, I changed the Wiser heat source mode from Gas to Oil.
That changes the sampling from 10 min intervals to 20 min intervals and does indeed reduce cycling. (Change it at your own descretion).

Boiler temperature and water flow rate also has a significant effect, I tried the low flow, low temperature route, when we recently had the boiler replaced.
But it doesn’t work with a CH system that was designed for typical housing in 1990’s. I also had the radiator system flushed and then re-balanced.

Still have to have the boiler set to 70c in order to get a decent balanced operation. (It’s not a combi boiler).

What temperature is the boiler set to for CH?

Your graph looks similar to what I was experiencing during low flow, low temperature testing.

1 Like

Hi, I am trialling a single DW TRV before committing to an entire system. I have it connected to HA via Z2M.

These valves only support boost, not a specific set temp so I wanted to if that is going to be a problem.

The temp read by the TRV is 14.7. I boosted it and it set the Set Point to 17. This is still quite low! Is there a way in the DW app to change this behaviour to have a minimum boost set temp of 20 say?

Has anyone tried the new TADO smart X setup?

Just watched a review and looks like the TRVs are pretty much silent, plus it supports matter.

Opentherm support on the Drayton has never felt quite right with my viessman combo boiler.

Aware some features are subscription on the tado, but could easily be overcome with HA or HomeKit I think.

Boost on the Wiser system is limited to 2degrees c increase from the existing detected temperature. My advice is dont use a TRV without a room stat, they are too inaccurate reading too high when the heating is on and too low when its off. Its also a bad idea to micro zone your house based on per TRV so if you really do want to use them then set them up in groups.

Boost on the Wiser system is limited to 2degrees c increase from the existing detected temperature. My advice is don’t use a TRV without a room stat

Ah, ok, so the only way to avoid the +2c boost limitation is to use the room stat… not ideal.

Although I guess I could try to to automate it in HA so that when a TRV is boosted HA sets it to 20c if it is less than 20c.

And I hear you on the inaccurate readings. I have noticed that the TRV is no where near the room temp. In fact for my PoC I have overridden it using Better Thermostat linked to a room thermometer.