Skip to content

Instantly share code, notes, and snippets.

Shelly Home Assistant Failover Script

A script for Shelly devices that automatically switches between "smart" and "dumb" modes based on Home Assistant connectivity. Perfect for setups where you want smart home functionality when Home Assistant is available, but need traditional switch functionality during outages.

Primary Use Case

Originally developed for controlling smart bulbs (like Philips Hue) where:

  • Shelly device controls power to smart bulbs
  • Physical switch input is used as a trigger for Home Assistant automations
  • Power to smart bulbs remains always on during normal operation
@linuxmalaysia
linuxmalaysia / sysctl-proxmox-tune.conf
Last active March 1, 2025 17:25 — forked from sergey-dryabzhinsky/sysctl-proxmox-tune.conf
Most popular speedup sysctl options for Proxmox. Put in /etc/sysctl.d/
###
# Proxmox or other server kernel params cheap tune and secure.
# Try it if you have heavy load on server - network or memory / disk.
# No harm assumed but keep your eyes open.
#
# @updated: 2020-02-06 - more params used, adjust some params values, more comments on params
# Origin https://gist.github.com/sergey-dryabzhinsky/bcc1a15cb7d06f3d4606823fcc834824
# @updated: 2023-12-21 - To test with proxmox v8
# # update: https://gist.github.com/linuxmalaysia/7ba3ded2dd3ec7f2491e549e6dcd73ec