Page 1 of 1

Supplied Battery Polling scene not working

Posted: 27 Oct 2012 10:22
by pz1
I have turned to testing scenes and rules now the network appears to be pretty stable. With the installation of my Z-Cloud instance there is a scene Battery Status Polling:

devices = ZWaveAPI.devices
for nodeId in devices.keys():
if devices[nodeId].instances[0].commandClasses.has_key(0x80):
if devices[nodeId].instances[0].commandClasses[0x80].data.last.updated:
devices[nodeId].instances[0].commandClasses[0x80].Get()


If I try to Activate this Scene I get the following error:

Scene activation: Forbidden, Exception executing script ('Data' object has no attribute 'updated')

It seems that the ZwaveAPI has changed since this was distributed. I can't find any clues in the second part of the Z-Way manual how to tackle this (and similar) problems.

Indeed

Posted: 27 Oct 2012 10:22
by PoltoS
We have removed updated flag in favor of (.updateTime > .invalidateTime). This was made to save memory. Thanks for the bug report - we will fix this for future releases.