Supplied Battery Polling scene not working

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Supplied Battery Polling scene not working

Post 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.
Since 29-12-2016 I am no longer a moderator for this forum
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Indeed

Post 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.
Post Reply