From f4f2da5dc7138ae30c2ff6f232018373fb6fca54 Mon Sep 17 00:00:00 2001 From: John Arild Berentsen Date: Mon, 11 Jul 2016 16:33:34 +0200 Subject: [PATCH] Missing command class for sensor (#2492) --- homeassistant/components/zwave.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/zwave.py b/homeassistant/components/zwave.py index c77b556826b..2cfaea40444 100644 --- a/homeassistant/components/zwave.py +++ b/homeassistant/components/zwave.py @@ -51,6 +51,7 @@ COMMAND_CLASS_DOOR_LOCK = 98 COMMAND_CLASS_THERMOSTAT_SETPOINT = 67 COMMAND_CLASS_THERMOSTAT_FAN_MODE = 68 COMMAND_CLASS_BATTERY = 128 +COMMAND_CLASS_SENSOR_ALARM = 156 GENERIC_COMMAND_CLASS_WHATEVER = None GENERIC_COMMAND_CLASS_NOTIFICATION_SENSOR = 7 @@ -93,7 +94,8 @@ DISCOVERY_COMPONENTS = [ [SPECIFIC_DEVICE_CLASS_WHATEVER], [COMMAND_CLASS_SENSOR_MULTILEVEL, COMMAND_CLASS_METER, - COMMAND_CLASS_ALARM], + COMMAND_CLASS_ALARM, + COMMAND_CLASS_SENSOR_ALARM], TYPE_WHATEVER, GENRE_USER), ('light',