0.60.0 or customize broke my zwave config

I was stupid today. I did two things. First I went into my customize.yaml and added the lines necessary to make one of my lights visible to alexa through the hue emulator. I wasn’t to concern since I have about a dozen other lights setup like this, and I just cut and pasted the config lines into the new light, changing names as appropriate.
Then I decided to make use of a rainy day and upgraded to 0.60. I was happy to see some things fixed, but soon I noticed that certain devices were not showing the correct state in the web page, and that they were un-responsive or at best VERY slow (minutes). Most devices I could click on the switch in the web page, and it would immediately go back to where it was and the light wouldn’t do anything.
So after playing with it for a little while, I decided to go back to 0.59.2. That didn’t fix the problem.
I noticed that under the states screen there are a large number of zwave devices with just zwave_## as the name (## is a number but does not correspond to the node number). The correct devices are down there also with the correct names, there are duplicate node numbers between the bogus zwave_## numbers and the correct devices.

I am also getting the following error in the message log. I imagine it is getting this because of the zwave_## devices, but I am unsure how to clean those up, or where they came from in the first place.

2017-12-20 22:34:09 ERROR (Dummy-20) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/pyozwman-0.3.2-py3.4.egg/openzwave/network.py", line 950, in zwcallback
    self._handle_value_changed(args)
  File "/usr/local/lib/python3.4/dist-packages/pyozwman-0.3.2-py3.4.egg/openzwave/network.py", line 1502, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 902, in network_value_changed
    return self.value_changed()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 910, in value_changed
    self._update_attributes()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 928, in _update_attributes
    self.values.power.data, self.values.power.precision)
TypeError: type NoneType doesn't define __round__ method
2017-12-20 22:34:09 ERROR (Dummy-20) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/pyozwman-0.3.2-py3.4.egg/openzwave/network.py", line 950, in zwcallback
    self._handle_value_changed(args)
  File "/usr/local/lib/python3.4/dist-packages/pyozwman-0.3.2-py3.4.egg/openzwave/network.py", line 1502, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 902, in network_value_changed
    return self.value_changed()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 910, in value_changed
    self._update_attributes()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 928, in _update_attributes
    self.values.power.data, self.values.power.precision)
TypeError: type NoneType doesn't define __round__ method
2017-12-20 22:34:09 ERROR (Dummy-20) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/pyozwman-0.3.2-py3.4.egg/openzwave/network.py", line 950, in zwcallback
    self._handle_value_changed(args)
  File "/usr/local/lib/python3.4/dist-packages/pyozwman-0.3.2-py3.4.egg/openzwave/network.py", line 1502, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 902, in network_value_changed
    return self.value_changed()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 910, in value_changed
    self._update_attributes()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 928, in _update_attributes
    self.values.power.data, self.values.power.precision)
TypeError: type NoneType doesn't define __round__ method
2017-12-20 22:34:09 ERROR (Dummy-20) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/pyozwman-0.3.2-py3.4.egg/openzwave/network.py", line 950, in zwcallback
    self._handle_value_changed(args)
  File "/usr/local/lib/python3.4/dist-packages/pyozwman-0.3.2-py3.4.egg/openzwave/network.py", line 1502, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 902, in network_value_changed
    return self.value_changed()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 910, in value_changed
    self._update_attributes()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave/__init__.py", line 928, in _update_attributes
    self.values.power.data, self.values.power.precision)
TypeError: type NoneType doesn't define __round__ method

The following is in my OZW log today. This is just the information on node 74

