tasmota hvac command to control AC
[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