Send SensorMultilevel unsolicited from controller

Discussions about Z-Way software and Z-Wave technology in general
John Smith
Posts: 13
Joined: 23 Sep 2018 17:52

Re: Send SensorMultilevel unsolicited from controller

Post by John Smith »

Changed 22 to 42, here are the logs. Can't decode RECEIVED, will see how it will work.

First line is the module console.log debug output to check hex numbers.

Code: Select all

[2018-12-13 21:07:09.542] [I] [core] [SME] 2450 : 09 92
[2018-12-13 21:07:09.542] [I] [zway] Adding job: SensorMultilevel
[2018-12-13 21:07:09.543] [I] [zway] Adding job: SensorMultilevel
[2018-12-13 21:07:09.543] [I] [zway] Adding job: SensorMultilevel
[2018-12-13 21:07:09.548] [D] [zway] SENDING (cb 0x6a): ( 01 0D 00 13 2E 06 31 05 01 42 09 92 05 6A 4A )
[2018-12-13 21:07:09.550] [D] [zway] RECEIVED ACK
[2018-12-13 21:07:09.553] [D] [zway] RECEIVED: ( 01 04 01 13 01 E8 )
[2018-12-13 21:07:09.554] [D] [zway] SENT ACK
[2018-12-13 21:07:09.554] [D] [zway] Delivered to Z-Wave stack
[2018-12-13 21:07:09.604] [I] [core] [BaseModule-17] Set lastLevel to 24.5 for ZWayVDev_zway_43-0-49-1 (was 24.4)
[2018-12-13 21:07:09.671] [I] [core] [BaseModule-17] Set lastLevel to 24.5 for SensorMirrorExt_10 (was 24.4)
[2018-12-13 21:07:11.029] [D] [zway] RECEIVED: ( 01 18 00 13 6A 00 00 93 02 BF 7F 7F 7F 7F 00 01 03 14 18 00 00 02 02 18 2E 88 )
[2018-12-13 21:07:11.030] [D] [zway] SENT ACK
[2018-12-13 21:07:11.030] [I] [zway] Job 0x13 (SensorMultilevel): Delivered
[2018-12-13 21:07:11.031] [D] [zway] SendData Response with callback 0x6a received: received by recipient
[2018-12-13 21:07:11.031] [D] [zway] SETDATA devices.46.data.lastSendInternal = **********
[2018-12-13 21:07:11.031] [D] [zway] SETDATA devices.46.data.lastSend = 202981 (0x000318e5)
[2018-12-13 21:07:11.031] [D] [zway] Job 0x13 (SensorMultilevel): success
[2018-12-13 21:07:11.031] [I] [zway] Removing job: SensorMultilevel
[2018-12-13 21:07:11.032] [D] [zway] SENDING (cb 0x6b): ( 01 0D 00 13 2F 06 31 05 01 42 09 92 05 6B 4A )
[2018-12-13 21:07:11.039] [D] [zway] RECEIVED ACK
[2018-12-13 21:07:11.039] [D] [zway] RECEIVED: ( 01 04 01 13 01 E8 )
[2018-12-13 21:07:11.040] [D] [zway] SENT ACK
[2018-12-13 21:07:11.040] [D] [zway] Delivered to Z-Wave stack
[2018-12-13 21:07:12.609] [D] [zway] RECEIVED: ( 01 18 00 13 6B 00 00 9C 02 C9 7F 7F 7F 7F 00 01 03 18 02 00 00 02 02 02 2F FD )
[2018-12-13 21:07:12.609] [D] [zway] SENT ACK
[2018-12-13 21:07:12.609] [I] [zway] Job 0x13 (SensorMultilevel): Delivered
John Smith
Posts: 13
Joined: 23 Sep 2018 17:52

Re: Send SensorMultilevel unsolicited from controller

Post by John Smith »

dupe
John Smith
Posts: 13
Joined: 23 Sep 2018 17:52

Re: Send SensorMultilevel unsolicited from controller

Post by John Smith »

PoltoS wrote:
08 Dec 2018 23:46
Have you made progress? Would be cool to have a module for this. We can help to suggest you the correct logic and do code revision. Or even help with writing it (but we lack of time)
Updated repository. Looks like it works. Checked on two group of devices.

https://github.com/alex-parkhomenko/SensorMirrorExt
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Send SensorMultilevel unsolicited from controller

Post by PoltoS »

I meanwhile did a similar module, but have not tested it yet - no Spirit iny hands.

May be someone can test it ?

http://developer.z-wave.me/?uri=public#/web/apps/467
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Send SensorMultilevel unsolicited from controller

Post by PoltoS »

The app was updated. Should work better now. Anybody tested it?
ridewithstyle
Posts: 155
Joined: 02 Jan 2016 01:20

Re: Send SensorMultilevel unsolicited from controller

Post by ridewithstyle »

Hi there, sorry I missed this somehow. :-/

Already testing it in one room as I type this. I had target value of 22,5 degrees and measured value of 22,4 degrees. Then I used the math module with a temperature of temperature minus offset and assigned the spirit and waited. Everything kept being stable. Then I updated the spirit parameter byte 8 to 0x80 and almost instantly the valve was being openend. Now I am waiting at what temperature will settle at, will keep you updated.

