Pretty much every time I restart home assistant there’s a few zwave nodes (Zooz) that just don’t want to play nice (marked dead, usually with “CacheLoad”). I can fix this easy enough by going to the zwave configuration screen and manually clicking “test node” on each of them, but I want it automated.
I created an automation that should just fix them whenever they’re dead. Didn’t work.
I created an automation that tries running the service call at startup. Didn’t work.
I tried a script that only tries to call zwave.test_node
for a single node. Didn’t work.
I keep getting the same error: 'Service zwave.test_node not found'
Has anyone come across this issue before?
Relevant parts of my config file:
automation:
- id: on_hass_startup
alias: 'On HA startup ...'
trigger:
platform: homeassistant
# Event can also be 'shutdown'
event: start
action:
- service: zwave.test_node
data:
node_id: 12
- service: zwave.test_node
data:
node_id: 13
- id: fix_dead_zwave_nodes
alias: "Fix dead zwave nodes"
trigger:
- platform: state
entity_id: zwave.dining_room
to: 'dead'
for:
minutes: 1
- platform: state
entity_id: zwave.kitchen_dimmer
to: 'dead'
for:
minutes: 1
action:
- service: zwave.test_node
data_template:
node_id: '{{trigger.to_state.attributes.node_id}}'
script:
fix_dead_zwave_nodes_12:
alias: "Fix dead zwave nodes - 12"
sequence:
- service: zwave.test_node
data:
node_id: 12
fix_dead_zwave_nodes_13:
alias: "Fix dead zwave nodes - 13"
sequence:
- service: zwave.test_node
data:
node_id: 13
Log for failed automations:
2019-01-30 08:38:21 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.on_ha_startup. Service not found for call_service at pos 1: (ServiceNotFound(...), 'Service zwave.test_node not found')
2019-01-30 08:40:27 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.fix_zwave. Service not found for call_service at pos 1: (ServiceNotFound(...), 'Service zwave.test_node not found')
Log for failed script:
2019-01-30 09:54:54 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall script.fix_dead_zwave_nodes_13 (c:54ae76f7cad94d56934299e72e4d4f6c)>
Traceback (most recent call last):
File "/usr/src/app/homeassistant/core.py", line 1138, in _safe_execute
await self._execute_service(handler, service_call)
File "/usr/src/app/homeassistant/core.py", line 1151, in _execute_service
await handler.func(service_call)
File "/usr/src/app/homeassistant/components/script.py", line 123, in service_handler
context=service.context)
File "/usr/src/app/homeassistant/components/script.py", line 181, in async_turn_on
kwargs.get(ATTR_VARIABLES), context)
File "/usr/src/app/homeassistant/helpers/script.py", line 131, in async_run
await self._handle_action(action, variables, context)
File "/usr/src/app/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/src/app/homeassistant/helpers/script.py", line 299, in _async_call_service
context=context
File "/usr/src/app/homeassistant/helpers/service.py", line 85, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File "/usr/src/app/homeassistant/core.py", line 1106, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service zwave.test_node not found')