Skip to content

Instantly share code, notes, and snippets.

@TheGroundZero
TheGroundZero / esp32_ssd1306.yaml
Last active October 31, 2023 20:00
SSD1306 OLED Display and ESP32 dev kit v1
# ESP32 board:
# - https://www.aliexpress.com/item/1005001267643044.html
# SSD1306 OLED Display:
# - https://s.click.aliexpress.com/e/_AVnlEn
# ESPHome docs:
# - https://esphome.io/components/display/ssd1306.html
# - https://esphome.io/components/i2c.html#i2c
# - https://esphome.io/components/display/index.html#formatted-text
# Wiring diagram
@TheGroundZero
TheGroundZero / shelly_config-all.sh
Created April 15, 2021 13:14
Simple loop using cURL to change the config of all Shellys in a network
# See docs on HTTP API
# https://shelly-api-docs.shelly.cloud/#settings
# Linux / Mac
for i in {2..254}; do curl -m 1 http://192.168.1.$i/settings?<setting parameters>; done
# Windows
# Note: use %% instead of % when saving this in a BATCH script (.bat)
FOR /L %I IN (2,1,254) DO curl -m 1 http://192.168.1.%I/settings?<setting parameters>
# --- EXAMPLES ---
@TheGroundZero
TheGroundZero / espcam.yaml
Last active April 14, 2021 13:22
ESPcam ESP32-S AI-Thinker camera
# Board: https://www.aliexpress.com/item/32807887667.html
# FTDI flasher: https://www.aliexpress.com/item/32650148276.html
# Use 3.3V from FTDI for flashing
# Use 5V 1A+ power supply for powering the board
substitutions:
esphome_name: espcam_example
camera_name: Camera example
esphome:

Keybase proof

I hereby claim:

  • I am thegroundzero on github.
  • I am sequr (https://keybase.io/sequr) on keybase.
  • I have a public key ASB95OjvR5seIgCuBpXpfmVv4uv3fSNEgVXc76ofXJAk7Ao

To claim this, I am signing this object:

@TheGroundZero
TheGroundZero / nodered-rhasspy_announcement
Created January 27, 2021 16:55
Node-RED subflow for Rhasspy notifications
[{
"id": "2489ff2a.b70c5",
"type": "subflow",
"name": "Rhasspy announcement",
"info": "",
"category": "",
"in": [{
"x": 40,
"y": 60,
"wires": [{
@TheGroundZero
TheGroundZero / nodered-vuilnisophaling.json
Created January 27, 2021 16:45
Node-RED Notification for garbage collection
[{
"id": "cff3f2b8.ed05c8",
"type": "tab",
"label": "Vuilnis ophaling",
"disabled": false,
"info": ""
}, {
"id": "3653f0c5.b43408",
"type": "inject",
"z": "cff3f2b8.ed05c8",
@TheGroundZero
TheGroundZero / nodered-notify.json
Created January 27, 2021 16:36
Node-RED Notify sub-flow
[{
"id": "cb290db1.265c48",
"type": "subflow",
"name": "Notify",
"info": "",
"category": "",
"in": [{
"x": 40,
"y": 100,
"wires": [{
@TheGroundZero
TheGroundZero / shelly_roller_ha.yaml
Last active August 3, 2022 16:10
Home Assistant configuration for Shelly 2.5 in Roller Mode
# Shelly 2.5
# Roller Mode
# Based on https://shelly-api-docs.shelly.cloud/?shell#shelly2-5-mqtt
# And https://www.home-assistant.io/integrations/cover.mqtt/
cover:
- platform: mqtt
name: Rolling Shutters
command_topic: shellies/shellyswitch25-<deviceid>/roller/0/command # rc, open, close and stop
state_topic: shellies/shellyswitch25-<deviceid>/roller/0 # open, close, stop
@TheGroundZero
TheGroundZero / ha_broadlink-rm4pro.yaml
Created October 7, 2020 09:59
Configuration for a Broadlink RM4 Pro in Home Assistant, including some IR codes for an LG TV
@TheGroundZero
TheGroundZero / homeassistant_telenet_digicorder_IR.yaml
Last active November 24, 2020 11:11
Configuration for a Broadlink RM4 Pro in Home Assistant, including some RF codes for Telenet Digicorder (black remote w/out voice).
remote:
- platform: broadlink
host: 192.168.xxx.xxx
mac: 'ab:cd:ef:12:34:56':
switch:
- platform: broadlink
host: 192.168.xxx.xxx
mac: 'ab:cd:ef:12:34:56'
switches: