Skip to content

Instantly share code, notes, and snippets.

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

Devin Green artistro08

🏠
Working from home
View GitHub Profile
@artistro08
artistro08 / blueprint.yaml
Last active September 8, 2026 20:34
Home assistant webhook from n8n
blueprint:
name: Phone Do Not Disturb via Webhook
description: >
Sets Do Not Disturb on an Android phone running the Home Assistant
companion app, driven by an external webhook (n8n, etc.).
POST a JSON body of {"dnd": "on"} or {"dnd": "off"} — an empty body is
treated as "on".
Android only: iOS has no DND notification command. The first command sent
@artistro08
artistro08 / gradual_wakeup_lights.yaml
Created August 21, 2026 12:36
Gradually increase light brightness to a target time, adjustable duration, start brightness, selectable weekdays
blueprint:
name: Gradually Increase Brightness By Time
description: >
Lights turn on at a starting brightness, then ramp up natively
(light.turn_on transition) to reach target brightness exactly at
finish time. Duration adjustable.
domain: automation
input:
target_lights:
name: Lights
@artistro08
artistro08 / circadian_kelvin.yaml
Created July 30, 2026 21:19
Home Assistant blueprint: Circadian Kelvin Ramp - gradually ramps selected lights across a configurable color temperature range over a configurable time window, with a guard that skips the run if any light is outside the kelvin range.
blueprint:
name: Circadian Kelvin Ramp
description: >
Gradually ramps selected lights across a color temperature range over a
configurable time window.
Defaults ramp from 6535K (cool) at 4:00 AM down to 2000K (warm) at 5:00 PM.
Swap the start/end kelvin values to invert the direction.
@artistro08
artistro08 / mass_llm_enhanced_assist_blueprint_en.yaml
Created July 25, 2026 19:32
Fixed: Music Assistant LLM-enhanced Assist blueprint (YAML quote escaping on line 516)
blueprint:
domain: automation
name: Music Assistant - Local LLM Enhanced Voice Support Blueprint
source_url: https://github.com/music-assistant/voice-support/blob/main/llm-enhanced-local-assist-blueprint/mass_llm_enhanced_assist_blueprint_en.yaml
description: '![Image](https://github.com/music-assistant/voice-support/blob/main/assets/music-assistant.png?raw=true)
# Play media using voice commands with LLM assistance
### Blueprint setup
@artistro08
artistro08 / README.MD
Last active August 26, 2026 15:14
How to setup a LEMP Development Environment with WSL2 & Valet Linux
@artistro08
artistro08 / tasks.json
Created March 3, 2023 01:33
Add October CMS Commands to VS Code
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "october:install",
"type": "shell",
"command": "php artisan october:install",
"problemMatcher": []
@artistro08
artistro08 / bootstrap-icons.sh
Created June 17, 2022 21:18
Create JSON Import file from icons. Used for Tailor Entries in OctoberCMS
#!/bin/bash
#
# Bash file to create json output of Bootstrap Icons.
# Used for Tailor, an OctoberCMS Feature
# Requires jq: https://stedolan.github.io/jq
#
index=0
for file in $(ls *.svg);
@artistro08
artistro08 / plugin-management.php
Created October 30, 2021 13:25
Plugin Management from the Deploy Console in RainLab.Deploy on OctoberCMS
<?php
// Install A plugin from the Rainlab Deploy Console
Artisan::call('plugin:install', ['name' => 'Acme.BlogPost', '--force' => true]);
echo Artisan::output();
// Remove A plugin from the Rainlab Deploy Console
Artisan::call('plugin:remove', ['name' => 'Acme.BlogPost', '--force' => true]);
echo Artisan::output();
@artistro08
artistro08 / README.MD
Last active August 30, 2022 19:39
Dynamic Layout builder for OctoberCMS
@artistro08
artistro08 / sync.sh
Last active March 10, 2021 15:01
Sync Storage & Database from Local to Dev - OctoberCMS
#!/bin/bash
# OctoberCMS Deployment for Git managed Files
#
# I created this bash script because I found myself
# Typing the same commands over and over again to
# import my storage and database directories for
# Clients. Running this will (more or less) zip your
# storage directory, Export your database, and import
# your database & storage directory to the server
# Where you have git deployed.