Skip to content

Instantly share code, notes, and snippets.

@Mr-Groch
Mr-Groch / offline-notification-for-sensors-with-last_seen.yaml
Last active May 15, 2024 19:44
Home Assistant Blueprint: Offline detection for Z2M devices with last_seen
blueprint:
name: Offline detection for Z2M devices with last_seen
description: Regularly test all sensors with 'last_seen' in name and 'timestamp' device_class
('last seen' Z2M sensors) to detect offline and if so execute an action.
domain: automation
input:
hours:
name: Hours not seen
description: Sensors not seen this amount of time are assumed to be offline.
default: 24
@lmoe
lmoe / mpv.conf
Created December 31, 2018 00:46
[Linux] Final mpv 4k settings for Ryzen 2200G without stuttering or desync
# Arch Linux
# AMD Ryzen 2200G (OC)
# extra/xorg-server 1.20.3-1 (xorg)
# aur/xf86-video-amdgpu-git 18.1.0.33-1
# aur/linux-amd-staging-drm-next-git 4.21.797775.d9c54d61df32-1
# mpv 0.29.1
# audio stuff
audio-device=alsa/hdmi:CARD=Generic,DEV=0
audio-channels=2.1,stereo