digitalstrom-homeassistant icon indicating copy to clipboard operation
digitalstrom-homeassistant copied to clipboard

SW-UMR200 not working

Open the-nilo opened this issue 9 months ago • 1 comments
trafficstars

Hi there First, I want to say big thanks for the integration. It‘s working great!

I can control every component except my SW-UMR200 which I use to control my ventilation system. The component appears in the home assistant integration but it only shows sensors. There are no control elements to switch the two outputs on the components. Is there a way to integrate this or are there any problems with the integration?

the-nilo avatar Jan 28 '25 07:01 the-nilo

I'm not familiar with ventilation in digitalSTROM but after looking at the documentation I think it's possible to add basic ventilation support to this integration. I would need your help or the help of someone who has a ventilation device to test things and send me logs.

Some notes for future me or someone who wants to try implementing this:

  • According to the docs it should be possible to get the supported speeds for a fan using /json/device/getSupportedBasicScenes?dsuid=.... I hope the same data is available in supportedBasicScenes from getDevices so we don't have to call getSupportedBasicScenes for every device.

  • It is still unclear how to detect if a device is a fan or not, that needs to be tested. Maybe if supportedBasicScenes is empty then the device is not a fan. It was empty for all devices I've seen.

  • The scene numbers to set different fan speeds are:

    • 0: Off
    • 5: 25%
    • 17: 50%
    • 18: 75%
    • 19: 100%

    I guess these scenes have to be called on the fan device to set its speed. A method to call device scenes already exists in api/device.py.

  • We also need to detect the current speed of a fan somehow so that it can be reported back to Home Assistant.

Mat931 avatar Feb 25 '25 19:02 Mat931