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 | |
# Script that reschedules is self in crontab | |
# Should be added to crontab manually first | |
# Also add/call the "real job" (actual program) you want to run in crontab | |
# Comes with NO warranty, use at your own risk! | |
# Max range for added random time | |
days=30 | |
hours=10 |
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
import hassapi as hass | |
# | |
# App to turn lights on when motion detected then off again after a delay | |
# | |
# Use with constraints to activate only for the hours of darkness | |
# | |
# Args: | |
# | |
# sensor: binary sensor to use as trigger |