Mercurial > code > home > repos > homeauto
comparison service/frontDoorLock/tasks.py @ 1712:6ee9a1c5a991
update deps; code fixes; add skaffold
author | drewp@bigasterisk.com |
---|---|
date | Sun, 12 Dec 2021 22:03:28 -0800 |
parents | c41af73a410f |
children |
comparison
equal
deleted
inserted
replaced
1711:dc0a539c5dd4 | 1712:6ee9a1c5a991 |
---|---|
11 tag = 'esphome/esphome' | 11 tag = 'esphome/esphome' |
12 ctx.run(f"docker run --rm -v `pwd`:/config --device=/dev/ttyUSB0 -it {tag} door.yaml logs", pty=True) | 12 ctx.run(f"docker run --rm -v `pwd`:/config --device=/dev/ttyUSB0 -it {tag} door.yaml logs", pty=True) |
13 | 13 |
14 @task | 14 @task |
15 def tail_mqtt(ctx): | 15 def tail_mqtt(ctx): |
16 ctx.run(f'mosquitto_sub -h bang -p 10210 -d -v -t \#') | 16 ctx.run(f'mosquitto_sub -h bang -p 10210 -d -v -t #') |
17 | 17 |
18 @task | 18 @task |
19 def mqtt_force_open(ctx): | 19 def mqtt_force_open(ctx): |
20 ctx.run(f'mosquitto_pub -h bang -p 10210 -t frontdoorlock/switch/strike/command -m ON') | 20 ctx.run(f'mosquitto_pub -h bang -p 10210 -t frontdoorlock/switch/strike/command -m ON') |
21 | 21 |