Skip to content

Instantly share code, notes, and snippets.

View meilon's full-sized avatar

Christian Arnold meilon

  • 17:08 (UTC +02:00)
View GitHub Profile
@sbyx
sbyx / low-battery-level-detection-notification-for-all-battery-sensors.yaml
Last active April 24, 2024 17:00
Home Assistant Blueprint: Low battery level detection & notification for all battery sensors
blueprint:
name: Low battery level detection & notification for all battery sensors
description: Regularly test all sensors with 'battery' device-class for crossing
a certain battery level threshold and if so execute an action.
domain: automation
input:
threshold:
name: Battery warning level threshold
description: Battery sensors below threshold are assumed to be low-battery (as
well as binary battery sensors with value 'on').
@sbyx
sbyx / notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
Last active April 10, 2024 15:09
Home Assistant Blueprint: Notify or do something when an appliance like a dishwasher or washing machine finishes
blueprint:
name: Appliance has finished
description: Do something when an appliance (like a washing machine or dishwasher)
has finished as detected by a power sensor.
domain: automation
input:
power_sensor:
name: Power Sensor
description: Power sensor entity (e.g. from a smart plug device).
selector:
@vincepare
vincepare / startup.py
Last active November 4, 2016 07:17
Automatic indentation detection for Notepad++ (requires Python Script extension)
# -*- coding: utf-8 -*-
# Automatic indentation detection for Notepad++
# Version 1.0.1
# Copyright (c) 2015 Vincent Paré
# Licensed under the Apache 2.0 license : http://opensource.org/licenses/Apache-2.0
# Tested on Python Script 1.0.8.0 (Python 2.7.6) @ Notepad++ 6.7.8.2
import sys
from Npp import *
sys.stderr = console