-
Notifications
You must be signed in to change notification settings - Fork 3
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
Events of remotes are fired multiple times #2
Comments
Thanks for giving it a good test ride (I can only test against my RT-CC-DN thermos). Maybe you can assist a little with this issue if you like: The "Only changes" mode was supposed to also work in this scenario but I can't test it against a remote since I have none. Setting not received actions to false would probably be a nice idea - I'll think about it. Could you use a tool like Regarding the missing keys - It's possible that some keys are missing because the conversion script didn't find the correct number of channels in the source XML (some devices don't supply a fixed channel number but rather a "check device at runtime" flag, in this case my conversion script used a little heuristic to try to guess the channel count from the name). Feel free to check out the device description in |
Here's the log of one continuous button press.
PRESS_LONG and PRESS_CONT are published roughly every 200 ms for the duration of the button press. |
Thanks, that's going to help sorting this out. Extending your proposal to send all other actions as
It would also require adding more metadata to the device description since currently receive parameters are handled without any type information (only write params have them). That could be extracted from the source XML so it's not that big a change but it would still be a necessary one. |
I made the pull request and noticed channel 3 was already there - twice. The XML file contains definitions for all 4 channels. It seems there went something wrong during the conversion. |
If you want to keep the "parameter set" design, I don't think there is a good way to avoid sending multiple successive messages. But I also don't think that is a problem. |
Knowing the actual channel count is required in two places:
Eliminating the first one is something I don't think can be done easily without sacrificing the UI comfort. |
Yes, getAllValues returns really all readable parameters. |
Alternative approach if the device has readable actions:
This operation mode could also have a separate option to enable it. |
I like the first option, so you always have all data and the name of the triggered variable. |
First of all: Really nice project 👍!
During my first test with a remote, I noticed some small issues: When I press a button on my remote (HM-RC-Key4-2), I get two "press_short: true" events by the Homegear node (probably one for press_short and one for install_test?). Maybe it would be better to only put the value received over MQTT into the property object? Alternatively not received action values could be set to "false" in the property object? Using "Only send a message on property changes" is not working here, as the variables are of type action and always true. Also PRESS_CONT and PRESS_LONG_RELEASE would be nice 😋. And: Key 3 and 4 are ignored.
Cheers,
Sathya
The text was updated successfully, but these errors were encountered: