Add Terncy WS01 wall switch variants#12682
Draft
calvinastroboy wants to merge 2 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for Terncy/Xiaoyan TERNCY-WS01 wall switches
Adds Zigbee2MQTT definitions for:
TERNCY-WS01-S1,TERNCY-WS01-S2,TERNCY-WS01-S3,TERNCY-WS01-S4TERNCY-WS01-D1,TERNCY-WS01-D2,TERNCY-WS01-D3,TERNCY-WS01-D4The devices use manufacturer
Xiaoyan, manufacturer code0x1228, andprivate cluster
0xfccc.Standard relay support
The gateway node-struct corpus shows the following standard
genOnOffrelayendpoints:
WS01-S1,WS01-D1state_l1WS01-S2,WS01-D2state_l1,state_l2WS01-S3,WS01-D3state_l1,state_l2,state_l3WS01-S4,WS01-D4state_l1,state_l2,state_l3,state_l4All models have four private endpoints, so action parsing is retained for
l1throughl4, including non-relay input endpoints.Private features
The converter carries the existing Terncy wall-switch protocol mapping:
0x1d(control_relay=0,wireless=1);0x1f(off=0,on=1);0x001f, written from source endpoint110(positive=0,negative=1);The upstream definition intentionally excludes the community-only
relay_enabled,relay_constant_power, andbutton_relay_bindingconveniencecontrols. Command
0x13and attr0x0026are not used as LED feedback paths.Validation
The repository test added with this change covers all eight model IDs, each
relay endpoint boundary, all four endpoint action names, and a click frame from
a non-relay endpoint. The tests pass locally.
The endpoint layout is supported by gateway node-struct evidence. I do not have
a live WS01 packet-validation record in this change, so the private behavior is
reported as family-based inference from the verified WS07-D3 implementation and
should be confirmed on live WS01 hardware.
Related image PR
The matching device images are prepared in zigbee2mqtt.io PR #5322.