Zwave.network_ready not working (0.66.0)

The suggested “Start Homekit after zwave” automation isn’t working for me. It seems like the zwave.network_ready isn’t being recognized.

I can see in the logbook that zwave changed to ready, and in my logs [homeassistant.components.zwave] Z-Wave ready after 2 seconds, but I don’t get the HomeKit persistent notification. (I am stopping hass, removing the .homekit.state file, and restarting.)

- alias: 'Start HomeKit'
  trigger:
    - platform: event
      event_type: zwave.network_ready
  action:
    - service: notify.pushover
      data: 
        title: 'Zwave network ready'
        message: 'Zwave network ready'
    - service: homekit.start

If I manually fire zwave.network_ready, I immediately get the push notification and the HomeKit persistent notification, so I think the automation is set up correctly.

Any ideas why this isn’t working?

1 Like

This works for me, and typically triggers 6 to 7 minutes after HA starts (I have a big Zwave network).

##########################################################
## Zwave Startup 
##########################################################
- alias: Start HomeKit
  initial_state: True

  trigger:
    - platform: event
      event_type: zwave.network_ready
  
  action:
    - service: homekit.start   

    - service: script.notify_engine
      data_template:
        value1: 'ZWave Startup'
        who: "john"

It seems to be an issue with the zwave.network_ready event trigger. I personally don’t have any issues with it. As an alternative the following might work:

- alias: 'Start HomeKit'
  trigger:
    - platform: homeassistant
      event: start
  action:
    - delay: '00:01'  # Delay of 1min
    - service: homekit.start

Adjust the delay until all your devices are properly recognized.

Still have not figured this out. I’m aware I could work around by using a delay, but it would be nice to find out why my zwave.network_ready event doesn’t seem to be triggering.

I’m using the husbzb1, which seems to be working fine, and only have 1 light in the network, which gets detected properly and also works fine.

I’ve tried removing all zwave related config files and starting from scratch, with no difference.

Anybody with a husbzb-1 have this issue with 0.66.0?

I have the same problem with a regular Aeotec z-wave stick. I just created a script to manually start it when home assistant is done booting. Would be nice to know why the event doesn’t trigger though.

I’m on Ubuntu; are you both on Hass.io by chance?

No, in a venv on RPi.

Same issue, Aeotec Zwave stick, Hassio 0.66.1
The following appears in the logs:

Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/openzwave/network.py”, line 946, in zwcallback
self._handle_group(args)
File “/usr/lib/python3.6/site-packages/openzwave/network.py”, line 1112, in _handle_group
**{‘network’: self, ‘node’: self.nodes[args[‘nodeId’]], ‘groupidx’: args[‘groupIdx’]})
KeyError: 4
2018-04-14 09:04:56 ERROR (Dummy-2) [openzwave] Error in manager callback
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/openzwave/network.py”, line 946, in zwcallback
self._handle_group(args)
File “/usr/lib/python3.6/site-packages/openzwave/network.py”, line 1112, in _handle_group
**{‘network’: self, ‘node’: self.nodes[args[‘nodeId’]], ‘groupidx’: args[‘groupIdx’]})
KeyError: 4
2018-04-14 09:04:56 ERROR (Dummy-2) [openzwave] Error in manager callback
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/openzwave/network.py”, line 946, in zwcallback
self._handle_group(args)
File “/usr/lib/python3.6/site-packages/openzwave/network.py”, line 1112, in _handle_group
**{‘network’: self, ‘node’: self.nodes[args[‘nodeId’]], ‘groupidx’: args[‘groupIdx’]})
KeyError: 4

Thanks!

1 Like

@jwelter I see you have a notify_engine script. Can you share that? Looks handy to pass in a msg and a target person to abstract the sending of notifications from each of your automations.

It’s not fancy but works…

notify_ios_engine:
  sequence:
    - condition: state
      entity_id: input_boolean.ios_notifications
      state: 'on'

    - condition: template
      value_template: >-
        {%- if notify is not string -%}{%- set notify = 'on' -%}{%- endif -%}
          {{ notify == 'on' }}

    - service: logbook.log
      data_template:
        name: >-
          NOTIFY: {{ who }}
        message: >-
          {{ message }}

    - service_template: >-
        {%- if who is not string -%}{%- set who = 'john' -%}{%- endif -%}
        {%- if who == 'john' -%}
          notify.mobile_app_johns_iphone
        {%- elif who == 'kim' -%}
          notify.mobile_app_kimberleys_iphone
        {%- elif who == 'family' -%}
          notify.family
        {%- elif who == 'parents' -%}
          notify.parents
        {%- elif who == 'kids' -%}
          notify.kids
        {%- elif who == 'kenzie' -%}
          notify.mobile_app_notify_kenzie
        {%- else -%}
          notify.mobile_app_notify_connor
        {%- endif -%}
      data_template:
        title: "Home Assistant Notify"
        message: >-
          {{ message }}
1 Like