Working on a device driver for a ZigBee sensor that reports illuminance.
When cluster: 0400
reports in a read attr - raw:
message, the value:
data is passed on to this call:
private parseIlluminance(description) {
def illuminInt = Integer.parseInt(description,16)
flux = zigbee.lux(illuminInt)
return [
name: 'illuminance',
value: flux,
unit: 'lux',
isStateChange: true,
descriptionText: "${device.displayName}: Illuminance is ${lux} lux"
]
}
And I get this error:
No signature of method: com.hubitat.zigbee.Zigbee.lux() is applicable for argument types: (java.lang.Integer) values: [129] Possible solutions: off(), on(), dump(), any(), any(groovy.lang.Closure), use([Ljava.lang.Object;) on line 124
I also tried flux = zigbee.lux(illuminInt as Integer)
but no change in the error. The values from Integer.parseInt()
are integer, as seen in the above example error (values: [129]
).
So is zigbee.lux()
not available to use?