Zwave cover workaround for graber shades. (#7204)

* wierd pylint complaint

* Workaround for Graber csz1 shades

* logging

* Try direct

* Try direct

* Use workaround

* Review changes and tests

* test

* reset test

* Use Bright and Dim also as open and close is
This commit is contained in:
John Arild Berentsen 2017-04-22 16:23:39 +02:00 committed by Paulus Schoutsen
parent e01c36c906
commit 79c6467797

View file

@ -81,12 +81,12 @@ DISCOVERY_SCHEMAS = [
}, },
'open': { 'open': {
const.DISC_COMMAND_CLASS: [const.COMMAND_CLASS_SWITCH_MULTILEVEL], const.DISC_COMMAND_CLASS: [const.COMMAND_CLASS_SWITCH_MULTILEVEL],
const.DISC_LABEL: ['Open', 'Up'], const.DISC_LABEL: ['Open', 'Up', 'Bright'],
const.DISC_OPTIONAL: True, const.DISC_OPTIONAL: True,
}, },
'close': { 'close': {
const.DISC_COMMAND_CLASS: [const.COMMAND_CLASS_SWITCH_MULTILEVEL], const.DISC_COMMAND_CLASS: [const.COMMAND_CLASS_SWITCH_MULTILEVEL],
const.DISC_LABEL: ['Close', 'Down'], const.DISC_LABEL: ['Close', 'Down', 'Dim'],
const.DISC_OPTIONAL: True, const.DISC_OPTIONAL: True,
}})}, }})},
{const.DISC_COMPONENT: 'cover', # Garage Door {const.DISC_COMPONENT: 'cover', # Garage Door