Skip to content

Commit

Permalink
Merge pull request #1417 from xiaodong-lx/add_iot.switch.tdq3
Browse files Browse the repository at this point in the history
add iot.switch.tdq3
  • Loading branch information
AlexxIT authored Aug 6, 2024
2 parents b2f688a + 71e7f9e commit f7f44a0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3444,6 +3444,19 @@
MapConv("icon_style", "select", mi="3.p.5", map={0: "Lamp-bulb", 1: "Cylindrical-spotlight", 2: "Ceiling-light", 3: "Hanging-lamp", 4: "Lamp-belt", 5: "Small-electric-appliance", 6: "Socket", 7: "Valve", 8: "Electrical-machinery"}, entity=ENTITY_CONFIG),
BoolConv("pilot_switch", "switch", mi="3.p.6", entity=ENTITY_CONFIG),
],
}, {
17725: ["Unknown", "Intelligent On-off Device(Mesh)", "iot.switch.tdq3"],
"spec": [
BaseConv("switch", "switch", mi="2.p.1"),
BoolConv("fault", "binary_sensor", mi="2.p.3", entity=ENTITY_DISABLED),
MapConv("power_on_state", "select", mi="2.p.5", map={0: "Default", 1: "Off", 2: "On"}),
BaseConv("led", "switch", mi="6.p.1"),
MathConv("double_click_close", "number", mi="7.p.4", min=0, max=1439, entity=ENTITY_DISABLED),
MathConv("local_timing", "number", mi="7.p.5", min=0, max=4294967295, entity=ENTITY_DISABLED),
MathConv("jog_mode", "number", mi="7.p.6", min=1, max=4294967295, entity=ENTITY_DISABLED),
BaseConv("child_lock", "switch", mi="7.p.7", entity=ENTITY_DISABLED),
MapConv("rocker_switch", "select", mi="7.p.8", map={0: "Self-resetting Mode", 1: "Flip Mode", 2: "Sync Mode"}, entity=ENTITY_DISABLED),
]
}, {
"default": "mesh", # default Mesh device
"spec": [
Expand Down

0 comments on commit f7f44a0

Please sign in to comment.