Skip to content

Instantly share code, notes, and snippets.

View thomasmaxson's full-sized avatar
🏠
Working from home

Thomas Maxson thomasmaxson

🏠
Working from home
View GitHub Profile
@thomasmaxson
thomasmaxson / remote_philips_hue_tap_dial.yaml
Last active September 7, 2025 16:55
Home Assistant Blueprint to control your devices with a Philips Hue Tap Dial Switch using the MQTT integration.
# This blueprint uses a Philips Hue Tap Dial Remote Control connected through MQTT.
# This blueprint allows you to run custom actions with the remote's buttons
#
# | Button Type | Interaction | Action Choices |
# | ----------- | ----------------- | ------------------- |
# | One Dot | Press | - Toggle light |
# | | | - Turn on light |
# | | | - Turn off light |
# | | | - Run custom action |
# | ----------- | ----------------- | ------------------- |
@thomasmaxson
thomasmaxson / remote_ikea_somrig_rodret_tradfri_2_button.yaml
Last active September 7, 2025 16:54
Home Assistant Blueprint to control your devices with an IKEA RODRET, IKEA SOMRIG and IKEA TRÅDFRI 2 Button remote using ZHA or MQTT.
# This blueprint uses an IKEA TRÅDFRI, RODRET and SOMRIG 2 Button Remote Control connected through ZHA or MQTT.
# This blueprint allows you to control lights and run custom actions with the remote's buttons
#
# | Button Type | Interaction | Action Choices |
# | ------------- | ------------ | ----------------------- |
# | Power On | Press | - Toggle light(s) state |
# | | | - Run custom action |
# | ------------- | ------------ | ----------------------- |
# | Power On | Press & Hold | - Increase brightness |
# | | | - Run custom action |
@thomasmaxson
thomasmaxson / remote_philips_hue_tap.yaml
Last active September 23, 2025 22:09
Home Assistant Blueprint to control your devices with a Philips Hue Tap Switch using the MQTT integration.
# This blueprint uses a Philips Hue Tap Remote Control connected through MQTT.
# This blueprint allows you to run custom actions with the remote's buttons
#
# | Button Type | Interaction | Action Choices |
# | ----------- | ----------------- | ------------------- |
# | One Dot | Press | - Run custom action |
# | ----------- | ----------------- | ------------------- |
# | Two Dots | Press | - Run custom action |
# | ----------- | ----------------- | ------------------- |
# | Three Dots | Press | - Run custom action |
@thomasmaxson
thomasmaxson / remote_lutron_pico_paddle.yaml
Last active September 7, 2025 16:53
Home Assistant Blueprint to control your devices with Lutron Pico Paddle remotes using the Lutron Caseta integration.
# This blueprint uses an Lutron Pico Paddle Remote Control
# This blueprint allows you to run custom actions with the remote's buttons
#
# | Button | Action | Event |
# | ------ | ------------ | ------------ |
# | On | Press | Custom event |
# | On | Press & Hold | Custom event |
# | Off | Press | Custom event |
# | Off | Press & Hold | Custom event |
@thomasmaxson
thomasmaxson / remote_philips_hue_dimmer.yaml
Last active September 7, 2025 16:53
Home Assistant Blueprint to control your devices with a Philips Hue Dimmer Switch.
# This blueprint uses a Philips Hue Dimmer (RWL020 (US), RWL021 (EU) and RWL022) Remote Control connected through the Hue integration
# This blueprint allows you to control lights and/or run custom actions with the remote's buttons
#
# | Button Type | Interaction | Action Choices |
# | -------------------- | ------------ | ------------------------------------ |
# | Power On (v1) | Press | - Turn on light(s) |
# | Power Button (v2) | | - Toggle light(s) state |
# | | | - Run custom action |
# | -------------------- | ------------ | ------------------------------------ |
# | Power On (v1) | Press & Hold | - Run custom action |
@thomasmaxson
thomasmaxson / switch_inovelli_dimmer.yaml
Last active September 7, 2025 16:52
Home Assistant Blueprint to control your devices with Inovelli Switch (2-in-1, dimmer, etc.) using the MQTT integration.
# This blueprint uses an Inovelli Switch (2-in-1, dimmer, etc.)
#
# | Button Type | Interaction | Action Choices |
# | ----------- | --------------- | ------------------- |
# | On | Single Press | - Run custom action |
# | On | Double Press | - Run custom action |
# | On | Triple Press | - Run custom action |
# | On | Quadruple Press | - Run custom action |
# | On | Quintuple Press | - Run custom action |
# | On | Press and Hold | - Run custom action |
@thomasmaxson
thomasmaxson / remote_lutron_pico_3_button_rl.yaml
Last active September 7, 2025 16:49
Home Assistant Blueprint to control your devices with Lutron Pico remotes using the Lutron Caseta integration.
# This blueprint uses an Lutron Pico 3 Button with Raise/Lower Remote Control
# This blueprint allows you to run custom actions with the remote's buttons
#
# | Button | Action | Event |
# | ------ | ------------ | ------------ |
# | On | Press | Custom event |
# | On | Double Press | Custom event |
# | On | Press & Hold | Custom event |
# | Raise | Press | Custom event |
# | Raise | Double Press | Custom event |
@thomasmaxson
thomasmaxson / remote_sonoff_wireless_switch.yaml
Last active September 7, 2025 16:49
Home Assistant Blueprint to control your devices with an Sonoff Wireless Switch using ZHA.
# This blueprint uses an SONOFF Wireless Switch Remote Control connected through ZHA or Z2MQTT
# This blueprint allows you to control lights and run custom actions with the remote's buttons
#
# | Button Type | Interaction | Action Choices |
# | ------------- | ------------ | ----------------------- |
# | Main Button | Single Press | - Toggle light(s) state |
# | | | - Run custom action |
# | ------------- | ------------ | ----------------------- |
# | Main Button | Double Press | - Toggle light(s) state |
# | | | - Run custom action |
@thomasmaxson
thomasmaxson / room_management_via_occupancy.yaml
Last active September 7, 2025 16:48
Home Assistant Blueprint to manage room occupancy state via door and presence sensors.
blueprint:
name: Manage Area State via Sensors
description: >-
Manage occupancy state via multiple sensors.
- Control what happens when a door opens or occupancy is detected.
- Control what happens when a door closes or occupancy is cleared.
author: Thomas Maxson
source_url: https://gist.github.com/thomasmaxson/635084f3a7f8e1877542c210b39c6ed5
homeassistant:
@thomasmaxson
thomasmaxson / remote_ikea_tradfri_5_button.yaml
Last active September 7, 2025 16:48
Home Assistant Blueprint to control your devices with an IKEA TRÅDFRI 5 button remote using ZHA and MQTT.
# This blueprint uses an IKEA TRÅDFRI 5 Button Remote Control connected through ZHA or MQTT.
# This blueprint allows you to control lights and run custom actions with the remote's buttons
#
# | Button Type | Interaction | Action Choices |
# | -------------------- | ------------ | ------------------------------------------ |
# | Power | Press | - Toggle light(s) state |
# | | | - Run custom action |
# | -------------------- | ------------ | ------------------------------------------ |
# | Brightness, Increase | Press | - Increase light brightness (once) |
# | | | - Run custom action |