-
-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the use of NIF as a wakeup notification #166
Conversation
openhab#127 Signed-off-by: Chris Jackson <chris@cd-jackson.com>
When I try to wake up my Fibaro FGMS001 by pressing the button three times, I get this. In the past, this would wake up the device. Is it because of the change in this PR? I'm on this version;
I don't know why, but the online log viewer is not working for me right now. After I select the log file, I get nothing in the viewer.
|
That's what I'm seeing too, even during inclusion mode. I opened this thread on the forum regarding this issue. |
Probably. I removed this because it was causing problems with other devices. Some devices send a NIF, but they aren't awake. They then send a wakeup notification shortly after, and then they are awake. It seems there's no standard approach which is disappointing. I guess I'll need to think of an alternative approach to dealing with the two systems...
@IOOOTAlan What do you mean by this? Inclusion mode is different to wakeup so I'm not sure what you mean? |
And I should had added that the log viewer should be working. I was messing with it last night to improve some displays for he new transaction code, and there were some points in which it wasn’t working, but it is working ok now (and for the past 16 hours or so). If it doesn’t work, can you send me your log so I can find out why as it’s definitely working ok for me... |
This is the log that's causing problems. Sorry it's so big. |
That's one heck of a standard, huh? Seems like it might be difficult to detect on the fly whether or not a device is awake after it emits a NIF. Maybe a flag in the DB to indicate whether the device is awake after it emits a NIF? Flag is off by default. When we we find devices that are awake after they emit a NIF, it's a simple tweak to the DB entry for those devices? |
Yeah - I did think about a database setting. I might try a timer - i.e. delay the NIF and only use it if a wakeup isn’t received xx ms after the NIF... |
Thanks for the log - the viewer should be at your service again ;)
|
Yep. That did it! Thanks! :-) I thought about a timer, too. But, I thought there might be some unexpected edge cases with the timer. Not knowing if were talking about a lot of devices, or just a handful, it's hard to judge how much effort to put into doing it on the fly. |
Oh, and thanks for the select all & select none buttons in the filter. It's pretty tedious unchecking 25-30 checkboxes when you want to see just one node. 👍 |
The problem with a database though is you need to know the device (i.e. you need to be able to get the database entry to know if the setting is set). In one case on the forum at the moment, the user can’t wake the device up at all, so they can’t get the device id, so this doesn’t work. |
Ah, yes, it didn’t take long before that became a ‘must have’ :) |
Good point. On Oct 13, 2016 3:11 PM, Chris Jackson notifications@github.com wrote:The problem with a database though is you need to know the device (i.e. you need to be able to get the database entry to know if the setting is set). In one case on the forum at the moment, the user can’t wake the device up at all, so they can’t get the device id, so this doesn’t work. —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread. |
Yep, it's different but after this pull request got merged we discovered that:
|
I can't see how this can impact the actual inclusion - that is a totally separate thing. If the device shows up in the list, then it is included - I'm assuming that this is happening (??) since you said it is not "fully" recognised (which I read to mean it WAS recognised?). If there's an issue, please can you provide a log as I'd like to understand what is happening - it's really hard to work with descriptions like this since it's very subjective as to what is happening, and maybe we are not using the same terminology. I don't want to go looking for a problem with inclusion if the problem is really in the initialisation. |
You're right Chris, apologies for my poor wording on the issue. |
#127
Signed-off-by: Chris Jackson chris@cd-jackson.com