Updated: Apr 21, 2024β€”7 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

Tinkerers Content
ZIP
Member Banner

Join at Tinkerer or Automation Hero tier to unlock Exclusive Content!

BENEFITS BY TIER
  • Starters 🌟:
    • Ad-Free: You'll get a completly Add-free experience on our website.
    • Early Tutorial Access: Get early access to our content on our website.
    • Smart Tutorial Video Player: Easily find the exact code, link, or button you need for each part of the tutorial.
    • Discord Access: Connect with other members and receive real-time updates.
    • Member Shoutout: Stick around until the end for a shoutout to our members.
  • Tinkerers πŸ€–:
    • All rewards included in previous tier
    • Free Access to Selected Blueprints and Projects in Our Website Library.
    • Tinkerers Content: You’ll have the ability to access Scripts, Automations, Templates and more, directly from our website.
    • Unlock Latest Shop Content for FREE: Look for the TinkererFree badge on the title
      Once unlocked, it will remain free for you to access on our website library (including future UPDATES!)
    • Behind-the-scenes videos of the projects, I'm working on, that not always end up on a tutorial.
  • Automation Heroes πŸ¦Έβ€β™‚οΈ:
    • All rewards included in previous tier
    • Participate in Monthly Live Q&As where I will be able to answer your questions and even help you with some specific problem on your Home Assistant Setup
    • Suggest Tutorials for Our Patreon Members to Vote On, to Be Produced Within the Next 2 Months
  • Your support is invaluable in allowing us to continue creating the tutorials you like πŸ˜πŸ πŸŽ‰
  • Click on the Patreon button below to become a member, and then log in with your Patreon Account on our website.

AutoLogon: You can find the AutoLogon tool here


Tinkerers Content
SCRIPTS
Member Banner

Join at Tinkerer or Automation Hero tier to unlock Exclusive Content!

BENEFITS BY TIER
  • Starters 🌟:
    • Ad-Free: You'll get a completly Add-free experience on our website.
    • Early Tutorial Access: Get early access to our content on our website.
    • Smart Tutorial Video Player: Easily find the exact code, link, or button you need for each part of the tutorial.
    • Discord Access: Connect with other members and receive real-time updates.
    • Member Shoutout: Stick around until the end for a shoutout to our members.
  • Tinkerers πŸ€–:
    • All rewards included in previous tier
    • Free Access to Selected Blueprints and Projects in Our Website Library.
    • Tinkerers Content: You’ll have the ability to access Scripts, Automations, Templates and more, directly from our website.
    • Unlock Latest Shop Content for FREE: Look for the TinkererFree badge on the title
      Once unlocked, it will remain free for you to access on our website library (including future UPDATES!)
    • Behind-the-scenes videos of the projects, I'm working on, that not always end up on a tutorial.
  • Automation Heroes πŸ¦Έβ€β™‚οΈ:
    • All rewards included in previous tier
    • Participate in Monthly Live Q&As where I will be able to answer your questions and even help you with some specific problem on your Home Assistant Setup
    • Suggest Tutorials for Our Patreon Members to Vote On, to Be Produced Within the Next 2 Months
  • Your support is invaluable in allowing us to continue creating the tutorials you like πŸ˜πŸ πŸŽ‰
  • Click on the Patreon button below to become a member, and then log in with your Patreon Account on our website.

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

Tinkerers Content
AUTOMATION
Member Banner

Join at Tinkerer or Automation Hero tier to unlock Exclusive Content!

