Skip to content

Instantly share code, notes, and snippets.

View xbmcnut's full-sized avatar

xbmcnut

View GitHub Profile
@FloppyGit
FloppyGit / tradfri_e1743_switch_to_light.yaml
Last active January 6, 2025 14:16
Home Assistant Automation Blueprint: Tradfri E1743 Switch to Light via zigbee2mqtt
blueprint:
name: Tradfri E1743 Switch to Light via zigbee2mqtt
description: "Updated to Z2M v2. Controls a light with a given TRADFRI on/off switch. \n\nShort Button press will toggle light for both Buttons (helpfull in darkness) \n\n Mode set to restart is mandatory for stop after long press to work."
domain: automation
input:
source_switch_e1743_action:
name: Tradfri E1743 Switch
description: The switch-action which triggers this automation.
selector:
device:
@peyanski
peyanski / ESPHome-YAML-ld2410-esp32.yaml
Last active December 8, 2024 15:51
Use this code to make your LD2410 sensor to work with ESP32 or ESP8266 board
esphome:
name: ld2410-esp32
friendly_name: ld2410-esp32
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
esphome:
name: phsensor
platform: ESP8266
board: d1_mini
wifi:
ssid: "YOUR_WIFI_NAME"
password: "YOUR_WIFI_PASS"
# Enable fallback hotspot (captive portal) in case wifi connection fails
@hunterjm
hunterjm / actionable_notification.yaml
Last active July 25, 2023 07:42
Actionable Notification Blueprint
blueprint:
name: Acknowledge Alert Notification
description: |
## Acknowledge Alert Notification
This blueprint will repeatedly send a notification to your device at a pre-defined interval until it has been acknowledged via the actionable notification.
domain: automation
source_url: https://gist.github.com/hunterjm/fb0d6fc49df910193cf61317149074ee
input:
@mattncsu
mattncsu / TempSender.ino
Created January 27, 2022 02:32
Posted as an exmaple of receiving UDP broadcasts from Weatherflow Tempest
#include <WiFi.h> //D8:A0:1D:63:45:5C
#include <ESPAsyncWebServer.h>
#include <DS18B20.h>
#include "AsyncUDP.h"
#include <ArduinoJson.h>
#include "FastLED-timers.h"
#include <AsyncElegantOTA.h>
#include <AsyncTCP.h>
#include <ArduinoJson.h>
#ith - v1 - backlight untested, works good otherwise, use buttons to cycle
esphome:
name: ttg
platform: ESP32
board: featheresp32
font:
- file: 'fonts\slkscr.ttf'
id: font_slkscr_8
size: 8
@thxthx0
thxthx0 / WiFi-Dimmer-Script.txt
Last active October 15, 2024 12:59
Tasmota Script Ver. a for QS-WiFi-D01-TRIAC 150W 1CH-Dimmer
>D
sw=0
tmp=0
cnt=0
tmr=0
hold=0
pwrt=0
slid=0
dim=""
doff="FF550005DC0A"
@KiLLeRRaT
KiLLeRRaT / WiFi-Dimmer-Script-v0.3 - Dimmer with toggle switch.txt
Last active December 3, 2019 12:51
WiFi-Dimmer-Script-v0.3 - Dimmer with toggle switch.txt
>D
sw=0
swprev=0
tmp=0
cnt=0
tmr=0
hold=0
powert=0
slider=0
dim=""
@dale3h
dale3h / automations.yaml
Created May 15, 2019 04:45
[Home Assistant] Webhook Debugger
# Webhook URL: https://[your-hass-domain]/api/webhook/2qDFuSEBA7jU2sNjaK6JD5ac3FxnGfVTSF
- id: webhook_debugger
alias: "Webhook Debugger"
trigger:
- platform: webhook
webhook_id: 2qDFuSEBA7jU2sNjaK6JD5ac3FxnGfVTSF
action:
- service: persistent_notification.create
data_template:
@whiskerz007
whiskerz007 / gist:53c6aa5d624154bacbbc54880e1e3b2a
Last active November 10, 2024 02:39
How to setup a community version of Proxmox VE 5.x-6.x
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
apt-get update
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
apt-get update
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script