This file contains hidden or 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
| [{"id":"cf4c09c8.62a618","type":"subflow","name":"Proximity Direction","info":"","category":"","in":[{"x":100,"y":120,"wires":[{"id":"f3d3f8e3.baa6d8"}]}],"out":[{"x":900,"y":100,"wires":[{"id":"39d50f9b.dce93","port":0},{"id":"f3d3f8e3.baa6d8","port":1}]},{"x":900,"y":140,"wires":[{"id":"a83c7954.ef7ff8","port":0},{"id":"f3d3f8e3.baa6d8","port":2}]}],"env":[],"color":"#DDAA99","status":{"x":900,"y":200,"wires":[{"id":"811548e6.c2d138","port":0}]}},{"id":"fb59e76e.78b738","type":"switch","z":"cf4c09c8.62a618","name":"To/From","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"data.event.old_state.state","vt":"msg"},{"t":"gt","v":"data.event.old_state.state","vt":"msg"}],"checkall":"true","repair":false,"outputs":2,"x":380,"y":120,"wires":[["f1af8369.45e2d","47cc6705.3dbdb8"],["5df4fd11.b2f164","fe55edd.ac4731"]]},{"id":"f1af8369.45e2d","type":"counter","z":"cf4c09c8.62a618","name":"","init":"0","step":"1","lower":"","upper":"2","mode":"increment","outputs":"1","x":660,"y":100,"wires":[["39d50f |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import requests | |
| from urllib.parse import urljoin | |
| username = "REDACTED" | |
| password = r"REDACTED" | |
| cloud_key_ip = "192.168.1.2" | |
| controller_port = 8443 | |
| site_name = "default" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| /* open up chrome dev tools (Menu > More tools > Developer tools) | |
| * go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading) | |
| * right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR | |
| * open up JS console and enter: var har = [paste] | |
| * (pasting could take a while if there's a lot of requests) | |
| * paste the following JS code into the console | |
| * copy the output, paste into a text file | |
| * open up a terminal in same directory as text file, then: wget -i [that file] | |
| */ |
This file contains hidden or 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
| #! /usr/local/bin/python3 | |
| # WARNING: USE AT YOUR OWN RISK, NOT RESPONSIBLE FOR BOTCHED HOME ASSISTANT CONFIGURATIONS | |
| # Change the two lines below and run with `python3 device_tracker_purge.py` | |
| PATH = "/config/.storage/core.entity_registry" | |
| PURGE_PATTERN = "^device_tracker\." | |
| import json | |
| import logging |
This file contains hidden or 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
| ################################################################# | |
| # # | |
| # YAML Anchors for Room Cards # | |
| # # | |
| ################################################################# | |
| --- | |
| # The following custom cards must be installed in HACS: | |
| # - text-element | |
| # - stack-in-card (or vertical-stack-in-card) |
This file contains hidden or 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 | |
| # Exit on error | |
| set -e | |
| # Check for exactly 2 arguments | |
| if [ "$#" -ne 2 ]; then | |
| echo "Usage: $0 OLD_VOLUME NEW_VOLUME" | |
| exit 1 | |
| fi |
This file contains hidden or 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
| """pushover_logger | |
| Lightweight helper to buffer Python logging and send the accumulated | |
| messages to Pushover when the process exits. Designed for ad-hoc scripts | |
| and cron jobs where a concise, monospace summary is useful. | |
| Usage example: | |
| from pushover_logger import setup_logger | |
| log = setup_logger(__name__, pushover_title="Daily job run") |
OlderNewer