Monitoring Bazzite OS Systems on Home Assistant

Are you looking to use GitHub - joshuar/go-hass-agent: A Home Assistant, native app for desktop/laptop devices. on your Steam Deck, Legion Go? Or any system running Bazzite OS?

These are the steps I did to get this running in Gamescope and at startup

  1. Switch over to Desktop Mode

    • Hold the power button on your handheld
      OR
    • Hold the Guide button on your controller, and select power on the Left Menu

Select Switch to Desktop

  1. Visit https://github.com/joshuar/go-hass-agent
  2. Click on Releases
  3. Bazzite is built on Fedora so we wanna download the RPM version and make sure to pick x86.
  4. Open Terminal

Terminal Processes

  1. Move to your Downloads folder
cd /Downloads
  1. Use RPM-OSTREE to install the go-hass-agent.
    Make sure to change the <VERSION NUMBER> to match the version you have downloaded.
rpm-ostree install go-hass-agent-<VERSION NUMBER>.x86_64.rpm
  1. Bazzite will ask for your password.
    NOTE: If you didn’t setup a password during installation Bazzites default password is
bazzite
  1. Once’s the installation has completed you can run the app by typing
go-hass-agent run
  1. In your taskbar you will see this lovely blue icon
  2. Go-Hass-Agent should pop up with

Home Assistant Setup

  1. On your home assistant dashboard, click on your profile photo located at the bottom left.
  2. Select Security in the tab
  3. Scroll all the way down to Long-lived access tokens and select Create Token
  4. Copy this token in Go-Hass-Agent - Token Field.

Setting your Home Assistant URL

  1. This section gave me issues. You can pick 2 different methods

:sos: IF your settings here fail to communicate with your home assistant server. You can reset these setting by running

rm -r /home/bazzite/.config/go-hass-agent/

Auto Discovery

Try auto discovered. I hope this works for you.

Custom URL

If you’ve setup a custom URL for your home assistant enter it into the Manual Server Entry field.

https://homeassistant.duckdns.org

Check Home Assistant

Let’s check home assistant to see if your bazzite system is communicating.

  1. Select settings within Home Assistant

  2. Select Devices & services

  3. Select Mobile App

  4. You should see your Bazzite system showing up in the Integration Entities list
    Your systems name may be named

node-askdlaksdovdvlsdnjou

Yes/No

:white_check_mark: If you see your system showing up here AWESOME! Let’s continue
:negative_squared_cross_mark: If you don’t see your system head back to Step 16 and try resetting your go-hass-agent settings, url.

  1. In the terminal on your Bazzite System
cd /home/bazzite/.config/systemd/user/
  1. Create a hass-agent service
nano hassio.service
  1. Type in the following (Ctrl + Shift + V)
[Unit]
Description=Start up Go-Hass-Agent

[Service]
ExecStart=/bin/bash -c 'go-hass-agent run'


[Install]
WantedBy=default.target
  1. Save changes in nano (Ctrl + X)
  2. Reload Systemd
systemctl daemon-reload 
  1. Enable the service for Bazzite to auto start.
systemctl --user enable hassio.service
  1. Reboot your bazzite system and check Home assistant to ensure communication from Go-Hass-Agent works while in Gaming Mode