python_openzwave update config service (#12060)
* update python-openzwave to 4.1.0 * add service which updates the configuration files from github * 0.4.3
This commit is contained in:
parent
b66be59598
commit
351e8921fa
3 changed files with 11 additions and 0 deletions
|
@ -359,6 +359,11 @@ def setup(hass, config):
|
|||
_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")
|
||||
|
@ -616,6 +621,8 @@ def setup(hass, config):
|
|||
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,
|
||||
|
|
|
@ -51,6 +51,7 @@ SERVICE_RENAME_VALUE = "rename_value"
|
|||
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"
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue