Skip to content

[BUG] Power State is not beeing updated #753

@Kweck

Description

@Kweck

Go Hass Agent Version
v14.6.0

Describe the bug
The Power state is stuck to Power on. Same as in Issue #633 - but I can't fix it like he did.
In my case I shut down the system instead of just suspend.
States of Last Active and Last Reboot working fine.

To Reproduce
Power down System or Start up System

Expected behavior
Update Power State to "off" and/or "on" based on Power State

Screenshots

Image

Logs

{"time":"2026-02-06T19:40:45.601499771+01:00", "level":"DEBUG", "msg":"Config backend initialized."}
{"time":"2026-02-06T19:40:45.601714555+01:00", "level":"DEBUG", "msg":"Starting scheduler."}
{"time":"2026-02-06T19:40:45.778723149+01:00", "level":"DEBUG", "msg":"Starting server...", "address":"localhost:8223"}
{"time":"2026-02-06T19:40:45.781819406+01:00", "level":"DEBUG", "msg":"Retrieved user path.", "dbus":{"bus":"SystemBus", "path":"/org/freedesktop/login1/user/_1000"}}
{"time":"2026-02-06T19:40:45.782558503+01:00", "level":"DEBUG", "msg":"Retrieved session path.", "dbus":{"bus":"SystemBus", "path":"/org/freedesktop/login1/session/_32"}}
{"time":"2026-02-06T19:40:45.786644107+01:00", "level":"DEBUG", "msg":"Agent is registered."}
{"time":"2026-02-06T19:40:45.853966475+01:00", "level":"DEBUG", "msg":"Not configuring MQTT functionality, not configured."}
{"time":"2026-02-06T19:40:45.854182632+01:00", "level":"WARN", "msg":"Could not init worker.", "worker":"smart_status", "error":"check capabilities: capability check failed: missing cap_sys_rawio"}
{"time":"2026-02-06T19:40:45.854463396+01:00", "level":"WARN", "msg":"Could not init worker.", "worker":"chrony", "error":"find chrony executable: exec: \"chronyc\": executable file not found in $PATH"}
{"time":"2026-02-06T19:40:45.854573477+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event0", "error":"open /dev/input/event0: permission denied"}
{"time":"2026-02-06T19:40:45.854616514+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event1", "error":"open /dev/input/event1: permission denied"}
{"time":"2026-02-06T19:40:45.854631892+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event11", "error":"open /dev/input/event11: permission denied"}
{"time":"2026-02-06T19:40:45.854644678+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event12", "error":"open /dev/input/event12: permission denied"}
{"time":"2026-02-06T19:40:45.854657496+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event13", "error":"open /dev/input/event13: permission denied"}
{"time":"2026-02-06T19:40:45.854669932+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event14", "error":"open /dev/input/event14: permission denied"}
{"time":"2026-02-06T19:40:45.854683218+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event15", "error":"open /dev/input/event15: permission denied"}
{"time":"2026-02-06T19:40:45.854696088+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event16", "error":"open /dev/input/event16: permission denied"}
{"time":"2026-02-06T19:40:45.854709879+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event17", "error":"open /dev/input/event17: permission denied"}
{"time":"2026-02-06T19:40:45.85474483+01:00", "level":"DEBUG", "msg":"Monitoring input device.", "device":"/dev/input/event18", "name":"Razer Razer DeathAdder V3 Pro"}
{"time":"2026-02-06T19:40:45.854758128+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event19", "error":"open /dev/input/event19: permission denied"}
{"time":"2026-02-06T19:40:45.854771735+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event2", "error":"open /dev/input/event2: permission denied"}
{"time":"2026-02-06T19:40:45.854784155+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event20", "error":"open /dev/input/event20: permission denied"}
{"time":"2026-02-06T19:40:45.854796603+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event21", "error":"open /dev/input/event21: permission denied"}
{"time":"2026-02-06T19:40:45.854809815+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event22", "error":"open /dev/input/event22: permission denied"}
{"time":"2026-02-06T19:40:45.854822704+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event23", "error":"open /dev/input/event23: permission denied"}
{"time":"2026-02-06T19:40:45.854859614+01:00", "level":"DEBUG", "msg":"Monitoring input device.", "device":"/dev/input/event24", "name":"Razer Razer Huntsman V2 Tenkeyless"}
{"time":"2026-02-06T19:40:45.854900728+01:00", "level":"DEBUG", "msg":"Monitoring input device.", "device":"/dev/input/event25", "name":"Razer Razer Huntsman V2 Tenkeyless"}
{"time":"2026-02-06T19:40:45.854913195+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event256", "error":"open /dev/input/event256: permission denied"}
{"time":"2026-02-06T19:40:45.854927026+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event257", "error":"open /dev/input/event257: permission denied"}
{"time":"2026-02-06T19:40:45.85494035+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event258", "error":"open /dev/input/event258: permission denied"}
{"time":"2026-02-06T19:40:45.854967491+01:00", "level":"DEBUG", "msg":"Monitoring input device.", "device":"/dev/input/event259", "name":"Razer Razer DeathAdder V3 Pro"}
{"time":"2026-02-06T19:40:45.854992599+01:00", "level":"DEBUG", "msg":"Monitoring input device.", "device":"/dev/input/event26", "name":"Razer Razer Huntsman V2 Tenkeyless"}
{"time":"2026-02-06T19:40:45.855005362+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event260", "error":"open /dev/input/event260: permission denied"}
{"time":"2026-02-06T19:40:45.855022002+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event261", "error":"open /dev/input/event261: permission denied"}
{"time":"2026-02-06T19:40:45.855182099+01:00", "level":"DEBUG", "msg":"Monitoring input device.", "device":"/dev/input/event262", "name":"Razer Razer DeathAdder V3 Pro"}
{"time":"2026-02-06T19:40:45.855228681+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event29", "error":"open /dev/input/event29: permission denied"}
{"time":"2026-02-06T19:40:45.855247018+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event3", "error":"open /dev/input/event3: permission denied"}
{"time":"2026-02-06T19:40:45.855262468+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event30", "error":"open /dev/input/event30: permission denied"}
{"time":"2026-02-06T19:40:45.855276675+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event4", "error":"open /dev/input/event4: permission denied"}
{"time":"2026-02-06T19:40:45.855290115+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event5", "error":"open /dev/input/event5: permission denied"}
{"time":"2026-02-06T19:40:45.855303851+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event6", "error":"open /dev/input/event6: permission denied"}
{"time":"2026-02-06T19:40:45.855317269+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event7", "error":"open /dev/input/event7: permission denied"}
{"time":"2026-02-06T19:40:45.855332598+01:00", "level":"DEBUG", "msg":"Could not open input device.", "device":"/dev/input/event8", "error":"open /dev/input/event8: permission denied"}
{"time":"2026-02-06T19:40:45.855346108+01:00", "level":"INFO", "msg":"Initialized input device monitoring.", "device_count":6}
{"time":"2026-02-06T19:40:45.855564809+01:00", "level":"WARN", "msg":"Could not init worker.", "worker":"abrt", "error":"get abrt problems: SystemBus: unable to get data org.freedesktop.problems.GetProblems from org.freedesktop.problems: The name is not activatable"}
{"time":"2026-02-06T19:40:45.858783111+01:00", "level":"DEBUG", "msg":"Monitoring for battery additions/removals."}
{"time":"2026-02-06T19:40:45.858930588+01:00", "level":"DEBUG", "msg":"Unknown memory stat. Ignoring.", "worker":"mem_usage", "stat":"Balloon"}
{"time":"2026-02-06T19:40:45.860930332+01:00", "level":"DEBUG", "msg":"Started monitoring connection.", "worker":"networkmanager", "connection":"Kabelgebundene Verbindung 1"}
{"time":"2026-02-06T19:40:45.861318478+01:00", "level":"DEBUG", "msg":"Listening on websocket.", "connection":"websocket"}
{"time":"2026-02-06T19:40:45.862239868+01:00", "level":"DEBUG", "msg":"Requesting authorisation for websocket.", "connection":"websocket"}
{"time":"2026-02-06T19:40:45.864711703+01:00", "level":"DEBUG", "msg":"Registering app for push notifications.", "connection":"websocket"}
{"time":"2026-02-06T19:40:45.868064911+01:00", "level":"WARN", "msg":"Failed to send fwupdmgr details", "error":"could not retrieve security properties from fwupd: SystemBus: unable to call method org.freedesktop.fwupd.GetHostSecurityAttrs (args: []): The name is not activatable"}
{"time":"2026-02-06T19:40:50.148711556+01:00", "level":"WARN", "msg":"Could not update sensor.", "sensor":{"name":"wlan0 Link State", "id":"wlan0_link_state", "state":"<nil>"}, "error":"error handling sensor data: error handling sensor data: field State: required: Key: 'Sensor.State' Error:Field validation for 'State' failed on the 'required' tag "}
{"time":"2026-02-06T19:41:46.502757047+01:00", "level":"DEBUG", "msg":"Unknown memory stat. Ignoring.", "worker":"mem_usage", "stat":"Balloon"}

Desktop (please complete the following information):

  • OS: Arch
  • Distribution CachyOS
  • Version Current Kernel 6.18.8-3-cachyos

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions