This file contains 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
blueprint: | |
name: Sensor Light | |
description: > | |
# Sensor Light | |
**Version: 4.2** | |
The most common automation used for a sensor light. | |
This file contains 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 | |
# initial script by b1n4r1b01 but he deleted his repo | |
# https://gist.github.com/woachk/6092f9ae950455dcdf8428c3ce2d639e | |
# added python3 support | |
import sys | |
import struct | |
import os | |
This file contains 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 bash | |
set -euo pipefail | |
usage () { | |
echo "Usage: $(basename $0) {up|down|[job stage]}" | |
echo "[job stage] - defaults to "build" and supports multiple comma delimited jobs" | |
echo "$(basename $0) test,build" | |
} | |
PWD_RESOLVED="$(pwd -P)" |