HASS.Agent icon indicating copy to clipboard operation
HASS.Agent copied to clipboard

Bug: WindowState always "Unknown"

Open Dustinhoefer opened this issue 1 year ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Open Sensors Configuration
  2. Add a WindowState for window "Sensorc Configuration"
  3. Observe last Known Value is "Unknown"

Expected behavior Last Known Value should change to "maximized"

Windows 11

  • [x] Installed via installer
  • [ ] Installed manually
  • [x] Problem occurs in HASS.Agent
  • [ ] Problem occurs in Satellite Service

Dustinhoefer avatar Sep 15 '23 13:09 Dustinhoefer

The sensor could do with an overhaul, the description and configuration option is a little misleading. This sensor requires a path to an application exe file* which is then used to monitor the state of this application, for example D:\Gry\Powder\powder-sse.exe C:\Windows\System32\notepad.exe Note: HASS.Agent will convert those to "powder-sse" and "notepad" respectively (and those "short" versions can be put there manually)

Plus while testing this I noticed that it has a bug where trying to monitor "HASS.Agent", it'll try to find windows of "HASS" due to how it tries to shorten the name...

    • to be specific it is a process name but this almost always is equal to the exe name

amadeo-alex avatar Sep 15 '23 15:09 amadeo-alex