JWL98
(JWL98)
January 4, 2024, 10:26pm
1
I got a Steam Deck last christmas and would like to make a fun Home Assistant project with it. The plan is too make a great looking docking station with LED’s that displays the charging state.
I already found a way too import the sensors of the steam deck too Home Assistant with Go Hass Agent .
Problem with this setup is that the sensors only update when the deck is on DESKTOP MODE, still need to find out how i can make Go Hass Agent run as a background service.
I also made a steam deck card for my dashboard:
type: picture-elements
elements:
- type: state-icon
title: Steamdeck
entity: sensor.steamdeck_atc_battery_level
show_state: true
state_color: true
style:
top: 15%
left: 68%
transform: scale(1,1)
- type: state-label
entity: sensor.steamdeck_atc_battery_level
style:
top: 35%
left: 73%
- type: state-icon
title: Steamdeck
entity: sensor.steamdeck_wi_fi_signal_strength
show_state: true
state_color: true
style:
top: 15%
left: 28%
transform: scale(1,1)
- type: state-label
entity: sensor.steamdeck_lo_connection_state
style:
top: 35%
left: 32%
image: /local/media/steamdeck.png
card_mod:
style: |
ha-card {
background: transparent;
}
I will update my progress on the project and would like too hear suggestions and comments!
1 Like
I got it working by setting up go-hass-agent
as a systemd service. I followed this https://www.reddit.com/r/SteamDeck/comments/vocyi5/start_syncthing_automatically_on_steamdeck_even/ and modified the file as follows
/home/deck/.config/systemd/user/go-hass-agent.service
[Unit]
Description=go-hass-agent
[Service]
Type=simple
ExecStart=go-hass-agent
Restart=on-failure
RestartSec=1
[Install]
WantedBy=default.target
Then started it
systemctl --user enable go-hass-agent
systemctl --user start go-hass-agent
Thanks for your post as I was pointed in the right direction and getting go-hass-agent
set up!
1 Like
JWL98
(JWL98)
February 27, 2024, 10:21am
3
Nice work!
I updated go-hass-agent and it seems to messed up all my sensors.
Does go-hass-agent work in gaming mode on your setup?
I briefly did a test while playing a game last night and modified your card as some of the sensors didn’t work:
elements:
- type: state-icon
title: Steamdeck
entity: sensor.steamdeck_getac_battery_level
show_state: true
state_color: true
style:
top: 15%
left: 68%
transform: scale(1,1)
- type: state-label
entity: sensor.steamdeck_getac_battery_level
style:
top: 35%
left: 73%
- type: state-icon
title: Steamdeck
entity: sensor.steamdeck_wi_fi_signal_strength
show_state: true
state_color: true
style:
top: 15%
left: 28%
transform: scale(1,1)
- type: state-label
entity: sensor.steamdeck_lo_connection_state
style:
top: 35%
left: 32%
Not sure why the battery level changed to sensor.steamdeck_getac_battery_level
for example . Just booted up my steam deck now in game mode and seeing the sensors updating on the device page (Sensors and Diagnostics)
1 Like
How do you even begin to install Go Hass Agent? I downloaded the tar.zst file from the link you provided, but not sure what to do with it from there Thanks!
From the terminal in Desktop mode, use pacman to install arch linux packages:
sudo pacman -U package.pkg.tar.zst
You may need to disable read only mode by running sudo steamos-readonly disable
. See the Steam Support :: Steam Deck Desktop: FAQ for more details
Afterwards, go-hass-agent
should be on your path and can call it.
1 Like
JWL98
(JWL98)
April 9, 2024, 2:22pm
7
Stil don’t manage to make a good use of the sensors.
Added go hass agent as service but they won’t update when in gaming mode….
creedda
(Creedda)
June 1, 2024, 10:40pm
8
Is this able to persist through steamos updates?