Files
tuya-cloudcutter/scripts/pre-setup.sh-example
sillyfrog ca40fd0d2f Optional Helper scripts (#356)
* Helper script support

---------

Co-authored-by: Sillyfrog <sillyfrog@users.noreply.github.com>
2023-04-15 08:21:13 -05:00

8 lines
340 B
Bash

#!/usr/bin/env bash
# If this script exists, it is called before the main script is run, after some initial basic checks have been performed.
# This example turns on the device that is connected to a smart switch via MQTT
# See pre-setup.sh-example for example usage
# Turn on the device
mosquitto_pub -h $MQTT_HOST -t $SWITCH_TOPIC -m ON