Skip to content

Instantly share code, notes, and snippets.

@xpavli44
xpavli44 / blueprint_appliance_finished_shaking.yaml
Last active August 18, 2022 08:13
Blue print to work with Aqara vibration sensor for automation to trigger notification or other action when Dishwasher or washing Machine is done. Credits to https://community.home-assistant.io/t/blue-print-to-work-with-aqara-vibration-sensor-for-automation-to-trigger-notification-or-other-action-when-dishwasher-or-washing-machine-is-done/282553
blueprint:
name: Appliance has finished shaking
description: Do something when an appliance (like a washing machine or dishwasher)
has finished as detected by a vibration sensor.
domain: automation
input:
vibration_sensor:
name: Vibration Sensor
description: 'Vibration sensor entity (e.g. Aqara lumi.vibration.aq1
by LUMI vibration sensor). Needs to have device_class:
@xpavli44
xpavli44 / renice-audio.sh
Last active November 21, 2019 14:31 — forked from redolent/renice-audio.sh
Fix Bluetooth Audio on Mac
#!/bin/bash
list="$(
sudo ps -A \
| grep -iE '([h]ear|[f]irefox|[b]lue|[c]oreaudiod)' \
| cut -c 1-90
)"
pids=$( cut -c 1-6 <<< "$list")