Closed hogthrob closed 3 years ago
A little digging in your code brought me too:
and I found out that wait is set to 3 when the occupancy messages comes in, for all other messages wait is 1 and thus actually published.
I am not very fluent in JavaScript and the actual code used here I know even less, thus I am not able to easily figure out what is going on, but maybe it helps you to understand the problem better.
As the issue was basically not a difficult one and quite local, I was able to finally see the problem and fix it for me.
Thanks for integrating the PR. Hopefully this fixes also problems others have.
Hi,
My setup: 0.19.0 ( Herdsman version: v0.12.101, Converters version: v12.0.139 ) on Node-RED version: v0.20.6, Node.js version: v10.16.0
My Problem: I have a strange issue: All of my Hue SML001 motion sensor stopped reporting motion/occupancy (they worked initially) via the converter nodes, but continue to report illuminance, temperature and battery level. All events including occupancy are seen by a event node, though.
I traced the issue down to an interesting problem:
If the converter node is set to report each attribute separately, occupancy is reported as wished, if I set it to produce an all in one JSON message, it does the illuminance etc, but not the occupancy.
The report below shows this ( 1e4f8074.a5cdezigbee shows the output of the Event Node, 17b02a18.93f2fezigbee of the plain converter, b4dc6451.adbeczigbee is the JSON converter):