From 612dd302019079900aeb252b8e2611d5b6a09ac7 Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Thu, 15 Feb 2018 17:51:54 -0500 Subject: [PATCH] Stop mapping zigbee switches to lights & switches. (#12280) Zigbee switches only contain client clusters that are meant to control server clusters on a different device/endpoint. This device type -> cluster mapping can be found in https://www.nxp.com/docs/en/user-guide/JN-UG-3076.pdf. The intended usage is of connecting client clusters to server clusters is described in https://products.currentbyge.com/sites/products.currentbyge.com/files/document_file/DT200-GE-Zigbee-Primer-Whitepaper.pdf The lack of server clusters on switches has been verified using a GE ZigBee Lighting Switch 45856GE and a 45857GE dimmer. Output from a 45856GE: Device: NWK: 0x0cd8 IEEE: 00:22:a3:00:00:1f:37:68 Endpoints: 1: profile=0x104, device_type=DeviceType.ON_OFF_LIGHT Input Clusters: Basic (0) Identify (3) Groups (4) Scenes (5) On/Off (6) Metering (1794) Diagnostic (2821) Output Clusters: Time (10) Ota (25) 2: profile=0x104, device_type=DeviceType.ON_OFF_LIGHT_SWITCH Input Clusters: Basic (0) Identify (3) Diagnostic (2821) Output Clusters: Identify (3) On/Off (6) --- homeassistant/components/zha/const.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/homeassistant/components/zha/const.py b/homeassistant/components/zha/const.py index a8d4671ebf7..05716da58ce 100644 --- a/homeassistant/components/zha/const.py +++ b/homeassistant/components/zha/const.py @@ -15,15 +15,11 @@ def populate_data(): from zigpy.profiles import PROFILES, zha, zll DEVICE_CLASS[zha.PROFILE_ID] = { - zha.DeviceType.ON_OFF_SWITCH: 'switch', zha.DeviceType.SMART_PLUG: 'switch', zha.DeviceType.ON_OFF_LIGHT: 'light', zha.DeviceType.DIMMABLE_LIGHT: 'light', zha.DeviceType.COLOR_DIMMABLE_LIGHT: 'light', - zha.DeviceType.ON_OFF_LIGHT_SWITCH: 'light', - zha.DeviceType.DIMMER_SWITCH: 'light', - zha.DeviceType.COLOR_DIMMER_SWITCH: 'light', } DEVICE_CLASS[zll.PROFILE_ID] = { zll.DeviceType.ON_OFF_LIGHT: 'light',