Skip to content

Instantly share code, notes, and snippets.

View lociii's full-sized avatar

Jens Nistler lociii

View GitHub Profile
@lociii
lociii / appliance_status.yaml
Created November 9, 2025 12:14
An appliance status blueprint that survives HomeAssistant reboots
# roughly based on https://gist.github.com/sbyx/6d8344d3575c9865657ac51915684696
mode: single
max_exceeded: silent
blueprint:
name: Appliance has finished
description: Do something when an appliance (like a washing machine or dishwasher) has finished as detected by a power sensor.
domain: automation
input:
power_sensor:
#!/usr/bin/env python
import json
import twitter
import subprocess
import datetime
import csv
class SpeedTest(object):
SPEEDTEST = '/tmp/speedtest.csv'
#!/usr/bin/env python
import twitter
import datetime
import csv
import requests
class OfflineTimer(object):
DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S'
OFFLINE_SINCE = '/tmp/offline_since.txt'