From: Giorgio Ravera Date: Sun, 14 Apr 2019 12:53:32 +0000 (+0200) Subject: Updated shelly upgrade shell script X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=41dd23aa01cd1a45d571bf0bbb799e733f00fc52;p=homeassistant.git Updated shelly upgrade shell script --- diff --git a/shell_scripts/shelly_upgrade.sh b/shell_scripts/shelly_upgrade.sh index 816d12e2..977c0513 100755 --- a/shell_scripts/shelly_upgrade.sh +++ b/shell_scripts/shelly_upgrade.sh @@ -4,17 +4,21 @@ HOST=$(awk '/mqtt_host/ { print $2 }' ../secrets.yaml) USER=$(awk '/mqtt_user/ { print $2 }' ../secrets.yaml) PASSWORD=$(awk '/mqtt_password/ { print $2 }' ../secrets.yaml) SHELLY_ID=( - 55980F - 135454 - 13572B - 559C49 + shellyswitch-55980F + shellyswitch-135454 + shellyswitch-13572B + shellyswitch-559C49 + shelly1-24D1EE + shelly1-93B27D + shellyswitch25-7457D8 + shellybulb-BC8610 ) echo "Upgrade Shelly Firmware" for i in "${SHELLY_ID[@]}" do - echo mosquitto_pub -h $HOST -d -u $USER -P $PASSWORD -t shellies/shellyswitch-$i/command -m update_fw + echo mosquitto_pub -h $HOST -d -u $USER -P $PASSWORD -t shellies/$i/command -m update_fw done echo "Done"