Z-Wave workaround - Connected to the timeout to the configured node value "9. Turn Off Light Time"

This commit is contained in:
Stefan Jonasson 2015-10-31 21:23:33 +01:00
parent 2ad647bb09
commit cae8932b18
2 changed files with 26 additions and 7 deletions

View file

@ -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.