Skip to content

Instantly share code, notes, and snippets.

const getHa = () => document.querySelector('home-assistant');
const waitForDialogCreateCard = (ha, timeoutMs = 2000) =>
new Promise((resolve) => {
const find = () => ha?.renderRoot?.querySelector('hui-dialog-create-card');
const existing = find();
if (existing) return resolve(existing);
const done = (dcc) => {
@btemperli
btemperli / immich_custom-css.css
Last active June 29, 2026 21:30
Immich: Custom CSS for Images
/* Header Navigation */
nav#dashboard-navbar .grid {
grid-template-columns: 230px auto !important;
}
nav#dashboard-navbar .grid a[href="/photos"] {
width: 200px;
position: relative;
padding-right: 3em;
height: 50px;
@Fabrizz
Fabrizz / Cloudflared HomeAssistant.md
Last active April 19, 2026 16:28
Secure HomeAssistant with Cloudflared and client certificates

HA via Cloudflared with mTLS

This tutorial uses Cloudflare Tunnels to allow you to connect to your Home Assistant instance without opening ports to the intertet, it also guide you on adding client certificates (mTLS), allowing only you to access your instance, and fully compatible with the companinn app.

Important

Client certificates do not work properly on IOS. You still can use Cloudflared to allow remote access.
2016 bug HA Issue

Note

If you are not using (/dont want to use/) Cloudflare tunnels, or you want to use other services, HA offers ssl_peer_certificate to validate clients in a similar way.

@darconeous
darconeous / kidde-interconnect.md
Last active July 27, 2025 16:38
kidde-interconnect

Original "dumb" smoke detector interconnect sounds the siren on all interconnected smoke detectors when a 9-to-12 volt (referenced to neutral/white) direct-current signal is continuously present on the signal wire (red). This still how pretty much all interconnected smoke alarms indicate a fire condition.

However, modern interconnected detectors are capable of detecting carbon monoxide and other conditions. When these conditions are signaled, they must be identified as something other than a smoke alarm by the other detectors. Ideally, any dumb smoke detectors