Added more binary sensor and switch classes. Ref.Pepper1 database (#2573)

pull/2584/head
John Arild Berentsen 2016-07-20 16:21:09 +02:00 committed by GitHub
parent 59029f2830
commit aed9ab0271
1 changed files with 24 additions and 4 deletions

View File

@ -54,9 +54,13 @@ COMMAND_CLASS_BATTERY = 128
COMMAND_CLASS_SENSOR_ALARM = 156
GENERIC_COMMAND_CLASS_WHATEVER = None
GENERIC_COMMAND_CLASS_NOTIFICATION_SENSOR = 7
GENERIC_COMMAND_CLASS_REMOTE_CONTROLLER = 1
GENERIC_COMMAND_CLASS_NOTIFICATION = 7
GENERIC_COMMAND_CLASS_REMOTE_SWITCH = 12
GENERIC_COMMAND_CLASS_REPEATER_SLAVE = 15
GENERIC_COMMAND_CLASS_MULTILEVEL_SWITCH = 17
GENERIC_COMMAND_CLASS_BINARY_SWITCH = 16
GENERIC_COMMAND_CLASS_WALL_CONTROLLER = 24
GENERIC_COMMAND_CLASS_ENTRY_CONTROL = 64
GENERIC_COMMAND_CLASS_BINARY_SENSOR = 32
GENERIC_COMMAND_CLASS_MULTILEVEL_SENSOR = 33
@ -106,15 +110,31 @@ DISCOVERY_COMPONENTS = [
TYPE_BYTE,
GENRE_USER),
('switch',
[GENERIC_COMMAND_CLASS_BINARY_SWITCH],
[GENERIC_COMMAND_CLASS_ALARM_SENSOR,
GENERIC_COMMAND_CLASS_BINARY_SENSOR,
GENERIC_COMMAND_CLASS_BINARY_SWITCH,
GENERIC_COMMAND_CLASS_ENTRY_CONTROL,
GENERIC_COMMAND_CLASS_MULTILEVEL_SENSOR,
GENERIC_COMMAND_CLASS_MULTILEVEL_SWITCH,
GENERIC_COMMAND_CLASS_NOTIFICATION,
GENERIC_COMMAND_CLASS_REMOTE_CONTROLLER,
GENERIC_COMMAND_CLASS_REMOTE_SWITCH,
GENERIC_COMMAND_CLASS_REPEATER_SLAVE,
GENERIC_COMMAND_CLASS_THERMOSTAT,
GENERIC_COMMAND_CLASS_WALL_CONTROLLER],
[SPECIFIC_DEVICE_CLASS_WHATEVER],
[COMMAND_CLASS_SWITCH_BINARY],
TYPE_BOOL,
GENRE_USER),
('binary_sensor',
[GENERIC_COMMAND_CLASS_BINARY_SENSOR,
[GENERIC_COMMAND_CLASS_ALARM_SENSOR,
GENERIC_COMMAND_CLASS_BINARY_SENSOR,
GENERIC_COMMAND_CLASS_BINARY_SWITCH,
GENERIC_COMMAND_CLASS_METER,
GENERIC_COMMAND_CLASS_MULTILEVEL_SENSOR,
GENERIC_COMMAND_CLASS_NOTIFICATION_SENSOR],
GENERIC_COMMAND_CLASS_MULTILEVEL_SWITCH,
GENERIC_COMMAND_CLASS_NOTIFICATION,
GENERIC_COMMAND_CLASS_THERMOSTAT],
[SPECIFIC_DEVICE_CLASS_WHATEVER],
[COMMAND_CLASS_SENSOR_BINARY],
TYPE_BOOL,