Skip to content

Instantly share code, notes, and snippets.

@lymbada
lymbada / spotify_select_player.yaml
Last active May 22, 2022 10:56
Spotify Select Player - a blueprint that will select a spotify account from an (ordered) list, to play music on a specific player (if available)
# Copyright (c) 2022, Matthew Tilney
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
@lymbada
lymbada / low-battery-level-detection-notification-for-all-battery-sensors-with-time-pattern.yaml
Last active April 6, 2023 20:33 — forked from sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml
Home Assistant Blueprint: Low battery level detection & notification for all battery sensors with Time Pattern
blueprint:
name: Low battery level detection & notification for all battery sensors with Time Pattern Detection
description: Regularly test all sensors with 'battery' device-class for crossing
a certain battery level threshold and if so execute an action. Modified version to allow for Time-Pattern based detection.
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').