Skip to content

Commit 582ac27

Browse files
committed
Added ability to check for COMMAND_CLASS_INDICATOR to support zooz zse33 chime.
1 parent 2b6b36b commit 582ac27

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎src-api/openzwave/command.py‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,23 @@ def get_config(self, value_id=None):
407407
return self.values[value_id].data
408408
return None
409409

410+
def can_set_indicator(self):
411+
"""
412+
Check if node contain the command class 0x87 (COMMAND_CLASS_INDICATOR).
413+
414+
Filter rules are :
415+
416+
command_class = 0x87
417+
418+
:return: True if the node can set the indicator
419+
:rtype: bool
420+
"""
421+
res = self.get_values(class_id=0x87)
422+
if res is not None and len(res) > 0:
423+
return True
424+
else:
425+
return False
426+
410427
class ZWaveNodeSwitch(ZWaveNodeInterface):
411428
"""
412429
Represents an interface to switches and dimmers Commands

0 commit comments

Comments
 (0)