more G-Labs products

Author Topic: Node sleeping as a selectable option for every node  (Read 2393 times)

December 08, 2015, 05:22:50 PM
Read 2393 times

louis

  • **
  • Information
  • Jr. Member
  • Posts: 26
Hi Gene,

I'm having some issues with some nodes which are always awake.

For some reason, i guess a message isn't arriving at the controller, the node is flagged as sleeping, while the node is in fact not sleeping.

This causes the system to ignore a lot of actions i do on this node, as it is flagged sleeping.

For example a basic.get will not be performed :-(

Hope you can help me on this one.

I would realy like an option to disable this sleeping flag on a specific node.

TIA

Louis
« Last Edit: December 08, 2015, 05:42:05 PM by louis »

December 11, 2015, 09:56:44 PM
Reply #1

Zen

  • **
  • Information
  • Jr. Member
  • Posts: 27
I completely agree with Louis. I can't configure parameters for some of my Z-Wave devices because HomeGenie thinks they are sleeping. An option that user could choose would be great. Thanks.

December 12, 2015, 07:00:42 PM
Reply #2

louis

  • **
  • Information
  • Jr. Member
  • Posts: 26
Hi Gene,

For now i have created my own ZWavelib and disabled the sleeping option, for the time being i can life with this workaround  ;)

Hope you will find the time to create a solution for this problem.

TIA

kind regards

Louis

December 12, 2015, 09:16:40 PM
Reply #3

Zen

  • **
  • Information
  • Jr. Member
  • Posts: 27
Could you share your zwavelib? Thanks.

December 13, 2015, 04:58:46 PM
Reply #4

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
this option is coming with next release:

- Added "Set node as always awake" option to Z-Wave Query on WakeUp program

g.

December 13, 2015, 07:24:11 PM
Reply #5

louis

  • **
  • Information
  • Jr. Member
  • Posts: 26
Hi Gene,

That's great

Thanks alot !!

For the time being Zen, here's a temp solution.

Louis

December 13, 2015, 08:07:42 PM
Reply #6

Zen

  • **
  • Information
  • Jr. Member
  • Posts: 27

December 14, 2015, 09:33:41 PM
Reply #7

louis

  • **
  • Information
  • Jr. Member
  • Posts: 26
Hi Gene,

I'am very sorry, but this solution doesn't seem to do the trick.

The problem is that I stil get timeouts which cause the ZWaveLib to flag this node sleeping.
I guess it's a hardware problem. As another sensor (binairy Fibaro just a meter away) doesn't have this problem.

After 20 to 30 minutes the node gets flagged due to a timeout (AEON Multisensor 1.18).
If i restart hg he's working again for some 20 to 30 minutes.

I use these nodes to turn on some lights, and as i sometimes miss a message i query the nodes every 15 seconds.
If he's flagged the query is not send.

So the solution might be to add an option to the node setup page, for example, is on USB power, which is a hard indicator to never set the sleep flag. Even when a timeout occurs. In my case a resend would not be neccesary ... but that's just my system. Maybe that might be a second option for node setup page ?

I would help you if I understood the way the code works, but for now i haven't fully figured it out.
I'll keep working on it ;)

Hope you can help me.

TIA

Louis
« Last Edit: December 14, 2015, 09:37:52 PM by louis »

December 14, 2015, 10:53:58 PM
Reply #8

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi Louis,

did you flag the node with the new option? After flagging it just wake it up once to clear the sleeping flag and it won't be flagged anymore.

December 15, 2015, 12:15:52 AM
Reply #9

louis

  • **
  • Information
  • Jr. Member
  • Posts: 26
Hi Gene,

I did, the only difference i have is the "Send to sleep after given delay" on 0 seconds.

Btw i had to turn on program 91, which i previously did not use. Which i guess causes the problem to be bigger ... i now lost both my sensors after just one minute in my last test ....

Might it be that messages are mixed up (wrongly interpreted) due to the auto sending of status reports.

Aswell the fact that now program 91 is active he will send more request to a specific node  .. and more responses might get mixed up ?

I asume there's a kind of serializer for sending/receiving messages to a (one) node.

I also often see a large reponse time of up to 3 seconds in the log ....

Just some thoughts ;)

Hope this helps.

If you need more info I'm always available ... (in the evening).

Thanks again !!!

Louis
« Last Edit: December 15, 2015, 12:59:59 AM by louis »

December 15, 2015, 01:04:51 AM
Reply #10

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
This works for me, so perhaps logs can help.
Try also disabling the prog 91 after the first wake up. This should also work around the issue. If I well understood we might add a flag "query node on wake up" to prog 91 to let the user decide if the node has to be queried. This is easy to do, you can try yourself modifying the 91 app. If this works please share it :)
« Last Edit: December 15, 2015, 01:15:36 AM by Gene »

December 16, 2015, 12:40:01 AM
Reply #11

louis

  • **
  • Information
  • Jr. Member
  • Posts: 26
Hi Gene,

Due to your changes i figured out a bit more about the code.

I was able to make some changes to the code, I hope you don't mind.

This is the way i ment it ;)

I'm not sure if this is what you want in your code but i hope you get my idea ...

I just cloned your last revision and did some updates on it .... one thing i haven't found yet is to save it to the modules.xml.
If you could include these changes in an upcoming version that would be great ;)

I will  attach the files being changed.

TIA

kind regards

Louis

PS that would also mean that prog 91 changes can be undone  :-[
But ofcourse not the changes in the MIG modules.
Somewhere the property (which was added in prog 91) still needs to be added somewhere else, at least I think, but as you're the expert i hope you can help me on that one.