@Mariusthvdb, you were right. The first way of delay wasn’t working. No errors, it just didn’t fire. So I tried your way, and it works the first time:
- id: '1535832688944'
alias: Fikse døde noder
trigger:
platform: homeassistant
event: start
action:
- delay:
minutes: 2
- service: zwave.test_network
- delay:
minutes: 3
- service: zwave.test_network
- delay:
minutes: 4
- service: zwave.test_network
- delay:
minutes: 5
- service: zwave.test_network
- delay:
minutes: 6
- service: zwave.test_network
- delay:
minutes: 7
- service: zwave.test_network
- delay:
minutes: 8
- service: zwave.test_network
But it doesn’t work any of the other times. Maybe that’s because it’s not erroring out in the same way as other, too early calls to zwave services do. With those I get:
Error while executing automation automation.termostater_til_5_grader. Service not found for call_service at pos 1: Unable to find service zwave/set_config_parameter
With the test command ran by the delay I instead get this mess:
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/script.py”, line 131, in async_run
await self._handle_action(action, variables, context)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/script.py”, line 210, in _handle_action
action, variables, context)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/script.py”, line 299, in _async_call_service
context=context
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/service.py”, line 89, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py”, line 1127, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service zwave/test_network
But if I trigger the same test command with MQTT I get:
Error while executing automation automation.fikse_dode_noder. Service not found for call_service at pos 1: Unable to find service zwave/test_network
And I have no idea why that is so different. Also, maybe the best way would be to retry the test until it actually works, if that’s possible? With my way I may run the test 3-4 times when the service is available if the startup of my Z-Wave network comes up faster.