Skip to content

Instantly share code, notes, and snippets.

View xbmcnut's full-sized avatar

xbmcnut

View GitHub Profile
@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=""
@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"
#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
@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>
@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:
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
@peyanski
peyanski / ESPHome-YAML-ld2410-esp32.yaml
Last active April 21, 2025 22:01
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
@FloppyGit
FloppyGit / tradfri_e1743_switch_to_light.yaml
Last active February 14, 2025 16:02
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: