From 8ba9c73f9f1f0d6feff866674793996b198669f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Osb=C3=A4ck?= Date: Tue, 30 Jan 2018 14:15:59 +0100 Subject: [PATCH 1/3] update python-openzwave to 4.1.0 --- homeassistant/components/zwave/__init__.py | 2 +- requirements_all.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/zwave/__init__.py b/homeassistant/components/zwave/__init__.py index 10942de8097b65..6fb052d081b085 100644 --- a/homeassistant/components/zwave/__init__.py +++ b/homeassistant/components/zwave/__init__.py @@ -33,7 +33,7 @@ from .discovery_schemas import DISCOVERY_SCHEMAS from .util import check_node_schema, check_value_schema, node_name -REQUIREMENTS = ['pydispatcher==2.0.5', 'python_openzwave==0.4.0.35'] +REQUIREMENTS = ['pydispatcher==2.0.5', 'python_openzwave==0.4.1'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index 93fa176bb635bd..90ca27cde058da 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -963,7 +963,7 @@ python-wink==1.7.3 python_opendata_transport==0.0.3 # homeassistant.components.zwave -python_openzwave==0.4.0.35 +python_openzwave==0.4.1 # homeassistant.components.alarm_control_panel.egardia pythonegardia==1.0.26 From 20523c7ebaedf088da2541d1500a7ad954602019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Osb=C3=A4ck?= Date: Tue, 30 Jan 2018 18:06:46 +0100 Subject: [PATCH 2/3] add service which updates the configuration files from github --- homeassistant/components/zwave/__init__.py | 7 +++++++ homeassistant/components/zwave/const.py | 1 + homeassistant/components/zwave/services.yaml | 3 +++ 3 files changed, 11 insertions(+) diff --git a/homeassistant/components/zwave/__init__.py b/homeassistant/components/zwave/__init__.py index 6fb052d081b085..bbd1cc6328c8d5 100644 --- a/homeassistant/components/zwave/__init__.py +++ b/homeassistant/components/zwave/__init__.py @@ -394,6 +394,11 @@ def soft_reset(service): _LOGGER.info("Z-Wave soft_reset have been initialized") network.controller.soft_reset() + def update_config(service): + """Update the config from git.""" + _LOGGER.info("Configuration update has been initialized") + network.controller.update_ozw_config() + def test_network(service): """Test the network by sending commands to all the nodes.""" _LOGGER.info("Z-Wave test_network have been initialized") @@ -646,6 +651,8 @@ def _finalize_start(): hass.services.register(DOMAIN, const.SERVICE_HEAL_NETWORK, heal_network) hass.services.register(DOMAIN, const.SERVICE_SOFT_RESET, soft_reset) + hass.services.register(DOMAIN, const.SERVICE_UPDATE_CONFIG, + update_config) hass.services.register(DOMAIN, const.SERVICE_TEST_NETWORK, test_network) hass.services.register(DOMAIN, const.SERVICE_STOP_NETWORK, diff --git a/homeassistant/components/zwave/const.py b/homeassistant/components/zwave/const.py index e2524aefadfd1f..1703870ffa19b6 100644 --- a/homeassistant/components/zwave/const.py +++ b/homeassistant/components/zwave/const.py @@ -52,6 +52,7 @@ SERVICE_REFRESH_ENTITY = "refresh_entity" SERVICE_REFRESH_NODE = "refresh_node" SERVICE_RESET_NODE_METERS = "reset_node_meters" +SERVICE_UPDATE_CONFIG = "update_config" EVENT_SCENE_ACTIVATED = "zwave.scene_activated" EVENT_NODE_EVENT = "zwave.node_event" diff --git a/homeassistant/components/zwave/services.yaml b/homeassistant/components/zwave/services.yaml index 61855143d59b45..1762c33237d074 100644 --- a/homeassistant/components/zwave/services.yaml +++ b/homeassistant/components/zwave/services.yaml @@ -119,6 +119,9 @@ set_wakeup: value: description: Value of the interval to set. (integer) +update_config: + description: Attempt to update ozw configuration files from git to support newer devices. + start_network: description: Start the Z-Wave network. This might take a while, depending on how big your Z-Wave network is. From 5e209bb7ad143d8168bf9e6f41b7b242d6b18c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Osb=C3=A4ck?= Date: Fri, 2 Feb 2018 23:30:06 +0100 Subject: [PATCH 3/3] 0.4.3 --- homeassistant/components/zwave/__init__.py | 2 +- requirements_all.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/zwave/__init__.py b/homeassistant/components/zwave/__init__.py index 6fb052d081b085..27bd2a02d52804 100644 --- a/homeassistant/components/zwave/__init__.py +++ b/homeassistant/components/zwave/__init__.py @@ -33,7 +33,7 @@ from .discovery_schemas import DISCOVERY_SCHEMAS from .util import check_node_schema, check_value_schema, node_name -REQUIREMENTS = ['pydispatcher==2.0.5', 'python_openzwave==0.4.1'] +REQUIREMENTS = ['pydispatcher==2.0.5', 'python_openzwave==0.4.3'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index 90ca27cde058da..a7289fda70e36a 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -963,7 +963,7 @@ python-wink==1.7.3 python_opendata_transport==0.0.3 # homeassistant.components.zwave -python_openzwave==0.4.1 +python_openzwave==0.4.3 # homeassistant.components.alarm_control_panel.egardia pythonegardia==1.0.26