Philips HUE Outdoor light sensor broken since 2.17.0, still a problem on 2.18.1 (DDF syntax error)

Last working version 2.16.1
Just tested on 2.18.1, syntax error in DDF log.
When pressing cluster read:

Item.val = v
R.item('state/dark').val = v <= tholddark
R.item('state/daylight').val = v > tholddark + tholdoffset
R.item('state/lux').val = Math.round(Math.pow(10, (Math.max(0, Math.min(v, 60001)) - 1) / 10000))
, err: SyntaxError: Syntax error

omr@shs2:~$ java --version
openjdk 11.0.16 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu118.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu118.04, mixed mode, sharing)
omr@shs2:~$ uname -a
Linux shs2 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
omr@shs2:~$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 69
model name      : Intel(R) Celeron(R) 2957U @ 1.40GHz
stepping        : 1
microcode       : 0x26
cpu MHz         : 1396.831
cache size      : 2048 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer xsave rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust erms invpcid xsaveopt dtherm arat pln pts md_clear flush_l1d
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips        : 2793.53
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

Hi can you please report this on the github as a bug?

I’ll try to get it pass that evil gatekeeper bot … :wink:

1 Like

As long as you read carefully and stick to the template :sweat_smile:

Made it. Hopefully the bot will not auto close it as I have experienced before … :slight_smile:

The bot is there to auto remind every time. When it hits notifies, just bump the post.

This problem turned out to be an issue with the Qt version in Ubuntu 18.04.0 LTS.
Short term workaround was to remove all ‘const’ in /usr/share/deCONZ/devices/philips/0400_lightlevel.js

Long term: upgrade to Ubuntu 20.04.0 or/then to 22.04.0

If you come from 18.04.0…6 like me and experiences that keyboard and mouse do not work in 20.04.0 login screen, do this from ssh:

"sudo apt-get update --fix-missing"
"sudo apt-get upgrade -y"
"sudo apt-get install -y xserver-xorg-input-all"
"sudo reboot"

And, viola … :slight_smile: