joshuar / go-hass-agent

A Home Assistant, native app for desktop/laptop devices.
MIT License
136 stars 11 forks source link

[BUG] Power Off command not working after latest update #277

Closed rouloy closed 3 hours ago

rouloy commented 4 days ago

Go Hass Agent Version v10.2.0

Describe the bug Power Off not triggering a Shutdown

To Reproduce Steps to reproduce the behaviour:

  1. Fresh Install go-hass-agent
  2. Link App to Home Assistant
  3. Press Button Power Off
  4. See error.

Expected behaviour On button press the system should shutdown

Screenshots Screenshot from Mqtt explorer showing message is coming from HA and is sent out grafik

Logs A log will be very helpful to look into this bug report. To get the log:

Sep 13 17:25:38.187 WRN Could not start a sensor worker. linux.controller=sensor error="unable to monitor location updates: unsupported hardware" Sep 13 17:25:38.187 WRN Could not start a sensor worker. linux.controller=sensor error="unable to monitor laptop sensors: unsupported hardware" Sep 13 17:25:38.188 WRN Could not start a sensor worker. linux.controller=sensor error="unable to fetch ABRT problems from D-Bus: SystemBus: unable to get data org.freedesktop.problems.GetProblems from org.freedesktop.problems: The name is not activatable" Sep 13 17:25:38.376 ERR Process sensor failed. error="%!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)" Sep 13 17:25:38.385 ERR Process sensor failed. error="%!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)" Sep 13 17:25:38.385 ERR Process sensor failed. error="%!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)" Sep 13 17:25:38.386 ERR Process sensor failed. error="%!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)" Sep 13 17:25:38.389 ERR Process sensor failed. error="%!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)" Sep 13 17:25:38.389 ERR Process sensor failed. error="%!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)" Sep 13 17:25:38.389 ERR Process sensor failed. error="%!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)" Sep 13 17:25:38.400 ERR Process sensor failed. error="%!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)" Sep 13 17:25:38.400 ERR Process sensor failed. error="%!v(PANIC=Error

Desktop (please complete the following information):

Additional context All other commands, like Mute/Unmute, Hibernate, Lock Session are working as intended

joshuar commented 2 days ago

hey @rouloy thanks for trying out Go Hass Agent and reporting the issue. I've fixed this with c44cd2cefb0c3367d896a72db205d61324d562de and released v10.2.1 containing the fix. Please try it out and report back!

rouloy commented 22 hours ago

HEY @joshuar thanks for the time and work you put into it! Seems to work again :)

joshuar commented 3 hours ago

Hey @rouloy that's great to hear, thanks for reporting back. I'll close this issue off.