Skip to content

Instantly share code, notes, and snippets.

[{"id":"67a58f4e.b7b7b","type":"api-current-state","z":"d0bc1d69.23ea1","name":"Stop if light is off","server":"e2a02faf.48099","outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"","state_type":"str","state_location":"light_state","override_payload":"msg","entity_location":"light_entity","override_data":"msg","x":1330,"y":200,"wires":[["b2a4c831.860878"],[]]},{"id":"edb29bb1.8b6968","type":"stoptimer","z":"d0bc1d69.23ea1","duration":"4","units":"Hour","payloadtype":"num","payloadval":"0","name":"","x":1362.750015258789,"y":349.33340525627136,"wires":[["841866bf.40f4b8"],["841866bf.40f4b8"]]},{"id":"31bcaab.2f29356","type":"change","z":"d0bc1d69.23ea1","name":"Setup payload.entity_id","rules":[{"t":"delete","p":"payload","pt":"msg"},{"t":"move","p":"data.entity_id","pt":"msg","to":"payload.entity_id","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":200,"wires":[["d69d9808.ed5c28","bc399547.4e9bf8"]]},{"id":"be0e5e3c.b15ab
@walthowd
walthowd / hass-backup.sh
Created June 20, 2018 17:05
Home Assistant Rsync Backup with Dropbox
#!/bin/sh
#############################################################
# Home Assistant Rsync Backup Script
# 1.0 - 6/20/2018 - Walt Howd
#
# This script will backup via rsync
#
# Backups are created in a snapshot style with the latest
# backup being stored in backup.0, the previous backup in
# backup.1, etc.
@walthowd
walthowd / caldav2.py
Created March 9, 2018 22:34
Custom component version of Home Assistant's caldav
"""
Support for WebDav Calendar.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/calendar.caldav/
"""
import logging
import re
from datetime import datetime, timedelta
@walthowd
walthowd / ha-config.yaml
Last active February 19, 2022 21:00
USPS Mail Notifications with Home Assistant and Node-RED - based off https://skalavala.github.io/usps/
homeassistant:
customize:
sensor.usps_mail:
friendly_name: USPS Mail
sensor.usps_packages:
friendly_name: USPS Packages
group:
USPS:
entities:
"""
Platform that supports scanning iCloud.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/device_tracker.icloud/
"""
import logging
import random
import os
@walthowd
walthowd / icloud2.py
Last active March 1, 2019 19:59
Home Assistant custom_component device tracker
"""
Platform that supports scanning iCloud.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/device_tracker.icloud/
"""
import logging
import random
import os