(GITHUB gists do not allow us to manage the order easily)
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: Motion-activated light scene with optional ambient scene with sun elevation sensor | |
description: Turn on a light scene when motion is detected and the sun is below given threshold. Four different scenes can be defined depending on time of day. | |
domain: automation | |
source_url: https://gist.github.com/Martinnygaard/7645dcee2ca03d18c7a9523aa592605b | |
input: | |
motion_entity: | |
name: Motion Sensor | |
description: Choose which motion sensor to use. If multiple motion sensors should trigger this automation, then group them in a template sensor or regular group. | |
selector: |
- Task 1
- Task 2
- Task 3
- Task 4
- Task 3
- Task 4 tab later
No list item:
[x] Task without list.
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
# for ISAKMP (handling of security associations) | |
iptables -A INPUT -p udp --dport 500 --j ACCEPT | |
# for NAT-T (handling of IPsec between natted devices) | |
iptables -A INPUT -p udp --dport 4500 --j ACCEPT | |
# for ESP payload (the encrypted data packets) | |
iptables -A INPUT -p esp -j ACCEPT | |
# for the routing of packets on the server | |
iptables -t nat -A POSTROUTING -j SNAT --to-source %IP% -o eth0 | |
# internet access | |
iptables -t nat -A POSTROUTING -s 10.0.42.0/24 -o eth0 -m policy --dir out --pol ipsec -j ACCEPT |
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
--- | |
alias: DemoScript1 | |
description: '' | |
trigger: | |
- platform: time_pattern | |
minutes: '45' | |
hours: '1' | |
condition: [] | |
action: | |
# Trigger script 1 |
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: Renew Let's Encrypt Certificate | |
description: Renew Certificate when due date is below given value | |
domain: automation | |
input: | |
cert_expiry_sensor: | |
name: Certificate Expiry Sensor | |
description: "Sensor from the Certificate Expiry Integration (https://www.home-assistant.io/integrations/cert_expiry)" | |
selector: |
- Start gnu screen automatically when connecting interactively to Home Assistant (keep terminal session across connections).
- Provide a status line in the terminal
- Define some aliases
- Automatically "re-install" after add-on upgrade (create symbolic links,
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 ajouter au répertoire de quirks défini dans la configuration (configuration.yaml): | |
# zha: | |
# enable_quirks: true | |
# custom_quirks_path: /config/zha_quirks | |
from zhaquirks.lixee.zlinky import * | |
from zigpy.profiles import zha | |
from zigpy.quirks import CustomCluster, CustomDevice | |
import zigpy.types as t | |
from zigpy.zcl.clusters.general import Basic, GreenPowerProxy, Identify, Ota, PowerConfiguration |
This script is targeted to be part of a mechanism to monitor the proper operation of a system sending emails.
It checks that the IMAP Server received a message with a certain SUBJECT in
the last TIMEOUT minutes.
If such a message is missing during the TIMEOUT
time frame, it will send an email notification.
- optimizeDocker.ps1: Powershell Script to optimize Docker Data File. Gets location from configuration file.
- moveDocker.cmd: Script to move Docker Data File (out of default
directory). Use as
moveDockerData.cmd D:\DockerData
. Permissions of the target directory should be set to allow access to the wsl process.
Note: The shebang is for cygwin.