zwave-js / node-red-contrib-zwave-js

The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.
MIT License
47 stars 6 forks source link

[Bug]: After pi4 power cycle, Zwave yale lock cannot be controlled #92

Closed WarrenEvans closed 3 years ago

WarrenEvans commented 3 years ago

Contact Details (optional)

warrenevans@xtra.co.nz

What happened?

When my power goes out on my pi4, the zwave yale lock cannot be controlled. The feedback is working, but I cannot send Commands. This can be fixed by doing a manual interview of the node. See attached screen capture showing a before and after interview. Can this be corrected with an automatic interview on power up or retaining the interview information through a power cycle?

If you need I have a full log of the start up from first power on with at the end the manual interview that fixed the problem. The file is 62MB, so could not be attached. I can send to you if required

Yale lock 13-8-2021

How to reproduce?

Please list steps to reproduce. If the problem is hardware-specific, please list which devices are affected.

Version

4.3.0

Node-RED Version

1.3.5

What hardware are you seeing the problem on?

Raspberry Pi

Relevant Z-Wave-JS log output

Log is to big to paste here. I can email if required.
marcus-j-davies commented 3 years ago

Hello, Define "power cycle" is that shutting down the pi correctly or just pulling the power.

@AlCalzone, Other than an unexpected power loss, any reason why a Yale lock (YRD226) will lose its interview, after the driver starting back up? - I can't think of any.

AlCalzone commented 3 years ago

I'd need to see a logfile - you can just upload it here by drag&drop. Please try to limit it to the power cycle and subsequent driver start where things go wrong.

marcus-j-davies commented 3 years ago

@WarrenEvans,

As above, we do need the log (focused on the power cycle and start up). It might also be helpful, to attach your cache files (Before the power cycle)

These can normally be found here: /home/pi/.node-red/zwave-js-cache/<HomeID>.json /home/pi/.node-red/zwave-js-cache/<HomeID>.values.jsonl

WarrenEvans commented 3 years ago

Marcus

I have attached the files requested.

Regards

Warren Evans

