Disable autoconfiguration of devices by Z-Cloud for installations without permanent connection to Z-Cloud
Posted: 20 Apr 2012 19:53
This recipe might not work in recent versions (not checked). Please see new working recipe.By default Z-Cloud does autoconfiguration of all interviewed devices. For example, Z-Cloud adds itself to all Association groups of all devices. It also set up default Wakeup Interval and some other parameters. This is good, but not always.Sometimes user don't want to have a permanent connection to Z-Cloud and use it only to do initial configuration and further changes. In this case autoconfiguration can lead to problems: if you unplug your USB Z-Wave stick, it becomes unreachable to all other devices (remember, they will try to send commands to the stick because it is in Association groups and set as Wakeup node).To disable autoconfiguration you have to edit an XML file on the server side. To do this you have to create a scene (in Network or any other area), save scenes and activate the new scene once. After activating the scene restart Z-Cloud.The scene should contain only the following script:import xml.dom.minidom
configFile = "config/Defaults.xml"
xdata = xml.dom.minidom.parse(configFile)
map(lambda y: xdata.childNodes[0].removeChild(y), filter(lambda (x): x.nodeName == 'Autoconfig', xdata.childNodes[0].childNodes))
a = xdata.createElement('Autoconfig')
a.appendChild(xdata.createTextNode('0'))
xdata.childNodes[0].appendChild(a)
xdata.writexml(open(configFile, "w"))
After being activated, Z-Cloud will not automatically configure devices anymore. Manual configuration is required.To turn autoconfiguration back you have to changexdata.createTextNode('0')toxdata.createTextNode('1')Then activate the scene and restart Z-Cloud again.
configFile = "config/Defaults.xml"
xdata = xml.dom.minidom.parse(configFile)
map(lambda y: xdata.childNodes[0].removeChild(y), filter(lambda (x): x.nodeName == 'Autoconfig', xdata.childNodes[0].childNodes))
a = xdata.createElement('Autoconfig')
a.appendChild(xdata.createTextNode('0'))
xdata.childNodes[0].appendChild(a)
xdata.writexml(open(configFile, "w"))
After being activated, Z-Cloud will not automatically configure devices anymore. Manual configuration is required.To turn autoconfiguration back you have to changexdata.createTextNode('0')toxdata.createTextNode('1')Then activate the scene and restart Z-Cloud again.