RESOLVED: SCALE_LUX results in percentage display

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
ftrueck
Posts: 41
Joined: 24 Dec 2015 23:46

RESOLVED: SCALE_LUX results in percentage display

Post by ftrueck »

Hi,
I've setup a channel for luminance (BH1750):

Code: Select all

  ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_LUMINANCE,
                          SENSOR_MULTILEVEL_SCALE_LUX,  
                          SENSOR_MULTILEVEL_SIZE_TWO_BYTES, 
                          SENSOR_MULTILEVEL_PRECISION_ZERO_DECIMALS, 
                          getterLight)
It results in a sensor device with percentage scale on razberry web ui:
bh1750.PNG
bh1750.PNG (22.58 KiB) Viewed 7583 times
What went wrong? I've used the example provided for BH1750 and this is what I get.

Could someone point me in the right direction?

Regards,
Florian
Last edited by ftrueck on 17 Oct 2016 13:28, edited 1 time in total.
A.Harrenberg
Posts: 201
Joined: 05 Sep 2016 22:27

Re: SENSOR_MULTILEVEL_SCALE_LUX results in percentage displa

Post by A.Harrenberg »

Hi,

this seems to be an issue in the RazBerry system...

According the header file from the Z-Uno the scale is defined as 0x01

Code: Select all

#define SENSOR_MULTILEVEL_SCALE_LUX		0x01
And that is what is defined also in the ZWave-specification (SDS12657-12-Z-Wave-Command-Class-Specification-A-M.pdf, page 508). So if there is no very wierd bug in the zuno-code I would point that toward the RazBerry (Z-Way)...

Regards,
Andreas.
fhem.de - ZWave development support
michap
Posts: 437
Joined: 26 Mar 2013 10:35
Contact:

Re: SENSOR_MULTILEVEL_SCALE_LUX results in percentage displa

Post by michap »

With OpenZwave it is working fine.

Are you using latest Z-Uno firmware and Z-Way version?

Michael
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: SENSOR_MULTILEVEL_SCALE_LUX results in percentage displa

Post by PoltoS »

I remeber we have fixed wrong scales in Z-Way recently. What version are you using?
ftrueck
Posts: 41
Joined: 24 Dec 2015 23:46

Re: SENSOR_MULTILEVEL_SCALE_LUX results in percentage displa

Post by ftrueck »

My current razberry version is 2.2.3
Z-Uno version is 2.0.6

I was not sure if it is a bug in razberry, because I have fibaro multi sensor which reports also light in lux which is correctly displayed in UI.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: SENSOR_MULTILEVEL_SCALE_LUX results in percentage displa

Post by PoltoS »

Please show the log line with RECIEVED that comes from Z-Uno with the luminance settings
michap
Posts: 437
Joined: 26 Mar 2013 10:35
Contact:

Re: SENSOR_MULTILEVEL_SCALE_LUX results in percentage displa

Post by michap »

Just have tested with Z-Way installation 2.2.3 and Z-Uno 2.0.6.

it is working as expected - I see the lux values.

Maybe you have used the Z-Uno before with other sketch - and forgot to exclude the Z-Uno before use new sketch / function?
If you overwrite the sketch without excluding the Z-Uno (if you are changing the device definition) - it can give similar effects.

Please try to exclude the device - and then include it again.

Michael
ftrueck
Posts: 41
Joined: 24 Dec 2015 23:46

Re: SENSOR_MULTILEVEL_SCALE_LUX results in percentage displa

Post by ftrueck »

WOW! Cool! Thanks for the hint with reincluding. That helped. :-)
Post Reply