Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion homeassistant/components/zwave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.3']

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/zwave/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/zwave/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.3

# homeassistant.components.alarm_control_panel.egardia
pythonegardia==1.0.26
Expand Down