Hallo Zusammen,
schade das es hier nicht weiter geht.
Ich hab aus dem node-openzwave-shared mal das test2.js ausprobiert.
Auf der Node CLI kann man damit die Temperaturen ändern, aber den Modus auch nicht.
##Temperatur ändern:
> zwave.setValue(3, 67, 1, 1, 10);
m2018-07-26 11:48:21.803 Info, Node003, Value::Set - COMMAND_CLASS_THERMOSTAT_SETPOINT - - 1 - 1 - 10
2018-07-26 11:48:21.803 Detail, Node003, Setting Encryption Flag on Message For Command Class COMMAND_CLASS_THERMOSTAT_SETPOINT
2018-07-26 11:48:21.804 Detail, Node003, Queuing (Send) ThermostatSetpointCmd_Set (Node=3): 0x01, 0x0c, 0x00, 0x13, 0x03, 0x05, 0x43, 0x01, 0x01, 0x01, 0x0a, 0x25, 0x3d, 0xb6
2018-07-26 11:48:21.804 Detail, Node003, Setting Encryption Flag on Message For Command Class COMMAND_CLASS_THERMOSTAT_SETPOINT
2018-07-26 11:48:21.804 Detail, Node003, Queuing (Send) ThermostatSetpointCmd_Get (Node=3): 0x01, 0x0a, 0x00, 0x13, 0x03, 0x03, 0x43, 0x02, 0x01, 0x25, 0x3e, 0xbd
2018-07-26 11:48:21.804 Detail,
2018-07-26 11:48:21.804 Info, Node003, Processing (Send) Nonce Request message (Callback ID=0x3d, Expected Reply=0x13)
2018-07-26 11:48:21.804 Info, Node003, Sending (Send) message (Callback ID=0x02, Expected Reply=0x13) - Nonce_Get(ThermostatSetpointCmd_Set) - 0x01, 0x09, 0x00, 0x13, 0x03, 0x02, 0x98, 0x40, 0x05, 0x02:
undefined
> m2018-07-26 11:48:21.810 Detail, Node003, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2018-07-26 11:48:21.810 Detail, Node003, ZW_SEND_DATA delivered to Z-Wave stack
2018-07-26 11:48:23.030 Detail, Node003, Received: 0x01, 0x18, 0x00, 0x13, 0x02, 0x00, 0x00, 0x7a, 0x00, 0xbf, 0x7f, 0x7f, 0x7f, 0x7f, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x42, 0x04, 0x00, 0x00, 0x77
2018-07-26 11:48:23.030 Detail, Node003, ZW_SEND_DATA Request with callback ID 0x02 received (expected 0x02)
2018-07-26 11:48:23.030 Info, Node003, Request RTT 1226 Average Request RTT 673
2018-07-26 11:48:23.054 Detail, Node003, Received: 0x01, 0x12, 0x00, 0x04, 0x00, 0x03, 0x0a, 0x98, 0x80, 0x57, 0xce, 0xc8, 0xba, 0x21, 0xa3, 0x49, 0x67, 0xbf, 0x00, 0x00
2018-07-26 11:48:23.055 Info, Node003, Received SecurityCmd_NonceReport from node 3
2018-07-26 11:48:23.055 Info, Node003, Sending (Send) message (Callback ID=0x3f, Expected Reply=0x13) - ThermostatSetpointCmd_Set (Node=3): 0x01, 0x0c, 0x00, 0x13, 0x03, 0x05, 0x43, 0x01, 0x01, 0x01, 0x0a, 0x25, 0x3f, 0xb4
2018-07-26 11:48:23.064 Detail, Node003, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2018-07-26 11:48:23.064 Detail, Node003, ZW_SEND_DATA delivered to Z-Wave stack
2018-07-26 11:48:23.091 Detail, Node003, Received: 0x01, 0x18, 0x00, 0x13, 0x3f, 0x00, 0x00, 0x02, 0x00, 0xbf, 0x7f, 0x7f, 0x7f, 0x7f, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x77
2018-07-26 11:48:23.092 Detail, Node003, ZW_SEND_DATA Request with callback ID 0x3f received (expected 0x3f)
2018-07-26 11:48:23.092 Info, Node003, Request RTT 1288 Average Request RTT 980
2018-07-26 11:48:23.092 Detail, Expected callbackId was received
2018-07-26 11:48:23.092 Detail, Expected reply was received
2018-07-26 11:48:23.093 Detail, Message transaction complete
2018-07-26 11:48:23.093 Detail,
2018-07-26 11:48:23.093 Detail, Node003, Removing current message
2018-07-26 11:48:23.093 Detail,
2018-07-26 11:48:23.094 Info, Node003, Processing (Send) Nonce Request message (Callback ID=0x3e, Expected Reply=0x04)
2018-07-26 11:48:23.094 Info, Node003, Sending (Send) message (Callback ID=0x02, Expected Reply=0x04) - Nonce_Get(ThermostatSetpointCmd_Get) - 0x01, 0x09, 0x00, 0x13, 0x03, 0x02, 0x98, 0x40, 0x05, 0x02:
2018-07-26 11:48:23.099 Detail, Node003, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2018-07-26 11:48:23.099 Detail, Node003, ZW_SEND_DATA delivered to Z-Wave stack
2018-07-26 11:48:23.122 Detail, Node003, Received: 0x01, 0x18, 0x00, 0x13, 0x02, 0x00, 0x00, 0x02, 0x00, 0xbf, 0x7f, 0x7f, 0x7f, 0x7f, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x4a
2018-07-26 11:48:23.122 Detail, Node003, ZW_SEND_DATA Request with callback ID 0x02 received (expected 0x02)
2018-07-26 11:48:23.122 Info, Node003, Request RTT 28 Average Request RTT 504
2018-07-26 11:48:23.146 Detail, Node003, Received: 0x01, 0x12, 0x00, 0x04, 0x00, 0x03, 0x0a, 0x98, 0x80, 0xa9, 0xfe, 0x8b, 0x4b, 0x81, 0x6f, 0xc7, 0x62, 0xbf, 0x00, 0x9b
2018-07-26 11:48:23.147 Info, Node003, Received SecurityCmd_NonceReport from node 3
2018-07-26 11:48:23.147 Info, Node003, Sending (Send) message (Callback ID=0x40, Expected Reply=0x04) - ThermostatSetpointCmd_Get (Node=3): 0x01, 0x0a, 0x00, 0x13, 0x03, 0x03, 0x43, 0x02, 0x01, 0x25, 0x40, 0xc3
2018-07-26 11:48:23.155 Detail, Node003, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2018-07-26 11:48:23.156 Detail, Node003, ZW_SEND_DATA delivered to Z-Wave stack
2018-07-26 11:48:23.182 Detail, Node003, Received: 0x01, 0x18, 0x00, 0x13, 0x40, 0x00, 0x00, 0x03, 0x00, 0xbf, 0x7f, 0x7f, 0x7f, 0x7f, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x09
2018-07-26 11:48:23.183 Detail, Node003, ZW_SEND_DATA Request with callback ID 0x40 received (expected 0x40)
2018-07-26 11:48:23.183 Info, Node003, Request RTT 89 Average Request RTT 296
2018-07-26 11:48:23.183 Detail, Expected callbackId was received
2018-07-26 11:48:23.229 Detail, Node003, Received: 0x01, 0x0a, 0x00, 0x04, 0x00, 0x03, 0x02, 0x98, 0x40, 0xbe, 0x00, 0x96
2018-07-26 11:48:23.229 Info, Node003, Received SecurityCmd_NonceGet from node 3
2018-07-26 11:48:23.229 Info, NONCES: 0xd6, 0xb9, 0x2d, 0x38, 0x7f, 0x1f, 0x23, 0x5c
2018-07-26 11:48:23.229 Info, NONCES: 0x65, 0xa8, 0x9b, 0x42, 0x26, 0x12, 0x1b, 0xa5
2018-07-26 11:48:23.230 Info, NONCES: 0xa8, 0xc3, 0x7c, 0x28, 0xe2, 0xa0, 0x84, 0x35
2018-07-26 11:48:23.230 Info, NONCES: 0x4b, 0x1d, 0xdd, 0xb8, 0x0c, 0x72, 0xfc, 0xb5
2018-07-26 11:48:23.230 Info, NONCES: 0x6a, 0xb2, 0xac, 0xa3, 0x58, 0x2f, 0x9b, 0xa0
2018-07-26 11:48:23.230 Info, NONCES: 0x94, 0x97, 0xaa, 0x49, 0xc6, 0x49, 0x54, 0x30
2018-07-26 11:48:23.230 Info, NONCES: 0xc4, 0xb2, 0x1f, 0xaf, 0x62, 0xc6, 0xf1, 0xea
2018-07-26 11:48:23.230 Info, NONCES: 0x80, 0x93, 0x29, 0x46, 0xdd, 0x7e, 0x76, 0xd9
2018-07-26 11:48:23.230 Info, Node003, Sending (Send) message (Callback ID=0x01, Expected Reply=0x04) - Nonce_Report - 0x01, 0x11, 0x00, 0x13, 0x03, 0x0a, 0x98, 0x80, 0x4b, 0x1d, 0xdd, 0xb8, 0x0c, 0x72, 0xfc, 0xb5, 0x05, 0x01, 0xec:
2018-07-26 11:48:23.237 Detail, Node003, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2018-07-26 11:48:23.237 Detail, Node003, ZW_SEND_DATA delivered to Z-Wave stack
2018-07-26 11:48:23.261 Detail, Node003, Received: 0x01, 0x18, 0x00, 0x13, 0x01, 0x00, 0x00, 0x02, 0x00, 0xbf, 0x7f, 0x7f, 0x7f, 0x7f, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x49
2018-07-26 11:48:23.262 Detail, Node003, ZW_SEND_DATA Request with callback ID 0x01 received (expected 0x01)
2018-07-26 11:48:23.262 Info, Node003, Request RTT 167 Average Request RTT 231
2018-07-26 11:48:23.294 Detail, Node003, Received: 0x01, 0x22, 0x00, 0x04, 0x00, 0x03, 0x1a, 0x98, 0x81, 0x9e, 0xf0, 0xed, 0x15, 0xb2, 0xa1, 0x7a, 0x35, 0xc9, 0xba, 0x36, 0x8d, 0xc8, 0x6d, 0x7f, 0x4b, 0x6a, 0xa7, 0x19, 0x2e, 0x23, 0x80, 0x1a, 0x97, 0xbf, 0x00, 0x21
2018-07-26 11:48:23.295 Info, Raw: 0x98, 0x81, 0x9e, 0xf0, 0xed, 0x15, 0xb2, 0xa1, 0x7a, 0x35, 0xc9, 0xba, 0x36, 0x8d, 0xc8, 0x6d, 0x7f, 0x4b, 0x6a, 0xa7, 0x19, 0x2e, 0x23, 0x80, 0x1a, 0x97, 0xbf
2018-07-26 11:48:23.295 Detail, Node003, Decrypted Packet: 0x00, 0x43, 0x03, 0x01, 0x22, 0x00, 0x64
2018-07-26 11:48:23.295 Detail,
2018-07-26 11:48:23.296 Info, Node003, Response RTT 201 Average Response RTT 205
2018-07-26 11:48:23.296 Detail, Node003, Refreshed Value: old value=11.0, new value=10.0, type=decimal
2018-07-26 11:48:23.296 Detail, Node003, Changes to this value are not verified
2018-07-26 11:48:23.296 Info, Node003, Received thermostat setpoint report: Setpoint = 10.0C
2018-07-26 11:48:23.296 Detail, Node003, Expected reply and command class was received
2018-07-26 11:48:23.297 Detail, Node003, Message transaction complete
2018-07-26 11:48:23.297 Detail,
2018-07-26 11:48:23.297 Detail, Node003, Removing current message
2018-07-26 11:48:23.298 Detail, Node003, Notification: ValueChanged
ode3: changed: 67::11.0->10.0
##Thermostat Mode ändern
> zwave.setValue(3, 64, 1, 0, 1);
undefined
>
Gefühlt passiert dabei überhaupt nix.
Leider fehlen mir die Kenntnisse wie ich das am sinnvollsten debugge…
Kann man das openzwave selbst irgendwie testen ohne iobroker/nodejs modul?
Gruß Linde