joshuar / go-hass-agent

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

[BUG] go-hass-agent version not working #202

Closed Erreur32 closed 4 weeks ago

Erreur32 commented 1 month ago

Go Hass Agent Version Retrieve with go-hass-agent version. i can't ... but i tried with the latest : V9.5.1 yesterday

Describe the bug this is the bug , no version appear when i do go-hass-agent version

I'm on Debian 12 and used the .tar.xz.

To Reproduce Steps to reproduce the behaviour:

 su user -c "/home/duser/.local/bin/go-hass-agent  --terminal  version"
 INF Go Hass Agent:

it was working well with v9.2.0 ;) , other version after i don't know.

Thanks

joshuar commented 1 month ago

Hey thanks for trying out Go Hass Agent. I can confirm the tar.xz packages have this bug. It might be a little tricky to fix. The good news though is the deb package is built on Ubuntu 22.04, which is compatible with Debian 12. I can confirm that on a Debian 12 VM, installing the deb package works (including the version command).

Can you try the deb package and let me know if that works for you?

Erreur32 commented 1 month ago

Thanks for your reply !

Yes with .deb it working :) --> i needed to install also dbus-x11 , which i don't have it before.

su debian32 -c "/usr/bin/go-hass-agent version --terminal" 10:35AM INF Go Hass Agent: v9.5.1

i have also registered again cause path was change .

Can we keep .deb for Debian 12 in next release ? fine for me ;)

Thanks

Erreur32 commented 1 month ago

Sorry bad new after some time have this error:

2024-07-07 11:52:12.013 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Received invalid webhook payload: not a valid value for dictionary value @ data['device_class']. Got 'DeviceClass(0)'
2024-07-07 11:52:12.014 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Received invalid webhook payload: not a valid value for dictionary value @ data['device_class']. Got 'DeviceClass(0)'

I have also not all sensors detected 30 instedd of 90

i have revert back to 9.2.0 , and error gone and all sensors are back.

joshuar commented 1 month ago

Ah! I also noticed this problem with the sensors, a regression has stuck in that should be fixed by https://github.com/joshuar/go-hass-agent/commit/022c80f239154d293cf8631fc2ecdd9e3d58bd63 in the next release. Glad to hear that switching back to an older release is a workaround. Look out for the next release in the next few days!

Yep on using the deb for Debian! I'll update the README as well.

Side note: I believe I originally had to start publishing the tar.xz packages as my build system resulted in deb packages that couldn't run on Debian, only Ubuntu. A lot has changed since then and the current build process has better compatibility it seems!

joshuar commented 4 weeks ago

I'm going to close this issue off as I believe the issue is now resolved. If that is not the case please reply back to re-open with any further details!