Skip to content

Instantly share code, notes, and snippets.

Shelly Plus1 Home Assistant MQTT Configuration

On the shelly web interface:

  • RPC status notifications over MQTT: Set this to ON (default ON)
  • Generic status update over MQTT: Set this to ON (default OFF)
mqtt:
@lordneon
lordneon / docker-compose.yml
Last active January 12, 2019 22:24
HA + Zigbee2MQTT + MQTT
version: '3'
services:
nginx-proxy:
image: nginx:latest
network_mode: "host"
volumes:
- ./proxy/nginx.conf:/etc/nginx/nginx.conf
- /etc/letsencrypt/archive/REMOVED/fullchain1.pem:/etc/nginx/ssl/fullchain.pem
- /etc/letsencrypt/archive/REMOVED/privkey1.pem:/etc/nginx/ssl/privkey.pem
- ./proxy/dhparams.pm:/etc/nginx/ssl/dhparams.pem;
@lordneon
lordneon / steps.md
Last active April 26, 2024 09:58
UK Light Wiring with Shelly 1

Intro

This is a simple guide on how to automate UK lights with a Shelly 1 by installing the shelly 1 relay into the ceiling pendant which has both permanent live, neutral and a switched live back from the wall switch.

These steps are from my own experience making my lighting "smart" but also user friendly (it works via a wall switch!). This simple guide will go through replacing an a normal ceiling pendant with one with room for a Shelly 1. If you have a ceiling light with a bigger base it's even easier.

Warning Electrical regulations must be followed by law. If you are not a competent person under the regulations do not attempt electrical work. https://www.diydoctor.org.uk/projects/electrical_safety.htm

Wiring Diagram

This diagram has been taken from here and modified to include the Shelly 1. Wiring Diagram

@lordneon
lordneon / esp8266.py
Created October 29, 2018 20:55
Parses ESP8266 firmware blobs in IDA. Drop this file into the loaders directory.
#!/usr/bin/python
# esptool imports
from __future__ import division, print_function
import argparse
import base64
import binascii
import copy
import hashlib