Skip to content

Commit

Permalink
Add deCONZ support for Sonoff SNZB-01 switches (#54919)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperS2307 authored Aug 24, 2021
1 parent e2ce1d8 commit 5aa6f9d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions homeassistant/components/deconz/device_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,14 @@
(CONF_LONG_RELEASE, CONF_BUTTON_8): {CONF_EVENT: 8003},
}

SONOFF_SNZB_01_1_MODEL = "WB01"
SONOFF_SNZB_01_2_MODEL = "WB-01"
SONOFF_SNZB_01_SWITCH = {
(CONF_SHORT_RELEASE, CONF_BUTTON_1): {CONF_EVENT: 1002},
(CONF_LONG_RELEASE, CONF_BUTTON_1): {CONF_EVENT: 1003},
(CONF_DOUBLE_PRESS, CONF_BUTTON_1): {CONF_EVENT: 1004},
}

TRUST_ZYCT_202_MODEL = "ZYCT-202"
TRUST_ZYCT_202_ZLL_MODEL = "ZLL-NonColorController"
TRUST_ZYCT_202 = {
Expand Down Expand Up @@ -595,6 +603,8 @@
TRUST_ZYCT_202_ZLL_MODEL: TRUST_ZYCT_202,
UBISYS_POWER_SWITCH_S2_MODEL: UBISYS_POWER_SWITCH_S2,
UBISYS_CONTROL_UNIT_C4_MODEL: UBISYS_CONTROL_UNIT_C4,
SONOFF_SNZB_01_1_MODEL: SONOFF_SNZB_01_SWITCH,
SONOFF_SNZB_01_2_MODEL: SONOFF_SNZB_01_SWITCH,
}

TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend(
Expand Down

0 comments on commit 5aa6f9d

Please sign in to comment.