OMR
September 9, 2022, 8:16pm
1
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:
Mimiix
September 9, 2022, 10:17pm
2
Hi can you please report this on the github as a bug?
OMR
September 10, 2022, 12:05am
3
I’ll try to get it pass that evil gatekeeper bot …
1 Like
Mimiix
September 10, 2022, 5:46am
4
As long as you read carefully and stick to the template
OMR
September 10, 2022, 11:05am
5
Made it. Hopefully the bot will not auto close it as I have experienced before …
opened 11:03AM - 10 Sep 22 UTC
Bug report
<!--
- Use this issue template to report a bug in the deCONZ REST-API.
- A… nything that is not clearly a bug can implicate manual closure. For support we recommend the forum: https://forum.phoscon.de
- If you want to report a bug for the Phoscon App, please head over to: https://forum.phoscon.de
- Make sure not to remove any headers and fill the template completely. If you remove the headers, the issue will be auto-closed.
- If you're unsure if the bug fits into this issue tracker, please ask for advise in our Discord chat: https://discord.gg/QFhTxqN
- Please make sure sure you're running the latest version of deCONZ: https://github.com/dresden-elektronik/deconz-rest-plugin/releases
-->
## Describe the bug
All versions after 2.16.1 (including yesterdays 2.18.1) have the Philips HUE Motion-sensor light-sensor Item broken.
None of dark/daylight/lux is longer updated.
Enabling the DDF log and hitting cluster Read produces this:

Seems like a syntax error:
```
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
```
## Steps to reproduce the behavior
This error has been persistent for me since 2.16.1
## Expected behavior
No syntax error in code and the sensor to work.
## Screenshots
See description above
## Environment

- Hostsystem:
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:
- Running method: (Raspbian / Ubuntu / Home Assistent deCONZ Add-on / Marthoc Docker container / Windows / Virtual Machine)
Happens both under systemctl and GUI
- Firmware version: (26xxyy00)
26400500
- deCONZ version: (2.xx.yy)
2.18.1 and all version after 2.16.1
- Device: (ConBee I / ConBee II / RaspBee I / RaspBee II)
ConBee I
- Do you use an USB extension cable: (yes / no) -- only relevant for ConBee I/II
Yes, a powered USB HUB
- Is there any other USB or serial devices connected to the host system? If so: Which?
Yes, the HUB and a Z-Wave stick
## deCONZ Logs
```
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
```
-->
## Additional context
<!--
If relevant, add any other context about the problem here, like network size, number of routers and end-devices
and what kind of devices/brands are in the network.
-->
Network size is ~113 devices, most powered routers
Mix of HUE, Ikea, Aqara, Lumi and Namron (Sunricher)
Also mentioned here:
https://forum.phoscon.de/t/philips-hue-outdoor-light-sensor-broken-since-2-17-0-still-a-problem-on-2-18-1-ddf-syntax-error/2429?u=omr
Mimiix
September 10, 2022, 12:21pm
6
The bot is there to auto remind every time. When it hits notifies, just bump the post.
OMR
September 11, 2022, 12:36pm
7
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 …
2 Likes