mirror of
https://github.com/tuya-cloudcutter/tuya-cloudcutter.git
synced 2026-03-03 19:34:00 +01:00
* Helper script support --------- Co-authored-by: Sillyfrog <sillyfrog@users.noreply.github.com>
8 lines
340 B
Bash
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 |