Skip to content

Instantly share code, notes, and snippets.

View lbschenkel's full-sized avatar

Leonardo Brondani Schenkel lbschenkel

View GitHub Profile
@lbschenkel
lbschenkel / 00-README.md
Last active January 6, 2025 14:34
ESPhome example for smart light switches controlling smart lights via HASS that degrade to dumb mode automatically

Posting by request from https://www.reddit.com/r/homeassistant/comments/1hufw9c/i_got_my_shellys_to_keep_working_in_case_of_a/

My ESPHome file is higly modularized with a lot of other functionality that is not relevant right now, so here's an extract of the relevant bits. It's a bit more verbose than usual because it's the output of ESPHome validation process, which dumps the processed YAML after "expanding" it.

Context:

  • light switch is a Shelly, but not really relevant — any ESP relay with a button would work
  • connected to the relay are smart lights talking Zigbee
  • when switch is "smart", relay remains on all the time and switch talks to HASS that turns on/off the light accordingly
@lbschenkel
lbschenkel / MitID+GrapheneOS.md
Last active January 29, 2025 10:40
MitID with GrapheneOS

MitID is a very finicky app that sometimes stops working in GrapheneOS. For that reason I strongly recommend disabling automatic updates for this particular app in the Play Store, and only updating when there is evidence that the new version will keep working. It's also worth it to order a code display as a back up authenticator — it's free.

For the sake of other users I will try my best to document here which versions work and which don't work.


@lbschenkel
lbschenkel / README.md
Last active August 31, 2019 08:24
CAVE flash chips

IMG_20190831_095717

@lbschenkel
lbschenkel / openwrt-openssl-speed.txt
Last active January 10, 2016 21:27
openwrt-openssl-speed
linux-generic-openwrt:
root@OpenWrt:~# openssl version -a
OpenSSL 1.0.2e 3 Dec 2015
built on: reproducible build, date unspecified
platform: linux-generic-openwrt
options: bn(64,32) rc4(ptr,char) des(idx,cisc,2,long) blowfish(ptr)
compiler: ccache_cc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -I/home/vagrant/openwrt/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/usr/include -I/home/vagrant/openwrt/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/include -I/home/vagrant/openwrt/staging_dir/toolchain-powerpc_8540_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/vagrant/openwrt/staging_dir/toolchain-powerpc_8540_gcc-4.8-linaro_uClibc-0.9.33.2/include -DOPENSSL_SMALL_FOOTPRINT -DOPENSSL_NO_ERR -DTERMIOS -O2 -pipe -mcpu=8548 -mspe -mabi=spe -misel -mhard-float -mfloat-gprs=double -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -O3 -fPIC -fomit-frame-pointer -Wall
OPENSSLDIR: "/etc/ssl"
ro
@lbschenkel
lbschenkel / keybase.md
Last active April 5, 2019 11:52
Keybase proof

Keybase proof

I hereby claim:

  • I am lbschenkel on github.
  • I am leonardo (https://keybase.io/leonardo) on keybase.
  • I have a public key whose fingerprint is F7AD F5C1 77C8 15BC ABDD A17C D355 972D B201 A396

To claim this, I am signing this object: