jperkin / node-openzwave

node.js interface to libopenzwave
Other
110 stars 55 forks source link

Sensors not working #40

Open lpw opened 9 years ago

lpw commented 9 years ago

Doesn't seem to work with or support binary (motion) sensors - perhaps related to #33. Works in current C++ API/lib. I'll look into it if I have time, but since node.js isn't a requirement for this project, might just stick with C++.

abalam666 commented 9 years ago

Same problem here too... latest openzwave recompiled with gyp, but I don't know why OZW_Log.txt is showing good detections :

2015-03-22 22:31:18.650 Detail, Node027, Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x1b, 0x03, 0x30, 0x03, 0xff, 0x26 2015-03-22 22:31:18.654 Info, Node027, Received SensorBinary report: Sensor:38 State=On 2015-03-22 22:31:18.656 Detail, Node027, Refreshed Value: old value=true, new value=true, type=bool 2015-03-22 22:31:18.659 Detail, Node027, Changes to this value are verified 2015-03-22 22:31:18.661 Info, Node027, Spurious value change was noted. 2015-03-22 22:31:18.664 Detail, Node027, Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x1b, 0x03, 0x20, 0x01, 0xff, 0x34 2015-03-22 22:31:18.669 Info, Node027, Received Basic set from node 27: level=255. Treating it as a Basic report. 2015-03-22 22:31:49.348 Detail, Node027, Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x1b, 0x03, 0x30, 0x03, 0x00, 0xd9 2015-03-22 22:31:49.353 Info, Node027, Received SensorBinary report: Sensor:217 State=Off 2015-03-22 22:31:49.355 Detail, Node027, Refreshed Value: old value=true, new value=false, type=bool 2015-03-22 22:31:49.358 Detail, Node027, Changes to this value are verified 2015-03-22 22:31:49.359 Info, Node027, Changed value (possible)--rechecking 2015-03-22 22:31:49.366 Detail, Node027, Queuing (WakeUp) SensorBinaryCmd_Get (Node=27): 0x01, 0x09, 0x00, 0x13, 0x1b, 0x02, 0x30, 0x02, 0x25, 0x4d, 0xa6 2015-03-22 22:31:49.369 Detail, Node027, Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x1b, 0x03, 0x20, 0x01, 0x00, 0xcb 2015-03-22 22:31:49.373 Info, Node027, Received Basic set from node 27: level=0. Treating it as a Basic report.

But openzwave.cc does not emit "value changed" to nodejs... Maybe i'm not as good as i thought in C++ ^^ Any help would be appreciated ! Thank you for reading

abalam666 commented 9 years ago

I wonder if the message "rechecking" might be a clue...