Z-Wave workaround - Connected to the timeout to the configured node value "9. Turn Off Light Time"
This commit is contained in:
parent
2ad647bb09
commit
cae8932b18
2 changed files with 26 additions and 7 deletions
|
@ -58,6 +58,15 @@ def nice_print_node(node):
|
|||
print("\n\n\n")
|
||||
|
||||
|
||||
def get_config_value(node, value_index):
|
||||
""" Returns the current config value for a specific index """
|
||||
|
||||
for _, value in node.values.items():
|
||||
# 112 == config command class
|
||||
if value.command_class == 112 and value.index == value_index:
|
||||
return value.data
|
||||
|
||||
|
||||
def setup(hass, config):
|
||||
"""
|
||||
Setup Z-wave.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue