File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010HA_BEARER_TOKEN=$( cat ~ /.config/hass-bearer-token)
1111
12- entity_id=input_boolean.tolaria_steam_intent
12+ entity_id=input_boolean.gaming_mode
1313
1414STATE=$( 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}" \
1818if [ " $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
2822fi
You can’t perform that action at this time.
0 commit comments