Skip to content

Commit bcc914d

Browse files
committed
tolaria => [auto-start-steam.spell]
1 parent 8386a28 commit bcc914d

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

spells/auto-start-steam.spell

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ done
99

1010
HA_BEARER_TOKEN=$(cat ~/.config/hass-bearer-token)
1111

12-
entity_id=input_boolean.tolaria_steam_intent
12+
entity_id=input_boolean.gaming_mode
1313

1414
STATE=$(curl -s -H "Authorization: Bearer ${HA_BEARER_TOKEN}" \
1515
-H "Content-Type: application/json" \
@@ -18,11 +18,5 @@ STATE=$(curl -s -H "Authorization: Bearer ${HA_BEARER_TOKEN}" \
1818
if [ "$STATE" == "on" ]; then
1919
echo "Woke by HA intent. Starting Steam..."
2020

21-
# 2. Reset the toggle so it doesn't trigger on a manual power-button boot later
22-
curl -X POST -H "Authorization: Bearer ${HA_BEARER_TOKEN}" \
23-
-H "Content-Type: application/json" \
24-
-d "{\"entity_id\": \"$entity_id\"}" \
25-
http://homeassistant.pendrellvale.home/api/services/input_boolean/turn_off
26-
2721
exec ~/.local/bin/setup-remote-steam
2822
fi

0 commit comments

Comments
 (0)