BENEFITS BY TIER
  • Starters 🌟:
    • Ad-Free: You'll get a completly Add-free experience on our website.
    • Early Tutorial Access: Get early access to our content on our website.
    • Smart Tutorial Video Player: Easily find the exact code, link, or button you need for each part of the tutorial.
    • Discord Access: Connect with other members and receive real-time updates.
    • Member Shoutout: Stick around until the end for a shoutout to our members.
  • Tinkerers πŸ€–:
    • All rewards included in previous tier
    • Free Access to Selected Blueprints and Projects in Our Website Library.
    • Tinkerers Content: You’ll have the ability to access Scripts, Automations, Templates and more, directly from our website.
    • Unlock Latest Shop Content for FREE: Look for the TinkererFree badge on the title
      Once unlocked, it will remain free for you to access on our website library (including future UPDATES!)
    • Behind-the-scenes videos of the projects, I'm working on, that not always end up on a tutorial.
  • Automation Heroes πŸ¦Έβ€β™‚οΈ:
    • All rewards included in previous tier
    • Participate in Monthly Live Q&As where I will be able to answer your questions and even help you with some specific problem on your Home Assistant Setup
    • Suggest Tutorials for Our Patreon Members to Vote On, to Be Produced Within the Next 2 Months
  • Your support is invaluable in allowing us to continue creating the tutorials you like πŸ˜πŸ πŸŽ‰
  • Click on the Patreon button below to become a member, and then log in with your Patreon Account on our website.

Game Mode Scripts

Tinkerers Content
SCRIPTS
Member Banner

Join at Tinkerer or Automation Hero tier to unlock Exclusive Content!

BENEFITS BY TIER
  • Starters 🌟:
    • Ad-Free: You'll get a completly Add-free experience on our website.
    • Early Tutorial Access: Get early access to our content on our website.
    • Smart Tutorial Video Player: Easily find the exact code, link, or button you need for each part of the tutorial.
    • Discord Access: Connect with other members and receive real-time updates.
    • Member Shoutout: Stick around until the end for a shoutout to our members.
  • Tinkerers πŸ€–:
    • All rewards included in previous tier
    • Free Access to Selected Blueprints and Projects in Our Website Library.
    • Tinkerers Content: You’ll have the ability to access Scripts, Automations, Templates and more, directly from our website.
    • Unlock Latest Shop Content for FREE: Look for the TinkererFree badge on the title
      Once unlocked, it will remain free for you to access on our website library (including future UPDATES!)
    • Behind-the-scenes videos of the projects, I'm working on, that not always end up on a tutorial.
  • Automation Heroes πŸ¦Έβ€β™‚οΈ:
    • All rewards included in previous tier
    • Participate in Monthly Live Q&As where I will be able to answer your questions and even help you with some specific problem on your Home Assistant Setup
    • Suggest Tutorials for Our Patreon Members to Vote On, to Be Produced Within the Next 2 Months
  • Your support is invaluable in allowing us to continue creating the tutorials you like πŸ˜πŸ πŸŽ‰
  • Click on the Patreon button below to become a member, and then log in with your Patreon Account on our website.

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
Tinkerers Content
AUTOMATIONS
Member Banner

Join at Tinkerer or Automation Hero tier to unlock Exclusive Content!

BENEFITS BY TIER
  • Starters 🌟:
    • Ad-Free: You'll get a completly Add-free experience on our website.
    • Early Tutorial Access: Get early access to our content on our website.
    • Smart Tutorial Video Player: Easily find the exact code, link, or button you need for each part of the tutorial.
    • Discord Access: Connect with other members and receive real-time updates.
    • Member Shoutout: Stick around until the end for a shoutout to our members.
  • Tinkerers πŸ€–:
    • All rewards included in previous tier
    • Free Access to Selected Blueprints and Projects in Our Website Library.
    • Tinkerers Content: You’ll have the ability to access Scripts, Automations, Templates and more, directly from our website.
    • Unlock Latest Shop Content for FREE: Look for the TinkererFree badge on the title
      Once unlocked, it will remain free for you to access on our website library (including future UPDATES!)
    • Behind-the-scenes videos of the projects, I'm working on, that not always end up on a tutorial.
  • Automation Heroes πŸ¦Έβ€β™‚οΈ:
    • All rewards included in previous tier
    • Participate in Monthly Live Q&As where I will be able to answer your questions and even help you with some specific problem on your Home Assistant Setup
    • Suggest Tutorials for Our Patreon Members to Vote On, to Be Produced Within the Next 2 Months
  • Your support is invaluable in allowing us to continue creating the tutorials you like πŸ˜πŸ πŸŽ‰
  • Click on the Patreon button below to become a member, and then log in with your Patreon Account on our website.

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