From: Marcus Davies @.> Sent: Friday, 13 August 2021 7:17 pm To: zwave-js/node-red-contrib-zwave-js @.> Cc: WarrenEvans @.>; Mention @.> Subject: Re: [zwave-js/node-red-contrib-zwave-js] [Bug]: After pi4 power cycle, Zwave yale lock cannot be controlled (#92)

@WarrenEvans https://github.com/WarrenEvans ,

As above, we do need the log (focused on the power cycle and start up). It might also be helpful, to attach your cache files (Before the power cycle)

These can normally be found here: /home/pi/.node-red/zwave-js-cache/.json /home/pi/.node-red/zwave-js-cache/.values.jsonl

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zwave-js/node-red-contrib-zwave-js/issues/92#issuecomment-898244340 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABP37HJU4ZU4HG7KX7GSRNDT4TBG3ANCNFSM5CCML5AQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email . https://github.com/notifications/beacon/ABP37HLULYL74CHJ2P5KL5TT4TBG3A5CNFSM5CCML5A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGWFB55A.gif

WarrenEvans commented 3 years ago

Marcus

I normally use shutdown while testing.

Regards

Warren Evans

From: Marcus Davies @.> Sent: Friday, 13 August 2021 6:32 pm To: zwave-js/node-red-contrib-zwave-js @.> Cc: WarrenEvans @.>; Author @.> Subject: Re: [zwave-js/node-red-contrib-zwave-js] [Bug]: After pi4 power cycle, Zwave yale lock cannot be controlled (#92)

Hello,

Define "power cycle" is that shutting down the pi correctly or just pulling the power.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zwave-js/node-red-contrib-zwave-js/issues/92#issuecomment-898224871 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABP37HOFWGJFQZAJCR5UAMTT4S357ANCNFSM5CCML5AQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email . https://github.com/notifications/beacon/ABP37HK6LTMHFX55NK2JS6TT4S357A5CNFSM5CCML5A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGWE5FZY.gif

marcus-j-davies commented 3 years ago

@WarrenEvans,

There are no files attached.

AlCalzone commented 3 years ago

Attaching files doesn't work via e-mail. You'll have to open the issue and upload them via drag and drop.

WarrenEvans commented 3 years ago

Marcus

I have attached the log.

Regards

Warren Evans

From: Marcus Davies @.> Sent: Monday, 16 August 2021 4:27 pm To: zwave-js/node-red-contrib-zwave-js @.> Cc: WarrenEvans @.>; Mention @.> Subject: Re: [zwave-js/node-red-contrib-zwave-js] [Bug]: After pi4 power cycle, Zwave yale lock cannot be controlled (#92)

@WarrenEvans https://github.com/WarrenEvans ,

There are no files attached.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zwave-js/node-red-contrib-zwave-js/issues/92#issuecomment-899204777 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABP37HNYSOHQ476CW46JQODT5CHQRANCNFSM5CCML5AQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email . https://github.com/notifications/beacon/ABP37HKKI6B74YGAICNAZBTT5CHQRA5CNFSM5CCML5A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGWMMNKI.gif

WarrenEvans commented 3 years ago

Marcus

I have attached the next file.

Regards

Warren Evans

From: Marcus Davies @.> Sent: Monday, 16 August 2021 4:27 pm To: zwave-js/node-red-contrib-zwave-js @.> Cc: WarrenEvans @.>; Mention @.> Subject: Re: [zwave-js/node-red-contrib-zwave-js] [Bug]: After pi4 power cycle, Zwave yale lock cannot be controlled (#92)

@WarrenEvans https://github.com/WarrenEvans ,

There are no files attached.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zwave-js/node-red-contrib-zwave-js/issues/92#issuecomment-899204777 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABP37HNYSOHQ476CW46JQODT5CHQRANCNFSM5CCML5AQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email . https://github.com/notifications/beacon/ABP37HKKI6B74YGAICNAZBTT5CHQRA5CNFSM5CCML5A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGWMMNKI.gif

WarrenEvans commented 3 years ago

Marcus

This is the last file. I hope you got them all.

Regards

Warren Evans

From: Marcus Davies @.> Sent: Monday, 16 August 2021 4:27 pm To: zwave-js/node-red-contrib-zwave-js @.> Cc: WarrenEvans @.>; Mention @.> Subject: Re: [zwave-js/node-red-contrib-zwave-js] [Bug]: After pi4 power cycle, Zwave yale lock cannot be controlled (#92)

@WarrenEvans https://github.com/WarrenEvans ,

There are no files attached.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zwave-js/node-red-contrib-zwave-js/issues/92#issuecomment-899204777 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABP37HNYSOHQ476CW46JQODT5CHQRANCNFSM5CCML5AQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email . https://github.com/notifications/beacon/ABP37HKKI6B74YGAICNAZBTT5CHQRA5CNFSM5CCML5A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGWMMNKI.gif

AlCalzone commented 3 years ago

@WarrenEvans Attaching files doesn't work via e-mail. You'll have to open the issue and upload them via drag and drop.

marcus-j-davies commented 3 years ago

@WarrenEvans, As mentioned, you need to do this within Github, and not via a reply to email.

Drag the files into the comment box

WarrenEvans commented 3 years ago

Sorry for getting this in the wrong place. I have attached the log and the other 2 file. zwave-js-log.zip

AlCalzone commented 3 years ago

Looks like the driver tries to communicate without encryption. Likely the power out broke your <homeid>.json cache file, where the security status is stored. This might be the thing I fixed in v8.0.6 https://github.com/zwave-js/node-zwave-js/blob/master/CHANGELOG.md#806-2021-07-28 or this might mean that we need to do https://github.com/zwave-js/node-zwave-js/issues/3091 to solve it.

marcus-j-davies commented 3 years ago

@WarrenEvans,

I have V5 of this node being released very soon, a few users are using the beta. This of course, includes the most recent version of z-wave js.

You can install the beta, to see if this fixes the issue you're seeing.

Make sure you log into terminal as a user that has read/write access to .node-red

In the .node-red directory. npm install --production node-red-contrib-zwave-js@beta

Be warned however! V5 removes an old API model (deprecated in v4) see https://github.com/zwave-js/node-red-contrib-zwave-js/blob/dev/APIChange.md if you're not already using the new model

marcus-j-davies commented 3 years ago

V5 has been released.

if you continue to get issues, please re-open providing a fresh set of log.