Skip to content

Commit a1542b4

Browse files
authored
Merge pull request #1580 from Jianhong-Han/master
Add Basic Support for YKCN Din-Rail Circuit Breaker (ykcn.valve.cbcs)
2 parents 301606b + f382f6e commit a1542b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: custom_components/xiaomi_gateway3/core/devices.py

+10
Original file line numberDiff line numberDiff line change
@@ -4284,6 +4284,16 @@
42844284
BaseConv("flex_switch", "switch", mi="2.p.12", entity=ENTITY_CONFIG), # uint8, config
42854285
BoolConv("night_light", "switch", mi="2.p.13", entity=ENTITY_CONFIG), # config
42864286
],
4287+
}, {
4288+
# https://home.miot-spec.com/spec/ykcn.valve.cbcs
4289+
19951: ["YKCN", "Din-Rail Circuit Breaker", "ykcn.valve.cbcs"],
4290+
"spec": [
4291+
BaseConv("switch", "switch", mi="2.p.1"),
4292+
MathConv("energy", "sensor", mi="3.p.1", multiply=0.01),
4293+
MathConv("current", "sensor", mi="3.p.2", multiply=0.001),
4294+
MathConv("voltage", "sensor", mi="3.p.3", multiply=0.1),
4295+
MathConv("power", "sensor", mi="3.p.6", multiply=1),
4296+
],
42874297
}, {
42884298
"default": "mesh", # default Mesh device
42894299
"spec": [

0 commit comments

Comments
 (0)