Skip to content

Instantly share code, notes, and snippets.

View exmetzger's full-sized avatar

exmetzger

  • Troisdorf
  • 18:42 (UTC +01:00)
View GitHub Profile
@networkingcat
networkingcat / yet_another_motion_automation.yaml
Last active February 2, 2026 06:31 — forked from quallenbezwinger/motion_controlled_scenes_enhanced.yaml
Homeassistant blueprint for motion-activated light scene
blueprint:
name: Yet Another Motion Automation
description: >
# YAMA V10
Turn on lights or scenes when motion is detected.
Four different scenes can be defined depending on time of day.
@baqwas
baqwas / Son_laLumi_re2.ino
Created May 28, 2020 21:08
NodeMCU to WS2813 using FastLED
/*
* SoundDetection.ino
* An introductory example to process data from a sound sensor using NodeMCU ESP8266 12E
*
* 2020-05-20 armw v0.1 initial DRAFT
*
* Operations:
* The WS2813 is a 3-wire chipset that combines the LED and its controller in a single
* package.
*
@xbmcnut
xbmcnut / shelly_pir.yaml
Last active June 26, 2025 03:37
Making an outdoor motion sensor smart using a Shelly 1
/**
* I figured out you can fit a Shelly 1 inside the case of many outdoor motion sensors.
* Coupled with that fact that recently, Shelly added a feature to de-couple the switch from the relay
* so they act independently, makes this a great combo! Simply wire the output of the PIR motion sensor
* (the wire that normally goes to your outdoor light) to the switch input of the Shelly and wire
* the lightbulb to the L output of the Shelly. Then, in the Shelly app or directly via the devices webpage,
* select the button type as 'Detached Switch' and use the code below to make it work normally.
* Don't forget to adjust the daylight sensitivity to full daylight if you want the motion detection to work 24/7.
*/
esphome:
name: garage
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
@ajumalp
ajumalp / Install Mosquitto MQTT on Synology NAS Server.txt
Last active October 19, 2025 17:59
Install Mosquitto MQTT on Synology NAS Server
From https://synocommunity.com add http://packages.synocommunity.com to your NAS package sources.
For that, go to NAS->Package Cnter->Click Settings->Package Sources tab.
Then from the community, you can see Mosquitto. Install it.
After installing, please stop the Mosquitto service before updating configuration. You can start service after changes.
Enable Admin login for Synology
Enable SSH in NAS
Download putty and connect to NAS Server
Login using admin
Change to root user [sudo -i, {use admin password}]
Find mosquitto.conf file [find / -name mosquitto.conf]
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active February 14, 2026 17:47
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@davedarko
davedarko / deauther_killer.ino
Created January 16, 2018 17:20
Arduino Script to auto connect to deauthers by spacehuhn with standard passwords and replaces them with whatever you want.
#include <ESP8266WiFi.h>
WiFiClient client;
const char* ssid = "pwned";
const char* password = "deauther";
const char* host = "192.168.4.1";
void setup()
{
Serial.begin(115200);
@ItKindaWorks
ItKindaWorks / powerMon.fzz
Last active February 20, 2023 14:56
A simple arduino and ESP8266 program to read and average 2 current transformers and a voltage transformer for monitoring whole house power usage.
@ItKindaWorks
ItKindaWorks / watering.ino
Created September 11, 2017 14:34
An ESP8266 program to control valves for home irrigation
/*
watering.ino
Copyright (c) 2016 ItKindaWorks All right reserved.
github.com/ItKindaWorks
watering.ino is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@ItKindaWorks
ItKindaWorks / petFeedingMon.ino
Created August 16, 2017 18:22
A small program to help keep track of whether or not your pet has been fed breakfast and dinner
/*
petFeedingMon.ino
Copyright (c) 2016 ItKindaWorks All right reserved.
github.com/ItKindaWorks
petFeedingMon.ino is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.