Skip to content

Instantly share code, notes, and snippets.

View devstuff's full-sized avatar

John Bates devstuff

View GitHub Profile
@kaczmar2
kaczmar2 / 1-pihole-v6-self-signed-certs.md
Last active April 13, 2025 04:28
Pi-hole v6: Creating Your Own Self-Signed SSL Certificates

Pi-hole v6: Creating Your Own Self-Signed SSL Certificates

See my other guides for SSL certificates on Pi-hole v6:

Overview

Pi-hole v6 introduces changes to its web server:

  • Embedded Web Server – Pi-hole no longer relies on lighttpd.
@DeflateAwning
DeflateAwning / RP2040-Zero with MicroPython Setup Guide.md
Last active January 7, 2025 01:01
RP2040-Zero with MicroPython Setup Guide

RP2040-Zero with MicroPython Setup Guide

  1. Install VS Code.
  2. In VS Code, install the "MicroPico" extension.
  3. Download the MicroPython firmware from: https://micropython.org/download/RPI_PICO/RPI_PICO-latest.uf2
  4. Connect the RP2040-Zero to the computer. If a USB Drive doesn't appear, press: reset-down, boot-down, reset-up, boot-up.
  5. Open the USB Drive that appeared. Copy on the MicroPython uf2 file. Wait 30 seconds.
  6. Use Device Manager (or SerialTest) to see that a new USB Serial Device appeared.
  7. In VS Code with MicroPython, see that it's connected (see the status bar at the very bottom).
  8. Optional: Run pip install micropython-rp2-rpi_pico-stubs to install Python type checking helpers.
@MichaelThomasMPT
MichaelThomasMPT / todo-list-transfer.yaml
Created May 31, 2024 12:23
A script and a couple of automations to allow Home Assistant to transfer todo/shopping list items from one list to another (eg. Google Keep to Todoist)
script:
  todo_list_move_incomplete_items:
    fields:
      source_list:
        description: "Source list to copy from"
      dest_list:
        description: "Destination list to copy to"
      subtext:
        description: "The non-title text to add to the items"
      due_today:
@handcoding
handcoding / Ashley’s Light Fader.yaml
Last active April 28, 2025 10:00
This script for Home Assistant will fade a lamp over time with your choice of easing, including varieties of ease-in, ease-out, and ease-in-out.
alias: Ashley’s Light Fader
description: >
Fades a lamp over time. If you have any questions or comments about this
script, feel free to tweet Ashley Bischoff at @FriendlyAshley. Released under
the Apache 2.0 license. (v2.0)
fields:
light:
name: 💡 Light
description: entity_id of the lamp.
selector:
@mcauser
mcauser / au915_vs_as923.md
Last active April 22, 2025 00:45
AU915 vs AS923
@Tahutipai
Tahutipai / report_zigbee_zwave_devices_gone_offline.yaml
Last active March 13, 2025 22:10 — forked from sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml
Home Assistant Blueprint: Low battery level detection & notification for all battery sensors
blueprint:
name: Report offline zigbee/zwave/battery/smart plug devices
description: Works with Smart Plugs, ZWave, Zigbee etc (Works with ZHA & Z2M)
#By Tahutipai 2024-02-21
#Originally Based on the work of Sybx @ https://community.home-assistant.io/t/low-battery-level-detection-notification-for-all-battery-sensors/258664
#Note: This has been upgraded to report only the Device that is offline, not multiple individual sensors within one Device
domain: automation
input:
time:
name: Time to test on
@flaki
flaki / docker-to-proxmox.md
Created February 7, 2023 21:36
Importing a Docker container image into Proxmox Linux Containers (LXC)

Importing a Docker container into Proxmox/LXC

Importing the container

For this we are going to be using lxc-create, which comes pre-installed on Proxmox but needs further dependencies to fetch the OCI images from Docker:

apt update && apt -y install skopeo umoci jq
@Blackshome
Blackshome / bathroom-humidity-exhaust-fan.yaml
Last active April 27, 2025 10:05
bathroom-humidity-exhaust-fan.yaml
blueprint:
name: Bathroom Humidity Exhaust Fan
description: >
# 🚿 Bathroom Humidity Exhaust Fan
**Version: 2.6**
Step into the future of freshness - customize it your way and experience the convenience of automated humidity control! 🌿🚿
@An-Toha
An-Toha / ESP32_selftemp_en.ino
Created August 31, 2022 14:02
This is sketch for internal temperature sensor ESP32 CPU. * The main ideas are: * to ignore 53.3 (128 before converting to Celsius); * WiFi must be connected, if else you'll get 53.3 (128) only. * * Tested in AI Thinker ESP32 Cam module. Can be add to standard camera example in Arduino. * While ESP32 Cam module was idle - the temperature was aro…
/*This is sketch for internal temperature sensor ESP32 CPU.
* The main ideas are:
* to ignore 53.3 (128 before converting to Celsius);
* WiFi must be connected, if else you'll get 53.3 (128) only.
*
* Tested in AI Thinker ESP32 Cam module. Can be add to standard camera example in Arduino.
* While ESP32 Cam module was idle - the temperature was around 47*C.
* While camera video stream was on - the temperature was rising to around 57*C.
* See temperature values in serial monitor at 115200.
* Best regards, Anton S
@mdegat01
mdegat01 / update_notifications.yaml
Last active March 23, 2025 02:52
Update Notifications Automation Blueprint
blueprint:
name: Update notifications
description: Send notifications for new updates and install or skip on action
homeassistant:
min_version: '2022.4.0'
domain: automation
input:
update_entities:
name: Update entities
description: >-