Best Regards,
rws
ridewithstyle
Posts: 155
Joined: 02 Jan 2016 01:20

Re: Send SensorMultilevel unsolicited from controller

Post by ridewithstyle »

ok, so somethings not yet working properly. The Spirit will not shut off, no matter what temperature is reached. Even if operation mode on/off is set to off you can hear the valve closing for a short time, but one minute later it is being opened again, in spite of the display showing OFF. Will run some debug cycles, but this will take time

regards,
rws
ridewithstyle
Posts: 155
Joined: 02 Jan 2016 01:20

Re: Send SensorMultilevel unsolicited from controller

Post by ridewithstyle »

Hi there,

I can see this in my log

[2019-01-23 13:29:43.948] [zway] Adding job: Security
[2019-01-23 13:29:43.949] [D] [zway] SENDING (cb 0xfb): ( 01 1F 00 13 41 18 98 81 6C EE 44 15 9F D1 6E 05 6F D4 1D 1B CA D6 01 17 44 7E 03 6F AE 0F 05 FB FB )
[2019-01-23 13:29:43.949] [D] [zway] Secure payload: ( 31 05 E0 FF )

according to previous comments, this should be

[0x31,0x05,0x01,0x42/0x22,hex-coded temperature]

@PoltoS is it possible that something got mangled in building the payload? Or am I missing sth here?

Regards,
rws
ridewithstyle
Posts: 155
Joined: 02 Jan 2016 01:20

Re: Send SensorMultilevel unsolicited from controller

Post by ridewithstyle »

tracked down a full cycle of the spirit reporting a temperature report and PoltoS' app looping it back to the spirit

Code: Select all

