Skip to content

Instantly share code, notes, and snippets.

@DirkTas67
DirkTas67 / ESPhome switch SDTH blueprint.yaml
Last active December 22, 2022 18:39 — forked from agdamsbo/ESPhome switch SDTH blueprint
Blueprint with different multi click actions based on text_sensor in ESPhome switch. Controls single, double and triple click as well as hold.
blueprint:
name: ESPhome switch SDTH
description: |
Different actions for different clicks.
Based on text_sensor in ESPhome switch.
ESPhome configuration example: https://gist.github.com/agdamsbo/819c27a5b986c38327d4b19057cbfb6d
## Inspiration ##
ESPhome decoupled approach: https://www.esphome-devices.com/devices/Shelly-1/
@DirkTas67
DirkTas67 / Proxmox snippets
Created December 24, 2019 15:53 — forked from wilfredsmit/Proxmox snippets
How to setup a community version of Proxmox VE 5.2+
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
# Remove nag
cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js{,.bak}
sed -i "s/if (data.status !== 'Active')/if (false)/" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js