Skip to content

Add DDF for Xiaomi H1 dual rocker switch (neutral wire) WS-EUK04 - #5893

Merged
manup merged 4 commits into
dresden-elektronik:masterfrom
SwoopX:n2aeu1
Apr 7, 2022
Merged

manup merged 4 commits into
dresden-elektronik:masterfrom
SwoopX:n2aeu1

Conversation

@SwoopX

@SwoopX SwoopX commented Mar 20, 2022

Copy link
Copy Markdown
Collaborator

Relies on #5857

Adds the DDF and removes the respective legacy code. For the created ZHASwitch resource, config/devicemode is added to automatically put the device in the required mode of operation. Furthermore, config/ledindication is added to ZHASwitch resource to be able to disable the LEDs during night time. Both is set on the first endpoint only, so the switch resource can be chosen to make the resource items available.

What's still to be clarified is setting the decoupled mode. As this is set per endpoint (there's 2), the light resources would probably make sense. However, they do not really support config resource items.

@SwoopX
SwoopX marked this pull request as ready for review March 21, 2022 08:32
@SwoopX SwoopX changed the title Add DDF for Xiaomi H1 2-gang switch (neutral wire) WS-EUK04 Add DDF for Xiaomi H1 dual rocker switch (neutral wire) WS-EUK04 Mar 29, 2022
@manup

manup commented Apr 5, 2022

Copy link
Copy Markdown
Member

Looks good to me, but needs to be realigned on latest master.

@manup manup added this to the v2.15.1 milestone Apr 5, 2022
@manup
manup merged commit a50a847 into dresden-elektronik:master Apr 7, 2022
@SwoopX
SwoopX deleted the n2aeu1 branch April 12, 2022 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants