Skip to content

Commit

Permalink
Improve converter for lemesh.switch.sw0a04
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Dec 5, 2024
1 parent 37119a5 commit e1db6ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3301,7 +3301,10 @@
"spec": [
BaseConv("switch", "switch", mi="2.p.1"), # Tested
MapConv("power_on_state", "select", mi="2.p.2", map={0: "previous", 1: "on", 2: "off"}), # config
BoolConv("led", "switch", mi="3.p.2"), # uint8, config
MapConv("interactive_switch", "select", mi="3.p.3", map={1: "control", 2: "decontrol"}, entity=ENTITY_CONFIG),
BoolConv("flex_switch", "switch", mi="3.p.4"), # uint8, config
BoolConv("pilot_switch", "switch", mi="3.p.5", entity=ENTITY_CONFIG), # uint8, config
],
}, {
# run_state attribute is not available according to the spec
Expand Down

0 comments on commit e1db6ec

Please sign in to comment.