Skip to content

Instantly share code, notes, and snippets.

View halomakes's full-sized avatar
🚗
zoom-zoom

Alex Griffith halomakes

🚗
zoom-zoom
View GitHub Profile
@halomakes
halomakes / octoprint-psu-control-tasmota.md
Created December 12, 2024 01:31
OctoPrint PSU Control with Tasmota Plug

I got PSU control working with a cheap tasmota smart plug and thought I'd share my settings for anyone interested. Of course, replace 3dprinterrelay.iot.gravy.network with the hostname of your relay. I recommend not giving it any internet access. You can password protect these calls if you are so inclined.

Switching

Switching Method: System Command On System Command:

curl http://3dprinterrelay.iot.gravy.network/cm?cmnd=Power%20On

Off System Command:

@halomakes
halomakes / readme.md
Created October 14, 2022 18:58
The Lounge Uploads Proxy with Inline MOV files

Proxies lounge uploads directory while adding headers to .MOV files (coming from Apple devices) to make them open in browser instead of downloading as an attachment.

@halomakes
halomakes / _DSC1304.JPG
Last active July 19, 2023 18:43
AirGradient Pro ESPHome Configuration
_DSC1304.JPG
@halomakes
halomakes / Dockerfile
Last active August 30, 2022 17:20
FileBrowser Docker
FROM alpine:latest as unzipper
RUN apk add unzip wget curl
RUN mkdir /download/
RUN mkdir /download/output/
RUN wget -O /download/file.zip https://filebrowser.linuxforphp.net/files/filebrowser-8.0.2.zip
RUN unzip /download/file.zip -d /download/output/
FROM php:7.4-apache
RUN apt update
@halomakes
halomakes / switchbot-plug-mini-esphome.yml
Last active April 12, 2025 00:18
SwitchBot Plug Mini ESPHome
substitutions:
device_name: switchbot-plug-1
device_description: Energy Monitoring Smart Plug (W1901400)
friendly_name: SwitchBot Plug Mini
esphome:
name: ${device_name}
comment: ${device_description}
platformio_options:
board_build.flash_mode: dio
@halomakes
halomakes / set-zen32-indicator-for-light.yml
Last active October 6, 2024 14:30
Blueprint: Set Indicator on a ZEN32 Scene Controller button Based on Light Status
blueprint:
name: Set Indicator Light on Scene Controller
description: For Zooz ZEN32. Sets the indicator color when light is off or dimmed.
domain: automation
input:
zooz_switch:
name: Zooz Switch
description: List of available Zooz ZEN32 switches.
selector:
device:
@halomakes
halomakes / control-light-with-zen32.yml
Last active February 16, 2024 19:20
Blueprint: Control a light with a button on a Zooz ZEN32 Scene Controller
blueprint:
name: Control Light with Scene Controller
description: For Zooz ZEN32. Toggle a light with a single press, set it to max brightness with double-tap, night-light mode with hold.
domain: automation
input:
zooz_switch:
name: Zooz Switch
description: List of available Zooz ZEN32 switches.
selector:
device: