]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Replaced broken shelly in linving room
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Mon, 30 Dec 2019 15:20:57 +0000 (16:20 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Mon, 30 Dec 2019 15:20:57 +0000 (16:20 +0100)
cover/sala.yaml
script/shelly.yaml
sensor/shelly.yaml
shell_scripts/shelly_upgrade.sh
shell_scripts/shelly_version.sh

index 9d04f4fe4bf656d6cfacc9b2fcfe5b2edc968ad1..ddb988d33b1795d5fe4cb362ef6ae152c19c2301 100644 (file)
@@ -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"
index 1518dfde8aac6e2cfa6f341a2637c2341e52cdb5..eda50d70380db7d8e7d25a33a4de8ac20c3fb2ab 100644 (file)
@@ -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
index 17947ec328ac17d4a91a8a2a76dddf11139082ae..de7445170bd7022f1bf1e093d3bb06539cc59b16 100644 (file)
     - 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
 ######################################################################
index c0ebeebd35dbb0bdc139dc2a25aeb03ddfc01786..f75f6ce9502398ffa3c242773e94a17068acced1 100755 (executable)
@@ -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
index 80ec53ec9af6667d6b4256c79cf57a83f6c4ad07..9c734a88b3016d918e3d3721c561d2058edf5aeb 100755 (executable)
@@ -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