2017-12-21 09:43:57.969 Detail, Node074,   Received: 0x01, 0x14, 0x00, 0x04, 0x00, 0x4a, 0x0e, 0x32, 0x02, 0x21, 0x44, 0x00, 0x00, 0x05, 0xfe, 0x00, 0xeb, 0x00, 0x00, 0x05, 0xfd, 0x16
2017-12-21 09:43:57.970 Detail, 
2017-12-21 09:43:57.970 Detail, Node074, Refreshed Value: old value=false, new value=false, type=bool
2017-12-21 09:43:57.970 Detail, Node074, Changes to this value are not verified
2017-12-21 09:43:57.970 Info, Node074, Received Meter report from node 74: Energy=15.34kWh
2017-12-21 09:43:57.970 Detail, Node074, Refreshed Value: old value=15.33, new value=15.34, type=decimal
2017-12-21 09:43:57.971 Detail, Node074, Changes to this value are not verified
2017-12-21 09:43:57.971 Info, Node074,     Previous value was 15.33kWh, received 235 seconds ago.
2017-12-21 09:43:57.971 Detail, Node074, Refreshed Value: old value=15.33, new value=15.33, type=decimal
2017-12-21 09:43:57.971 Detail, Node074, Changes to this value are not verified
2017-12-21 09:43:57.971 Detail, Node074, Refreshed Value: old value=91, new value=235, type=int
2017-12-21 09:43:57.971 Detail, Node074, Changes to this value are not verified
2017-12-21 09:43:57.972 Detail, Node074, Notification: ValueChanged
2017-12-21 09:43:57.973 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:57.974 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:57.992 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:57.993 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:57.993 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:57.993 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:57.998 Detail, Node074, Notification: ValueChanged
2017-12-21 09:43:58.000 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.000 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.018 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.019 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.019 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.019 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.023 Detail, Node074, Notification: ValueChanged
2017-12-21 09:43:58.025 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.025 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.043 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.043 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.044 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.044 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.048 Detail, Node074, Notification: ValueChanged
2017-12-21 09:43:58.050 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.050 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.068 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.069 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.069 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.069 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.092 Detail, Node074,   Received: 0x01, 0x14, 0x00, 0x04, 0x04, 0x4a, 0x0e, 0x32, 0x02, 0x21, 0x44, 0x00, 0x00, 0x05, 0xfe, 0x00, 0xeb, 0x00, 0x00, 0x05, 0xfd, 0x12
2017-12-21 09:43:58.092 Detail, 
2017-12-21 09:43:58.092 Detail, Node074, Refreshed Value: old value=false, new value=false, type=bool
2017-12-21 09:43:58.092 Detail, Node074, Changes to this value are not verified
2017-12-21 09:43:58.093 Info, Node074, Received Meter report from node 74: Energy=15.34kWh
2017-12-21 09:43:58.093 Detail, Node074, Refreshed Value: old value=15.34, new value=15.34, type=decimal
2017-12-21 09:43:58.093 Detail, Node074, Changes to this value are not verified
2017-12-21 09:43:58.093 Info, Node074,     Previous value was 15.33kWh, received 235 seconds ago.
2017-12-21 09:43:58.093 Detail, Node074, Refreshed Value: old value=15.33, new value=15.33, type=decimal
2017-12-21 09:43:58.094 Detail, Node074, Changes to this value are not verified
2017-12-21 09:43:58.094 Detail, Node074, Refreshed Value: old value=235, new value=235, type=int
2017-12-21 09:43:58.094 Detail, Node074, Changes to this value are not verified
2017-12-21 09:43:58.094 Detail, Node074, Notification: ValueChanged
2017-12-21 09:43:58.099 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.099 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.150 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.150 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.150 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.151 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.158 Detail, Node074, Notification: ValueChanged
2017-12-21 09:43:58.160 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.161 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.182 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.182 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.182 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.182 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.186 Detail, Node074, Notification: ValueChanged
2017-12-21 09:43:58.188 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.188 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.207 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.207 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.207 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.207 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.211 Detail, Node074, Notification: ValueChanged
2017-12-21 09:43:58.213 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.213 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.232 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.232 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver
2017-12-21 09:43:58.233 Error, mgr,     Manager::GetDriver failed - Home ID 0xcf23f523 is unknown
2017-12-21 09:43:58.233 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver

and on and on

At this point, I am going to go to sleep and attack this again in the morning. Any help would be appreciated.
Thanks

I think it is quite extraordinary that you can tell the days you were stupid. I find the only days that stand out for me are the ones where I think I wasn’t stupid.

somedays I’m more stupid than others.

Do you have a copy of your most recent “good” ozw config xml file?

If so try moving that over to your new version. You’ll have to stop home assistant then copy it over.

Then you will have to change ownership to the homeassistant user.

I had a similar thing happen upgrading from 0.56 to 0.59.

1 Like

Depending on how many devices you have and if you renamed them all, the simplest fix may be to archive your zwcfg file, and let it be regenerated from scratch. Then rename your nodes if you used custom names.

(You would not want to do this if you’d played any tricky games with hand editing this file. But that should be unusual.)

I have about 60 devices all renamed. I just restored from my backup from last sunday and I’m back in working order for the most part. Any idea about what caused the duplication of the devices?

Like I said above…

Try saving your zwcfg_xxxx_xxxx.XML file from your good setup, do the upgrade then if you have problems copy the saved file to your .homeassistant directory.

Change owner and hopefully you will be OK.

Might not be it but its worth a shot. If it doesn’t work then just restore your backup.

It worked for me when I had naming issues after an upgrade to 0.59