projects
/
mqtt-homehub
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
request status from all tasmota firmwares
[mqtt-homehub]
/
sonoff.sh
1
#!/bin/sh -xe
2
test -z "$1" && echo "usage: $0 light|ledstate on|off" && exit 1
3
device=`basename $0 | cut -d. -f1`
4
mosquitto_pub -h rpi2 -t "cmnd/$device/$1" -m "$2"
5