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
Created December 6, 2023 09:57
Home Assistant Automation Blueprint: Tradfri E1743 Switch to Light via zigbee2mqtt
blueprint:
name: Tradfri E1743 Switch to Light via zigbee2mqtt
description: "Controls a light with a switch given by ENTITY. \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:
entity:
@peyanski
peyanski / ESPHome-YAML-ld2410-esp32.yaml
Last active May 12, 2024 11:56
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 November 18, 2022 12:24
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=""
@whiskerz007
whiskerz007 / gist:53c6aa5d624154bacbbc54880e1e3b2a
Last active January 3, 2024 00:08
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
@techwithjake
techwithjake / clear-mqtt.yaml
Last active September 4, 2022 16:34
clear-mqtt-from-HA
automation:
- alias: clear_mqtt_topic
initial_state: 'on'
trigger:
- platform: state
entity_id:
- input_text.clear_mqtt_topic
condition:
- condition: template
value_template: "{{ 'homeassistant/sensor/' in states.input_text.clear_mqtt_topic.state }}"