Skip to content

Instantly share code, notes, and snippets.

@modularTaco
modularTaco / report_zigbee_zwave_devices_gone_offline.yaml
Last active March 14, 2025 10:58 — forked from Tahutipai/report_zigbee_zwave_devices_gone_offline.yaml
Home Assistant Blueprint: Low battery level detection & notification for all battery sensors
blueprint:
name: Report offline zigbee/zwave/battery/smart plug devices
description: Works with Smart Plugs, ZWave, Zigbee etc (Works with ZHA & Z2M)
#By Tahutipai 2024-02-21
#Originally Based on the work of Sybx @ https://community.home-assistant.io/t/low-battery-level-detection-notification-for-all-battery-sensors/258664
#Note: This has been upgraded to report only the Device that is offline, not multiple individual sensors within one Device
domain: automation
input:
time:
name: Time to test on
@modularTaco
modularTaco / influx-editor.sh
Created January 29, 2023 11:40 — forked from jensb/influx-editor.sh
InfluxDB measurement export-edit-reimport hack
#!/bin/bash
#
# Perform Influx v2 query with correct headers as CSV, open editor for changes, and write back to InfluxDB.
#
# Usage: influx-edit.sh <Org/Bucket> <flux_measurement> <from> <to>
# Prerequisites: Need to put login data (host, Org, token) into $HOME/.influxdbv2/configs file.
#
# Author: Jens Benecke <[email protected]>, 2022.
# Published as public domain, as far as legally possible.
#!/bin/bash
#
# Compare two PDF files.
# Dependencies:
# - pdfinfo (xpdf)
# - pdfjam (texlive-extra-utils)
# - diffpdf
#
MAX_HEIGHT=15840 #The maximum height of a page (in points), limited by pdfjam.