From bac1eccc783177a6177d9530b2318314b90585ef Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Sat, 1 Feb 2020 17:23:04 +0100 Subject: [PATCH] Fixed shelly script --- script/shelly.yaml | 18 ++++++++++++------ shell_command/shelly.yaml | 1 - shell_scripts/shelly_upgrade.sh | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/script/shelly.yaml b/script/shelly.yaml index 5647664d..d6b349b6 100644 --- a/script/shelly.yaml +++ b/script/shelly.yaml @@ -42,6 +42,18 @@ shelly_upgrade: topic: 'shellies/shelly1-93B27D/command' payload: 'update_fw' + # Shelly 1 Luce Sala + - service: mqtt.publish + data: + topic: 'shellies/shelly1-C426F9/command' + payload: 'update_fw' + + # Shelly Bulb Luce Divano + - service: mqtt.publish + data: + topic: 'shellies/shellybulb-BC8610/command' + payload: 'update_fw' + # Shelly 2.5 Luci Bagno - service: mqtt.publish data: @@ -60,12 +72,6 @@ shelly_upgrade: topic: 'shellies/shelly1-24D1A8/command' payload: 'update_fw' - # Shelly Bulb Luce Divano - - service: mqtt.publish - data: - topic: 'shellies/shellybulb-BC8610/command' - payload: 'update_fw' - # Shelly EM - service: mqtt.publish data: diff --git a/shell_command/shelly.yaml b/shell_command/shelly.yaml index 5f25c0ac..200346e3 100644 --- a/shell_command/shelly.yaml +++ b/shell_command/shelly.yaml @@ -1,2 +1 @@ -shelly_upgrade: 'bash /config/shell_scripts/shelly_upgrade.sh' shelly_reboot: 'bash /config/shell_scripts/shelly_reboot.sh' diff --git a/shell_scripts/shelly_upgrade.sh b/shell_scripts/shelly_upgrade.sh index 9d5116ac..254aeb27 100755 --- a/shell_scripts/shelly_upgrade.sh +++ b/shell_scripts/shelly_upgrade.sh @@ -12,10 +12,10 @@ SHELLY_ID=( shelly1-24D1EE shelly1-93B27D shelly1-C426F9 + shellybulb-BC8610 shellyswitch25-7457D8 shelly1-59E18C shelly1-24D1A8 - shellybulb-BC8610 shellyem-B9E1A0 shellydw-B88F53 shellyplug-s-7A31CB -- 2.47.3