-
Notifications
You must be signed in to change notification settings - Fork 6
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
Queue filterlist parameter: Index out of range error #21
Comments
I've published a new version 0.6.4 on pypi that (hopefully) fixes the crash of the background event thread. Please let me know, if this solves your problem. This doesn't fix the multi-word problem yet. And I am not sure, if this can be fixed, without potentially breaking other things. To my knowledge this FHEM protocol just isn't defined well enough. |
Yes, that fixes the index out of range. Thank you! Edit: ok, so for my particular case, changing the output list (lines 832-838) works fine like this:
|
I am preparing a new version with a new option |
There's now 0.6.5 on pypi. |
Working as expected! Thanks for your efforts :) Great library! |
Tx! |
Hi, I'm trying to filter on client slide one device and one reading like this:
fhemev = fhem.FhemEventQueue("192.168.0.2",que, filterlist=[{'device':'WeatherAlarms', "reading":"code"}])
Although I see the requested reading, I'm getting the following error:
The script doesn't break but upon second event, I don't receive any reading anymore. Also I noticed that if reading is string containing few words (e.g. "high temperature"), it gets broken in words and only first one (eg "high") is passed to the returned dictionary and the second is passed into "units". I guess you have done it for your particular case, but it breaks up in the case which I've mentioned.
The text was updated successfully, but these errors were encountered: