Skip to content

Instantly share code, notes, and snippets.

View gerardag's full-sized avatar
👋

Gerard Albanell gerardag

👋
View GitHub Profile
@gerardag
gerardag / org.virtualbox.launch.home-assistant.plist
Created February 5, 2022 10:00
Auto-start VirtualBox VMs (headless) after reboot on Mac OSX
<!--
First of all get your username and machine name using the following commands
$ whoami
$ VBoxManage list vms
After that, locate (or create) the following file and open it:
$ cat /Users/[your-username]/Library/LaunchAgents/org.virtualbox.launch.[your-machine-name].plist
Once opened, paste the following content:
@gerardag
gerardag / vacaciones.yaml
Created June 30, 2021 17:24
Hablemos de Domótica - Vacaciones
# -----------------------------------------------------------
# Con este automatismo lo que hacemos es setear true o false
# un campo para que Home Assistant sepa si estamos de
# vacaciones.
# -----------------------------------------------------------
- id: "Turn on vacation mode"
alias: ⛱️ Turn ON Vacation state
description: ""
trigger:
- platform: state
@gerardag
gerardag / rocket-league.yaml
Last active April 2, 2021 11:19
Rocket League Script when TV is on standby mode
# -----------------------------------------------------------
# Rocket League
# -----------------------------------------------------------
tv_turn_on_xbox_rocket_league:
alias: Rocket League
sequence:
- service: script.turn_on_xbox_on_lg_tv
- service: media_player.play_media
data:
entity_id: media_player.xboxone