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: Directional Light Bonding with Brightness Sync | |
description: Bind light entity B to entity A's state | |
domain: automation | |
input: | |
light_1: | |
name: Controller Light A | |
selector: | |
entity: | |
domain: 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
#!/bin/bash | |
source ~/venv/bin/activate | |
rm /comics/download/WebToons/*/complete.txt | |
dosage -b /comics/download -c @ | |
COMIC_DL=/comics/download | |
COMIC_CBZ=/comics/cbz | |
COMIC_TMP=/comics/tmp |
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
#!/bin/bash | |
civ_tw=$(curl -s 'https://api.sunrise-sunset.org/json?lat=X&lng=Y&date=today&formatted=0' | json_pp | grep civil_twilight_begin | awk '{print $3}' | sed -e 's/[",]//g') | |
date_sec_ct=$(date -d ${civ_tw} +%s) | |
date_now=$(date +%s) | |
sleepsec=$((${date_sec_ct} - ${date_now})) | |
end_at=$((${date_sec_ct} + 3600)) | |
echo "Sleeping for ${sleepsec}" | |
sleep ${sleepsec} |
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
A few notes about MiLights from messing about. | |
If you link a light to 1 remote, you can link it as zone 1, and then to another remote, as a different zone. | |
(Apparently 3.0 devices can remember 4 linkings in a ring buffer) | |
If you then unlink from any remoe, it unlinks everything. The bulb forgets all other links. | |
The bulb has no memory for who told it what to do. If you turn it on with remote 1 and set to red, | |
then turn it off, then turn it on with remote 2, it will be red. |