This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |