Updated: Apr 21, 20246 min read

Mastering Home Assistant Automations: Gaming Edition

Written by: Fixt

WebOS Integration

Open your Home Assistant and show de integration menu

HASS Agent

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.
Open your Home Assistant and show de integration menu

Visual Studio Code Add-on

Open your Home Assistant instance and show the dashboard of a Supervisor add-on.

Wake On Lan

homeassistant/configuration.yaml

wake_on_lan:
 
switch:
  - platform: wake_on_lan
    name: "PC"
    mac: !secret pc_mac
    host: !secret pc_ip
    turn_off:
      service: button.press
      data:
        entity_id: button.desktop_fixt_shutdown

To use this feature your TV should be connected to your network via Ethernet and you should enable the LG Connect Apps feature in the Network settings of the TV.

homeassistant/automations.yaml

alias: "Turn On Living Room TV with WakeOnLan"
trigger:
  - platform: webostv.turn_on
    entity_id: media_player.lg_webos_smart_tv
action:
  - service: wake_on_lan.send_magic_packet
    data:
      mac: aa:bb:cc:dd:ee:ff

Change Windows Display and Sound Output Devices

Members Content
ZIP
Member Banner

Join our community to unlock exclusive
content!

  • As a Tinkerer 🤖, you’ll gain:
    • Exclusive Member Content Access: You’ll receive exclusive access to the Member Content on our website.
    • Free Shop Content Access during the first 2 weeks of its release.
      Look for the MemberFree badge on the title.
    • Ko-fi Shop Discount: Enjoy a 25% discount on any item in our Ko-fi shop.
    • Early Tutorial Access: Get early access to our content on our website.
    • Member Shoutout: Stick around until the end for a shoutout to our dedicated members
  • Your support is invaluable in allowing us to continue creating the tutorials you like 😁🏠🎉
  • Click on any of the buttons below to become a member, and then log in with the same email address.

AutoLogon: You can find the AutoLogon tool here


Members Content
SCRIPTS
Member Banner

Join our community to unlock exclusive
content!

  • As a Tinkerer 🤖, you’ll gain:
    • Exclusive Member Content Access: You’ll receive exclusive access to the Member Content on our website.
    • Free Shop Content Access during the first 2 weeks of its release.
      Look for the MemberFree badge on the title.
    • Ko-fi Shop Discount: Enjoy a 25% discount on any item in our Ko-fi shop.
    • Early Tutorial Access: Get early access to our content on our website.
    • Member Shoutout: Stick around until the end for a shoutout to our dedicated members
  • Your support is invaluable in allowing us to continue creating the tutorials you like 😁🏠🎉
  • Click on any of the buttons below to become a member, and then log in with the same email address.

Create some helpers

homeassistant/configuration.yaml

mqtt:
  binary_sensor:
    - name: "PC Status"
      state_topic: "homeassistant/sensor/DESKTOP-Fixt/availability"
      payload_on: "online"
      payload_off: "offline"
      value_template: "{{ value_json.state }}"
Open your Home Assistant instance and show your helper entities.

issteamopen

Members Content
AUTOMATION
Member Banner

Join our community to unlock exclusive
content!

  • As a Tinkerer 🤖, you’ll gain:
    • Exclusive Member Content Access: You’ll receive exclusive access to the Member Content on our website.
    • Free Shop Content Access during the first 2 weeks of its release.
      Look for the MemberFree badge on the title.
    • Ko-fi Shop Discount: Enjoy a 25% discount on any item in our Ko-fi shop.
    • Early Tutorial Access: Get early access to our content on our website.
    • Member Shoutout: Stick around until the end for a shoutout to our dedicated members
  • Your support is invaluable in allowing us to continue creating the tutorials you like 😁🏠🎉
  • Click on any of the buttons below to become a member, and then log in with the same email address.

Game Mode Scripts

Members Content
SCRIPTS
Member Banner

Join our community to unlock exclusive
content!

  • As a Tinkerer 🤖, you’ll gain:
    • Exclusive Member Content Access: You’ll receive exclusive access to the Member Content on our website.
    • Free Shop Content Access during the first 2 weeks of its release.
      Look for the MemberFree badge on the title.
    • Ko-fi Shop Discount: Enjoy a 25% discount on any item in our Ko-fi shop.
    • Early Tutorial Access: Get early access to our content on our website.
    • Member Shoutout: Stick around until the end for a shoutout to our dedicated members
  • Your support is invaluable in allowing us to continue creating the tutorials you like 😁🏠🎉
  • Click on any of the buttons below to become a member, and then log in with the same email address.

How to trigger It

Voice & Vibration Sensor

Using the affiliate links above helps support the channel and all the content I create 🎉🙌

Open your Home Assistant instance and show your helper entities.
iscontrolleroutofplace
Members Content
AUTOMATIONS
Member Banner

Join our community to unlock exclusive
content!

  • As a Tinkerer 🤖, you’ll gain:
    • Exclusive Member Content Access: You’ll receive exclusive access to the Member Content on our website.
    • Free Shop Content Access during the first 2 weeks of its release.
      Look for the MemberFree badge on the title.
    • Ko-fi Shop Discount: Enjoy a 25% discount on any item in our Ko-fi shop.
    • Early Tutorial Access: Get early access to our content on our website.
    • Member Shoutout: Stick around until the end for a shoutout to our dedicated members
  • Your support is invaluable in allowing us to continue creating the tutorials you like 😁🏠🎉
  • Click on any of the buttons below to become a member, and then log in with the same email address.

NFC Tag

NFC Tag

Using the affiliate links above helps support the channel and all the content I create 🎉🙌

homeassistant/automations.yaml

alias: Game Mode Tag Scanned
description: ""
mode: single
trigger:
  - platform: tag
    tag_id: 093a435c-df27-4289-8382-9bf75a42ffc2
    id: game_tag
condition: []
action:
  - service: input_boolean.toggle
    metadata: {}
    data: {}
    target:
      entity_id: input_boolean.iscontrolleroutofplace
mode: single

I would love to hear your comments, or suggestions on this post.


Avatar of Fixt

Fixt is a Software Engineer passionate about making the world a better place through technology and automation.