]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added Shelly Door/Window
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 1 Jan 2020 12:48:20 +0000 (13:48 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 1 Jan 2020 12:48:20 +0000 (13:48 +0100)
group/shelly.yaml
script/shelly.yaml
sensor/shelly.yaml
shell_scripts/shelly_reboot.sh
shell_scripts/shelly_upgrade.sh
shell_scripts/shelly_version.sh

index 8f7ce52562972f650fa5ffad068e2e71ba35e438..3c16fe77a93c7d754975647908f5ff68aae91e7f 100644 (file)
@@ -19,4 +19,5 @@ shelly:
     - sensor.shelly10_status
     - sensor.shellybulb_status
     - sensor.shellyem_status
+    - sensor.shellydw_status
     - sensor.shellyplugs_status
index eda50d70380db7d8e7d25a33a4de8ac20c3fb2ab..b04891b30eed0b04f0c0ff2458b51b249c618638 100644 (file)
@@ -71,6 +71,13 @@ shelly_upgrade:
       data:
         topic: 'shellies/shellyem-B9E1A0/command'
         payload: 'update_fw'
+
+    # Shelly Door/Window
+    - service: mqtt.publish
+      data:
+      data:
+        topic: 'shellies/shellydw-B88F53/command'
+        payload: 'update_fw'
         
     # Shelly Plug S
     - service: mqtt.publish
index de7445170bd7022f1bf1e093d3bb06539cc59b16..66742530546395b0946d4d592b93444be2c0eaf2 100644 (file)
     - update
     - uptime
 
+######################################################################
+# Sensor: Shelly Door/Window
+######################################################################
+
+#- platform: rest
+#  scan_interval: 43200
+#  resource: http://shellydw.giorgioravera.it/status
+#  method: GET
+#  name: shellyplugs_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 Plug S
 ######################################################################
index 78ce1aabe1a1a90261a5783f5a65f99e93bc1b7b..f2d911a789182bd256dde5e9f32ad17b1ab92c56 100755 (executable)
@@ -16,6 +16,7 @@ SHELLY_ID=(
        shelly10.giorgioravera.it
        shellybulb.giorgioravera.it
        shellyem.giorgioravera.it
+       shellydw.giorgioravera.it
        shellyplugs.giorgioravera.it
 )
 
index f75f6ce9502398ffa3c242773e94a17068acced1..132b3850233ca23424149120534cea1b5a4f2ce6 100755 (executable)
@@ -17,6 +17,7 @@ SHELLY_ID=(
        shelly1-24D1A8
        shellybulb-BC8610
        shellyem-B9E1A0
+       shellydw-B88F53
        shellyplug-s-7A31CB
 )
 
index 9c734a88b3016d918e3d3721c561d2058edf5aeb..505eb0418a4d2da8e97eb510992f93a40388d43e 100755 (executable)
@@ -16,6 +16,7 @@ SHELLY_ID=(
        shelly10.giorgioravera.it
        shellybulb.giorgioravera.it
        shellyem.giorgioravera.it
+       shellydw.giorgioravera.it
        shellyplugs.giorgioravera.it
 )