Bug #229

PresentValue attribute Reporting in Analog Input Cluster not working as expected.

Added by Fabio Mavilia about 4 years ago. Updated over 3 years ago.

Status:Closed Start date:07/09/2014
Priority:Low Due date:
Assignee:Stefano Lenzi % Done:

100%

Category:zigbee.zcl.library Spent time: -
Target version:org.aaloa.zb4osgi.zigbee.zcl.library-0.9.0
Has a patch:No Has license agreement signed:No

Description

PresentValue attribute Reporting in Analog Input Cluster not working as expected.
"Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentExpeption:No reader defined by this ZBDserializer for SinglePrecision" is raised when reporting PresentValue attribute.


Subtasks

Bug #246: Clash of PresentValue attribute in case of Binary Input a...ClosedStefano Lenzi

Bug #247: PresentValueEvent, PresentValueBridgeListeners and Presen...ClosedStefano Lenzi

Associated revisions

Revision 898
Added by Giancarlo Riolo about 4 years ago

Added SinglePrecision Serializer. Preparations for refs #229

Revision 1033
Added by Stefano Lenzi over 3 years ago

Created two PRESENT_VALUE attribute analog and boolean for specific clusters, added test unit for catch further issues (refs #229)

Revision 1034
Added by Stefano Lenzi over 3 years ago

Created two different bridge each one specific for the type of data: Binary and Analog respectively for BinaryInput and AnalogInput clusters (refs #229)

Revision 1035
Added by Stefano Lenzi over 3 years ago

Adding missing files since last commit
See comment for r1034 ( refs #229 )

Revision 1036
Added by Stefano Lenzi over 3 years ago

Changed the name of class ( refs #229, refs #247 )

History

#1 Updated by Giancarlo Riolo about 4 years ago

  • Status changed from New to Resolved

Commit refs #900. PresentValue (SinglePrecision) Reporting works as expected.

#2 Updated by Giancarlo Riolo about 4 years ago

Giancarlo Riolo wrote:

Commit rev #900. PresentValue (SinglePrecision) Reporting works as expected.

#3 Updated by Giancarlo Riolo over 3 years ago

  • Status changed from Resolved to Closed

#4 Updated by Han Alink over 3 years ago

  • Status changed from Closed to Reopen

As a result of these changes, subscribing to the SimpleSensor device is no longer possible, as the SimpleSensor (DeviceId 0x000C), only supports the "Binary Input (Basic)" cluster (ClusterId 0x000F).

From the HA spec:

7.3.13 Simple Sensor
The Simple Sensor is a Simple Sensor only supporting a binary input. Examples
of usage are window magnet contacts and other simple on/off devices that has no
“active” function but only can report their status.

#5 Updated by Stefano Lenzi over 3 years ago

  • Status changed from Reopen to Feedback
  • Assignee changed from Giancarlo Riolo to Stefano Lenzi

Han what do you mean that you cannot subscribe anymore? You can use AnalogInput.subscribe(PresentValueListener listener) for subscribing to the values or you can do it manually by AnalogInput.getAttribute(0x0055).getSubscription().addReportListener(ReportListener listener)

What is not working for you?

#6 Updated by Han Alink over 3 years ago

Stefano,
The device with DeviceId = 0x000C, is not capable of measuring analog values. It is a binary sensor. So it does not support subscription to analog values.

#7 Updated by Stefano Lenzi over 3 years ago

  • Status changed from Feedback to In Progress

Okay I got the point, I'm fixing it!

#8 Updated by Stefano Lenzi over 3 years ago

  • Status changed from In Progress to Resolved
I have fixed the issue but the all the classes:
  • PresentValueEvent
  • PresentValueBridgeListeners
  • PresentValueListener

are deprecated and no more available in zigbee.ha.driver-0.9.0-SNAPSHOT and all the legacy code MUST be adapted (it is just a matter of using the new classes because the interface has not changed)
Please let me know if you agree on that or you want the old class back representing the BinaryInput

#9 Updated by Han Alink over 3 years ago

As far as I'm concerned you can close the ticket.

#10 Updated by Stefano Lenzi over 3 years ago

  • Status changed from Resolved to Closed
  • Target version set to org.aaloa.zb4osgi.zigbee.zcl.library-0.9.0

Also available in: Atom PDF