Add automation for HA
parent
2271564048
commit
5eeda36f6d
|
|
@ -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" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue