Skip to content

Instantly share code, notes, and snippets.

@stream2me
stream2me / Cloudflared HomeAssistant.md
Created November 4, 2024 07:23 — forked from Fabrizz/Cloudflared HomeAssistant.md
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.

@Fabrizz
Fabrizz / Cloudflared HomeAssistant.md
Last active September 18, 2025 08:32
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.

@Blackshome
Blackshome / appliance-notifications.yaml
Last active October 29, 2025 08:45
appliance-notifications.yaml
blueprint:
name: Appliance Notifications & Actions
description: >
# 📳 Appliance Notifications & Actions
**Version: 3.8**
🤔 Watts your appliance up to, you're always in the know from start to finish! 🛎️🔌💸
@HarvsG
HarvsG / match-color-temp-kelvin.yaml
Last active October 23, 2025 19:05
HA Blueprint to match color temperature of lights to the sun. To add it to your home assistant see it on the community forum: https://community.home-assistant.io/t/automatic-circadian-lighting-match-your-lights-color-temperature-to-the-sun/472105
blueprint:
name: Match Outside Colour Temperature Kelvin
description: When a light turns on or the sun elevation changes, match the outside
colour temperature. It will apply to any bulb that supports color temperature.
It triggers; whenever a bulb turns on, on sun elevation changes and every 5 minutes.
domain: automation
input:
target_lights:
name: Lights
description: The primary lights to be controlled
@DiscoYeti
DiscoYeti / traefik-auth.conf
Last active December 6, 2022 09:41
Traefik fail2ban
# /etc/fail2ban/filter.d/traefik-auth.conf
[Definition]
failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) .+\" 401 .+$
@jcberthon
jcberthon / networkmanager-wifi-powersave.md
Last active September 15, 2025 16:56
NetworkManager Wi-Fi powersaving configuration

NetworkManager WiFi Power Saving

NetworkManager supports WiFi powersaving but the function is rather undocumented.

From the source code: wifi.powersave can have the following value:

  • NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value
  • NM_SETTING_WIRELESS_POWERSAVE_IGNORE (1): don't touch existing setting
  • NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave