Add automation for HA

pull/19/head
schizza 2024-04-30 17:42:59 +02:00
parent 2271564048
commit 5eeda36f6d
1 changed files with 11 additions and 0 deletions

View File

@ -226,6 +226,17 @@ cat >>$HA_PATH/configuration.yaml <<EOF
shell_command: shell_command:
iptables_script: ./iptables_redirect/exec.sh iptables_script: ./iptables_redirect/exec.sh
description: "Run iptables script on Home Assistant start."
mode: single
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: shell_command.iptables_script
metadata: {}
data: {}
EOF EOF
exit_status $? "cat" \ exit_status $? "cat" \