Merge branch 'master' of git.wrede.ca:andreas/heartbeat

sequence
This commit is contained in:
2022-01-17 04:01:00 -05:00
2 changed files with 29 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
to install on home assistant OS:
- copy hbc and run_hbc to /config/bin on ha
- add these two lines to configuration.yaml, set XXXX to name of the HA instance
shell_command:
run_hbc: /config/bin/run_hbc -n XXXXX -d hbd.wrede.ca
- add these lines to automation.yaml
- id: '1641839711280'
alias: run hbc on boot
description: ''
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: shell_command.run_hbc
mode: single
Executable
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
D=$(dirname $0)
pkill -f $D/hbc 2>/dev/null
sleep 1
$D/hbc $@