Add deCONZ support for Sonoff SNZB-01 switches (#54919)

pull/55139/head
Jasper Smulders 2021-08-24 11:33:19 +02:00 committed by GitHub
parent e2ce1d8b24
commit 5aa6f9dbb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -516,6 +516,14 @@ BUSCH_JAEGER_REMOTE = {
(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 = {
@ -595,6 +603,8 @@ REMOTES = {
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(