[2019-01-23 14:39:42.346] [I] [zway] Node 65:0 CC Security: Received a secure message
[2019-01-23 14:39:42.347] [D] [zway] SETDATA devices.65.instances.0.commandClasses.152.data.firstPart = **********
[2019-01-23 14:39:42.347] [I] [zway] Node 65:0 CC Security: passing decrypted packet to application level: [ 31 05 01 42 08 6e ]
[2019-01-23 14:39:42.347] [D] [zway] SETDATA devices.65.instances.0.commandClasses.49.data.1.deviceScale = 0 (0x00000000)
[2019-01-23 14:39:42.350] [D] [zway] SETDATA devices.65.instances.0.commandClasses.49.data.1.scaleString = "°C"
[2019-01-23 14:39:42.350] [D] [zway] SETDATA devices.65.instances.0.commandClasses.49.data.1.val = 21.580000
[2019-01-23 14:39:42.350] [D] [zway] SETDATA devices.65.instances.0.commandClasses.49.data.1 = Empty
[2019-01-23 14:39:42.464] [I] [core] Notification: device-info (device-temperature): {"dev":"Torsten Thermostat Temperatur IST","l":"21.6 °C","location":7}
[2019-01-23 14:39:42.480] [I] [core] Notification: device-info (device-heating): {"dev":"Torsten Raumtemperatur","l":"21.6 °C","location":7}
[2019-01-23 14:39:43.269] [I] [zway] Adding job: SensorMultilevel
[2019-01-23 14:39:43.279] [I] [zway] Node 65:0 CC Security: sending Nonce Get
[2019-01-23 14:39:43.279] [D] [zway] SETDATA devices.65.instances.0.commandClasses.152.data.rNonceAckWait = **********
[2019-01-23 14:39:43.280] [I] [zway] Adding job: Nonce Get
[2019-01-23 14:39:43.280] [D] [zway] SETDATA devices.65.data.lastNonceGet = 8742285 (0x0085658d)
[2019-01-23 14:39:43.290] [D] [zway] SENDING (cb 0xc4): ( 01 09 00 13 41 02 98 40 05 C4 BF )
[2019-01-23 14:39:43.292] [D] [zway] RECEIVED ACK
[2019-01-23 14:39:43.296] [D] [zway] RECEIVED: ( 01 04 01 13 01 E8 )
[2019-01-23 14:39:43.296] [D] [zway] SENT ACK
[2019-01-23 14:39:43.296] [D] [zway] Delivered to Z-Wave stack
[2019-01-23 14:39:43.377] [I] [core] [BaseModule-112] Set lastLevel to 21.58 for ZWayVDev_zway_65-0-49-1 (was 21.67)
[2019-01-23 14:39:43.385] [D] [zway] RECEIVED: ( 01 07 00 13 C4 00 00 08 27 )
[2019-01-23 14:39:43.385] [D] [zway] SENT ACK
[2019-01-23 14:39:43.385] [I] [zway] Job 0x13 (Nonce Get): Delivered
[2019-01-23 14:39:43.386] [D] [zway] SendData Response with callback 0xc4 received: received by recipient
[2019-01-23 14:39:43.386] [D] [zway] SETDATA devices.65.data.lastSendInternal = **********
[2019-01-23 14:39:43.386] [D] [zway] SETDATA devices.65.data.lastSend = 8742296 (0x00856598)
[2019-01-23 14:39:43.386] [D] [zway] Job 0x13 (Nonce Get): success
[2019-01-23 14:39:43.386] [D] [zway] SETDATA devices.65.instances.0.commandClasses.152.data.rNonceAckWait = **********
[2019-01-23 14:39:43.386] [D] [zway] SETDATA devices.65.data.lastNonceGet = 8742296 (0x00856598)
[2019-01-23 14:39:43.386] [I] [zway] Waiting for job reply: Nonce Get
[2019-01-23 14:39:43.458] [D] [zway] RECEIVED: ( 01 10 00 04 00 41 0A 98 80 C3 2E E2 88 DC 5A C3 84 FE )
[2019-01-23 14:39:43.458] [D] [zway] SENT ACK
[2019-01-23 14:39:43.458] [D] [zway] SETDATA devices.65.data.lastReceived = 0 (0x00000000)
[2019-01-23 14:39:43.458] [D] [zway] Received reply on job (Nonce Get)
[2019-01-23 14:39:43.458] [D] [zway] SETDATA devices.65.instances.0.commandClasses.152.data.rNonceAckWait = **********
[2019-01-23 14:39:43.459] [D] [zway] SETDATA devices.65.data.lastNonceGet = 8742303 (0x0085659f)
[2019-01-23 14:39:43.459] [I] [zway] Node 65:0 CC Security: received Nonce Report
[2019-01-23 14:39:43.459] [D] [zway] SETDATA devices.65.instances.0.commandClasses.152.data.rNonce = **********
[2019-01-23 14:39:43.459] [I] [zway] Node 65:0 CC Security: Sending a secure message
[2019-01-23 14:39:43.459] [I] [zway] Node 65:0 CC Security: sending encrypted packet: (null)
[2019-01-23 14:39:43.460] [D] [zway] SETDATA devices.65.instances.0.commandClasses.152.data.toFollow = False
[2019-01-23 14:39:43.460] [D] [zway] SETDATA devices.65.data.lastNonceGet = Empty
[2019-01-23 14:39:43.461] [I] [zway] Adding job: Security
[2019-01-23 14:39:43.461] [D] [zway] SENDING (cb 0xc5): ( 01 1F 00 13 41 18 98 81 CB E0 FD 64 18 88 9C 2D 53 3E 52 E0 C9 C3 73 8A 9A 21 6E 78 60 04 05 C5 05 )
[2019-01-23 14:39:43.462] [D] [zway] Secure payload: ( 31 05 E0 FF )
[2019-01-23 14:39:43.468] [D] [zway] RECEIVED ACK
[2019-01-23 14:39:43.469] [D] [zway] RECEIVED: ( 01 04 01 13 01 E8 )
[2019-01-23 14:39:43.469] [D] [zway] SENT ACK
[2019-01-23 14:39:43.469] [I] [zway] Job 0x13 (Security): Response received - transfered to encapsulated jobs
[2019-01-23 14:39:43.469] [D] [zway] Delivered to Z-Wave stack
[2019-01-23 14:39:43.469] [D] [zway] Delivered to Z-Wave stack
[2019-01-23 14:39:43.528] [I] [core] [BaseModule-112] Set lastLevel to 21.58 for Mathematica_123 (was 21.67)
[2019-01-23 14:39:43.625] [D] [zway] RECEIVED: ( 01 07 00 13 C5 00 00 10 3E )
[2019-01-23 14:39:43.625] [D] [zway] SENT ACK
[2019-01-23 14:39:43.625] [I] [zway] Job 0x13 (Security): Callback received - transfered to encapsulated jobs
[2019-01-23 14:39:43.625] [I] [zway] Job 0x13 (SensorMultilevel): Delivered
[2019-01-23 14:39:43.625] [D] [zway] SendData Response with callback 0xc5 received: received by recipient
[2019-01-23 14:39:43.625] [D] [zway] Job 0x13 (SensorMultilevel): success
[2019-01-23 14:39:43.625] [I] [zway] Removing job: SensorMultilevel
[2019-01-23 14:39:43.626] [I] [zway] Job 0x13 (Security): Delivered
[2019-01-23 14:39:43.626] [D] [zway] SendData Response with callback 0xc5 received: received by recipient
[2019-01-23 14:39:43.626] [D] [zway] SETDATA devices.65.data.lastSendInternal = **********
[2019-01-23 14:39:43.626] [D] [zway] SETDATA devices.65.data.lastSend = 8742319 (0x008565af)
[2019-01-23 14:39:43.626] [D] [zway] Job 0x13 (Security): success
[2019-01-23 14:39:43.626] [I] [zway] Removing job: Security
Nevermind the mathematica debug info, that's just happening in parallel, but I relay the original value from the spirit.

Report size: 1 byte
precision: 2 digits
scale: celsius

trying out the different parameter sizes now...
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Send SensorMultilevel unsolicited from controller

Post by PoltoS »

Are you sure you have correctly defined the size/precision in the module?
Post Reply