Are decimals possible in webCoRE?


#1

I’ve been fighting with this for quite a few sunsets now.

I’m simply trying to turn on a light when luminance drops below 0.16, although webCoRE doesn’t recognise the decimal.
I’m sure this is possible, if someone can enlighten me I’d be grateful.
I’ve tried creating a decimal/dynamic/anything variable with “0.16” but still nothing is working.


#2

maybe try wrapping it in decimal()?

Seems to return True in the following:


#3

You could also try changing your “AE 3 Garden : luminance” into an expression like so:


#4

Thank you @allrak, both examples look very promising, I’ll report back tomorrow, at sunset!


#5

Are you sure that the device reports lux in decimal? Usually it’s a whole integer where 16 rather than .16 would correspond to fairly dark.

You can check the value that webCoRE gets by following that second screenshot from @allrak. Use the expression editor to check the current value and determine the scale of values reported by the device.


#6

Yes @ipaterson, natively the module I’m using reports luminance in decimals, it’s a custom built zigbee repeater and environment sensor, usb powered, and the light sensor is so sensitive it could even be used as a motion sensor! The example @allrak gave works, and helped me troubleshoot, but there was also some user error on my part, there was a setting within the dth to translate the light sensor reading to something more similar to a Lux value. The trials of cutting edge technology in the wrong hands! :laughing:


#7

The zooz 4 in 1 was the same when the driver was first released, which was the reason I asked you in the other thread lol.