Trying to Integrate Bazzite with Home Assistant
Still very new to linux so apologies if I'm missing something very obvious here. I've spent the weekend trying to figure this out by searching in this discord and online.
I've been looking into ways to integrate bazzite installed on a living room PC with my Home Assistant setup to be able to sleep or power off the PC and at the same time turn off the TV (since it doesn't wake up or turn off with the PC without HDMI CEC support on the GPU). Turning on the PC isn't an issue as I've managed to get Wake on Lan to work reliably.
I found an app that would provide an integration on linux PCs with Home Assistant called System Bridge (https://system-bridge.timmo.dev) that should allow me to turn off the PC remotely and use its state to control the TV.
I followed the install instructions on their site and downloaded the amd64 AppImage and opened it with Gearlever, and it looks like the only dependency is lshw which already seems to work in the Bazzite terminal.
When I run the application via gearlever it shows up in the system tray but nothing in the context menus work. When I try the "view data" or "settings" context menus I am I'm simply met with a window that says: "Could not connect to 127.0.0.1: Connection refused"
I've tried to look in the KDE firewall settings and can't find any mention of systembridge.
The Systembridge website I should also be able to run the application and potentially troubleshoot it a bit better by simply running it with the "systembridge" command which is not found.
I am guessing that there is some sort of permissions issue with how I installed it that doesn't allow it to run with the privileges it needs, but I am not sure how to troubleshoot that. I've left a question on their GitHub discussion as well but no responses as of yet.
Sorry for the long post, thanks for reading. If anyone has any idea of what to do from here I'd be super grateful!
System Bridge
A bridge for your systems.
8 Replies
If you just run
systembridge
is not going to find it because it's not installed on the system. You have provide the full path the the appimage.
for example
which works fine on my system @DefiniteIntegralAh okay I’ll give it a shot when I’m by the PC. Any idea on how to troubleshoot it not being able to connect to the local host?
I would run it in a terminal and see what it says there.
Also if you have a lg tv you can use https://GitHub.Com/Tenzer/alga to control your tv from your pc. You could even use it to essestinaly have HDMI cec where when you boot the pc it automaticly turns on the tv.
i posted about it here https://universal-blue.discourse.group/t/auto-turn-on-tv-no-hdmi-cec-and-auto-start-apps-with-gamescope-session/4262
theroticly it should also be possible with samsung tvs
GitHub
GitHub - Tenzer/alga: CLI for remote controlling LG webOS TVs
CLI for remote controlling LG webOS TVs. Contribute to Tenzer/alga development by creating an account on GitHub.
Universal Blue
Auto turn on TV(no HDMI-CEC) and auto start apps with gamescope ses...
So this is something I been trying to get working for a while and I finally did These scripts do the following every time I run steam game mode turn on my LG tv Switch to the input my PC is on start an openrgb server start some other GUI applications headlessly had to create the following files ~/.config/systemd/user/gamescope-session-plus@...
This is amazing. Thank you!
So I gave up on trying to get systembridge or lnxlink to work. I tried to follow your example for Alga but I am unable to execute a script that calls it via a systemd service.
The script runs without issue manually run but gives me error 203 when I try to start the systemd service. The script is set to executable and permissions and owners are correct. The shebang is in the bash script and path to the alga executable is also correct. The scripts are also in a directory that systemd can use.
I even tried to run it with setenforce 0 to remove SELinux enforcement as I had an issue with that with a service I tried to set up earlier.
Not sure how else to troubleshoot.
How did you install alga on bazzite?
I installed it based on what was recommended by the bazzite documentation and the alga documentation so via homebrew I installed pipx, and via pipx I installed alga.
Yeah that's how I installed alga. Maybe try pasting your systemd unit file. And script in a pastbin service?
Also what does
Show?
Also see
https://unix.stackexchange.com/questions/472950/systemd-status-203-exec-error-when-creating-new-service
I remember having some issue with systemsd not being able to find python but I forgot how I fixed it and I don't have access to my PC till like Thursday
Unix & Linux Stack Exchange
systemd "status=203/EXEC" error when creating new service
I've created a new service for a Python script that works when running standalone but gives errors below when run through systemd :
Oct 02 12:17:09 raspberrypi systemd[1]: Started Read pressure An...
I managed to get it working. It seems that since everything is installed by pipx under the home directory I had to specifically make the service use my username and group for it to access that
Linux is quite the learning curve