Skip to content
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

[BUG] G502 mouse making Mobile App Sensor Multiple times when detached (using KVM Switch) #374

Open
mxp83 opened this issue Dec 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mxp83
Copy link

mxp83 commented Dec 26, 2024

Go Hass Agent Version
v10.5.1

Describe the bug
In Home Assistant, inside mobile app, my G502 has multiple unknown sensors due to when I switch my KVM to PC while my linux box is on. The last valid state is still shown, and when reconnected adds a new sensor with _2 (ascending number) at the end.

To Reproduce
Steps to reproduce the behaviour:

  1. Have KBM switch with G502 wireless dongle attached connected to 2 machines (in my case a win 11, and fedora bazzite on the other)
  2. Switch input source (from Linux to PC). Wait a few mins, switch back.
  3. Go to Home Assistant integration and look at sensors.
  4. See image.

Expected behaviour
Maintain the original sensor.

Screenshots
Imgur Link

Logs
I currently don't have a log because I the linux machine is off (Steam Deck) and not connected at the moment. Will upload later.

Desktop (please complete the following information):

  • OS: Bazzite 41 (Linux Fedora)
  • Distribution Linux Fedora 41
  • Version 41

Additional context
KVM switch is a USB3 switch which is also powered externally by an adapter. Single button on the switch alternates the source. The port used on the switch for the Logitech G502 is USB3. The G502 is currently using the Input Remapper software to enable Logitech sidebuttons.

@mxp83 mxp83 added the bug Something isn't working label Dec 26, 2024
@joshuar
Copy link
Owner

joshuar commented Dec 28, 2024

Oh dear, that's no good. Do all the duplicate sensors continue to update and have the same value? Or do only the new (or old) sensors update?

@mxp83
Copy link
Author

mxp83 commented Dec 28, 2024

Yes and no. I say both because the old mouse becomes Unknown (until it becomes unavailable, guessing due to old states cleanup) and a new '_number' shows up with the current. See here. The new ones are prefixed 'deckard'.

It should probably be noted that these sensors are not in recorder, since I don't need to know the batt values or wattage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants