go-hass-agent icon indicating copy to clipboard operation
go-hass-agent copied to clipboard

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

Open mxp83 opened this issue 10 months ago • 2 comments

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 avatar Dec 26 '24 10:12 mxp83