From 447cc2ebb2c32c71d89c15b9f347aa683b58f06a Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Mon, 30 Dec 2019 16:20:57 +0100 Subject: [PATCH] Replaced broken shelly in linving room --- cover/sala.yaml | 6 +++--- script/shelly.yaml | 2 +- sensor/shelly.yaml | 28 ++++++++++++++++++++++++++++ shell_scripts/shelly_upgrade.sh | 2 +- shell_scripts/shelly_version.sh | 2 +- 5 files changed, 34 insertions(+), 6 deletions(-) diff --git a/cover/sala.yaml b/cover/sala.yaml index 9d04f4fe..ddb988d3 100644 --- a/cover/sala.yaml +++ b/cover/sala.yaml @@ -4,9 +4,9 @@ - platform: mqtt name: Tapparella Sala - command_topic: "shellies/shellyswitch-135454/roller/0/command" - position_topic: "shellies/shellyswitch-135454/roller/0/pos" - set_position_topic: "shellies/shellyswitch-135454/roller/0/command/pos" + command_topic: "shellies/shellyswitch25-6919BD/roller/0/command" + position_topic: "shellies/shellyswitch25-6919BD/roller/0/pos" + set_position_topic: "shellies/shellyswitch25-6919BD/roller/0/command/pos" payload_open: "open" payload_close: "close" payload_stop: "stop" diff --git a/script/shelly.yaml b/script/shelly.yaml index 1518dfde..eda50d70 100644 --- a/script/shelly.yaml +++ b/script/shelly.yaml @@ -15,7 +15,7 @@ shelly_upgrade: # Shelly 2 Tapparella Sala - service: mqtt.publish data: - topic: 'shellies/shellyswitch-135454/command' + topic: 'shellies/shellyswitch25-6919BD/command' payload: 'update_fw' # Shelly 2 Tapparella Studio diff --git a/sensor/shelly.yaml b/sensor/shelly.yaml index 17947ec3..de744517 100644 --- a/sensor/shelly.yaml +++ b/sensor/shelly.yaml @@ -250,6 +250,34 @@ - update - uptime +###################################################################### +# Sensor: Shelly 10 +###################################################################### + +- platform: rest + scan_interval: 43200 + resource: http://shelly10.giorgioravera.it/status + method: GET + name: shelly10_status + #value_template: '{{ value_json.has_update }}' + value_template: >- + {% if value_json.has_update == True %} + on + {% else %} + off + {% endif %} + authentication: basic + username: !secret shelly_user + password: !secret shelly_password + json_attributes: + # - wifi_sta + # - mqtt + # - time + # - has_update + - mac + - update + - uptime + ###################################################################### # Sensor: Shelly Bulb ###################################################################### diff --git a/shell_scripts/shelly_upgrade.sh b/shell_scripts/shelly_upgrade.sh index c0ebeebd..f75f6ce9 100755 --- a/shell_scripts/shelly_upgrade.sh +++ b/shell_scripts/shelly_upgrade.sh @@ -6,7 +6,7 @@ USER=$(awk '/mqtt_user/ { print $2 }' $HASS_HOME/secrets.yaml) PASSWORD=$(awk '/mqtt_password/ { print $2 }' $HASS_HOME/secrets.yaml) SHELLY_ID=( shellyswitch-55980F - shellyswitch-135454 + shellyswitch25-6919BD shellyswitch-13572B shellyswitch-559C49 shelly1-24D1EE diff --git a/shell_scripts/shelly_version.sh b/shell_scripts/shelly_version.sh index 80ec53ec..9c734a88 100755 --- a/shell_scripts/shelly_version.sh +++ b/shell_scripts/shelly_version.sh @@ -13,7 +13,7 @@ SHELLY_ID=( shelly7.giorgioravera.it shelly8.giorgioravera.it shelly9.giorgioravera.it - shelly7.giorgioravera.it + shelly10.giorgioravera.it shellybulb.giorgioravera.it shellyem.giorgioravera.it shellyplugs.giorgioravera.it -- 2.47.3