]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Moved all shelly elements into shelly package
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 27 Mar 2021 19:26:41 +0000 (20:26 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 27 Mar 2021 19:26:41 +0000 (20:26 +0100)
13 files changed:
customizations/shelly.yaml [deleted file]
groups/shelly.yaml [deleted file]
log/history.yaml
log/logbook.yaml
log/recorder.yaml
packages/shelly/shelly_customizations.yaml [new file with mode: 0644]
packages/shelly/shelly_groups.yaml [new file with mode: 0644]
packages/shelly/shelly_log.yaml [new file with mode: 0644]
packages/shelly/shelly_operations.yaml [new file with mode: 0644]
packages/shelly/shelly_sensor.yaml [new file with mode: 0644]
scripts/shelly.yaml [deleted file]
sensor/shelly.yaml [deleted file]
shell_command/shelly.yaml [deleted file]

diff --git a/customizations/shelly.yaml b/customizations/shelly.yaml
deleted file mode 100644 (file)
index 471afa1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-######################################################################
-# Customization: Shelly
-######################################################################
-
-script.shelly_upgrade:
-  icon: mdi:cellphone-arrow-down
-
-script.shelly_reboot:
-  icon: mdi:restart
diff --git a/groups/shelly.yaml b/groups/shelly.yaml
deleted file mode 100644 (file)
index 646fb53..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-######################################################################
-# Group Shelly Devices
-######################################################################
-
-shelly:
-  name: Shelly Devices
-  icon: mdi:alpha-s-box
-  entities:
-    - sensor.shelly1
-    - sensor.shelly2
-    - sensor.shelly3
-    - sensor.shelly4
-    - sensor.shelly5
-    - sensor.shelly6
-    - sensor.shelly7
-    - sensor.shelly8
-    - sensor.shelly9
-    - sensor.shelly10
-    - sensor.shelly11
-    #- sensor.shellybulb
-    - sensor.shellyem
-    #- sensor.shellyplugs
index 953174ab8ba7acee5a04753e94f97084e06345d8..8480c422f831ed49d42e9dac4d654c7a6c457202 100644 (file)
@@ -27,21 +27,6 @@ exclude:
     - sensor.home_assistant_current_version
     - sensor.cert_expiry_server_giorgioravera_it
     - sensor.cert_expiry_timestamp_server_giorgioravera_it
-    # Shelly
-    - sensor.shelly1
-    - sensor.shelly2
-    - sensor.shelly3
-    - sensor.shelly4
-    - sensor.shelly5
-    - sensor.shelly6
-    - sensor.shelly7
-    - sensor.shelly8
-    - sensor.shelly9
-    - sensor.shelly10
-    - sensor.shelly11
-    - sensor.shellybulb
-    - sensor.shellyem
-    - sensor.shellyplugs
     # Energy Sensors
     - sensor.potenza_reattiva
     - sensor.tensione
index 5b5396fb8558d35f0ce16dcbf4e24eff8c195558..78acd324476961cf334d6cc5f3d6af878f733693 100644 (file)
@@ -27,21 +27,6 @@ exclude:
     - sensor.home_assistant_current_version
     - sensor.cert_expiry_server_giorgioravera_it
     - sensor.cert_expiry_timestamp_server_giorgioravera_it
-    # Shelly
-    - sensor.shelly1
-    - sensor.shelly2
-    - sensor.shelly3
-    - sensor.shelly4
-    - sensor.shelly5
-    - sensor.shelly6
-    - sensor.shelly7
-    - sensor.shelly8
-    - sensor.shelly9
-    - sensor.shelly10
-    - sensor.shelly11
-    - sensor.shellybulb
-    - sensor.shellyem
-    - sensor.shellyplugs
     # Energy Sensors
     - sensor.potenza_reattiva
     - sensor.tensione
index d25e4c5260cb41a6863137e3c9f27e3e28e5327f..8c20a79e5e958a6084ba5d6dcb600f92d0f0a60f 100644 (file)
@@ -29,21 +29,6 @@ exclude:
     - sensor.home_assistant_current_version
     - sensor.cert_expiry_server_giorgioravera_it
     - sensor.cert_expiry_timestamp_server_giorgioravera_it
-    # Shelly
-    - sensor.shelly1
-    - sensor.shelly2
-    - sensor.shelly3
-    - sensor.shelly4
-    - sensor.shelly5
-    - sensor.shelly6
-    - sensor.shelly7
-    - sensor.shelly8
-    - sensor.shelly9
-    - sensor.shelly10
-    - sensor.shelly11
-    - sensor.shellybulb
-    - sensor.shellyem
-    - sensor.shellyplugs
     # Energy Sensors
     - sensor.potenza_reattiva
     - sensor.tensione
diff --git a/packages/shelly/shelly_customizations.yaml b/packages/shelly/shelly_customizations.yaml
new file mode 100644 (file)
index 0000000..fff7746
--- /dev/null
@@ -0,0 +1,11 @@
+######################################################################
+# Shelly Package - Customization
+######################################################################
+
+homeassistant:
+  customize:
+    script.shelly_upgrade:
+      icon: mdi:cellphone-arrow-down
+
+    script.shelly_reboot:
+      icon: mdi:restart
diff --git a/packages/shelly/shelly_groups.yaml b/packages/shelly/shelly_groups.yaml
new file mode 100644 (file)
index 0000000..21580db
--- /dev/null
@@ -0,0 +1,23 @@
+######################################################################
+# Shelly Package - Group
+######################################################################
+
+group:
+  shelly:
+    name: Shelly Devices
+    icon: mdi:alpha-s-box
+    entities:
+      - sensor.shelly1
+      - sensor.shelly2
+      - sensor.shelly3
+      - sensor.shelly4
+      - sensor.shelly5
+      - sensor.shelly6
+      - sensor.shelly7
+      - sensor.shelly8
+      - sensor.shelly9
+      - sensor.shelly10
+      - sensor.shelly11
+      #- sensor.shellybulb
+      - sensor.shellyem
+      #- sensor.shellyplugs
diff --git a/packages/shelly/shelly_log.yaml b/packages/shelly/shelly_log.yaml
new file mode 100644 (file)
index 0000000..652726e
--- /dev/null
@@ -0,0 +1,65 @@
+######################################################################\r
+# Shelly Package - History\r
+######################################################################\r
+\r
+history:\r
+  exclude:\r
+    entities:\r
+      - sensor.shelly1\r
+      - sensor.shelly2\r
+      - sensor.shelly3\r
+      - sensor.shelly4\r
+      - sensor.shelly5\r
+      - sensor.shelly6\r
+      - sensor.shelly7\r
+      - sensor.shelly8\r
+      - sensor.shelly9\r
+      - sensor.shelly10\r
+      - sensor.shelly11\r
+      - sensor.shellybulb\r
+      - sensor.shellyem\r
+      - sensor.shellyplugs\r
+\r
+######################################################################\r
+# Shelly Package - Logbook\r
+######################################################################\r
+\r
+logbook:\r
+  exclude:\r
+    entities:\r
+      - sensor.shelly1\r
+      - sensor.shelly2\r
+      - sensor.shelly3\r
+      - sensor.shelly4\r
+      - sensor.shelly5\r
+      - sensor.shelly6\r
+      - sensor.shelly7\r
+      - sensor.shelly8\r
+      - sensor.shelly9\r
+      - sensor.shelly10\r
+      - sensor.shelly11\r
+      - sensor.shellybulb\r
+      - sensor.shellyem\r
+      - sensor.shellyplugs\r
+\r
+######################################################################\r
+# Shelly Package - Recorder\r
+######################################################################\r
+\r
+recorder:\r
+  exclude:\r
+    entities:\r
+      - sensor.shelly1\r
+      - sensor.shelly2\r
+      - sensor.shelly3\r
+      - sensor.shelly4\r
+      - sensor.shelly5\r
+      - sensor.shelly6\r
+      - sensor.shelly7\r
+      - sensor.shelly8\r
+      - sensor.shelly9\r
+      - sensor.shelly10\r
+      - sensor.shelly11\r
+      - sensor.shellybulb\r
+      - sensor.shellyem\r
+      - sensor.shellyplugs\r
diff --git a/packages/shelly/shelly_operations.yaml b/packages/shelly/shelly_operations.yaml
new file mode 100644 (file)
index 0000000..9dc484c
--- /dev/null
@@ -0,0 +1,108 @@
+######################################################################
+# Shelly Package - Operations Script
+######################################################################
+
+script:
+  ######################################################################
+  # Shelly: Upgrade
+  ######################################################################
+  shelly_upgrade:
+    alias: "Shelly: Aggiornamento Firmware"
+    sequence:
+      # Shelly 2 Tapparella Cucina
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shellyswitch-55980F/command'
+          payload: 'update_fw'
+
+      # Shelly 2 Tapparella Sala
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shellyswitch25-6919BD/command'
+          payload: 'update_fw'
+
+      # Shelly 2 Tapparella Studio
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shellyswitch-13572B/command'
+          payload: 'update_fw'
+
+      # Shelly 2 Tapparella Camera
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shellyswitch-559C49/command'
+          payload: 'update_fw'
+
+      # Shelly 1 Luce Corridoio
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shelly1-24D1EE/command'
+          payload: 'update_fw'
+
+      # Shelly 1 Luce Cucina
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shelly1-93B27D/command'
+          payload: 'update_fw'
+
+      # Shelly Dimmer Luce Sala
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shellydimmer-D3EA58/command'
+          payload: 'update_fw'
+
+      # Shelly 2.5 Luci Bagno
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shellyswitch25-7457D8/command'
+          payload: 'update_fw'
+
+      # Shelly 1 Luce Studio
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shelly1-59E18C/command'
+          payload: 'update_fw'
+
+      # Shelly Dimmer Luce Camera
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shellydimmer-D46CF2/command'
+          payload: 'update_fw'
+
+      # Shelly 1 Luce Balcone
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shelly1-C423C8/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:
+          topic: 'shellies/shellyem-B9E1A0/command'
+          payload: 'update_fw'
+
+      # Shelly Plug S
+      - service: mqtt.publish
+        data:
+          topic: 'shellies/shellyplug-s-7A31CB/command'
+          payload: 'update_fw'
+
+  ######################################################################
+  # Shelly: Reboot
+  ######################################################################
+  shelly_reboot:
+    alias: "Shelly: Riavvia Dispositivi"
+    sequence:
+      - service: shell_command.shelly_reboot
+
+######################################################################
+# Shelly Package - Operations Shell Command
+######################################################################
+shell_command:
+  shelly_reboot: 'bash /config/shell_scripts/shelly_reboot.sh'
diff --git a/packages/shelly/shelly_sensor.yaml b/packages/shelly/shelly_sensor.yaml
new file mode 100644 (file)
index 0000000..7e415cc
--- /dev/null
@@ -0,0 +1,382 @@
+######################################################################
+# Shelly Package - Sensor
+######################################################################
+
+sensor:
+  ######################################################################
+  # Sensor: Shelly 1
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shelly1.giorgioravera.it/status
+    method: GET
+    name: shelly1
+    #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 2
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shelly2.giorgioravera.it/status
+    method: GET
+    name: shelly2
+    #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 3
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shelly3.giorgioravera.it/status
+    method: GET
+    name: shelly3
+    #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 4
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shelly4.giorgioravera.it/status
+    method: GET
+    name: shelly4
+    #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 5
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shelly5.giorgioravera.it/status
+    method: GET
+    name: shelly5
+    #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 6
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shelly6.giorgioravera.it/status
+    method: GET
+    name: shelly6
+    #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 7
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shelly7.giorgioravera.it/status
+    method: GET
+    name: shelly7
+    #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 8
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shelly8.giorgioravera.it/status
+    method: GET
+    name: shelly8
+    #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 9
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shelly9.giorgioravera.it/status
+    method: GET
+    name: shelly9
+    #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 10
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shelly10.giorgioravera.it/status
+    method: GET
+    name: shelly10
+    #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 11
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shelly11.giorgioravera.it/status
+    method: GET
+    name: shelly11
+    #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
+  ######################################################################
+  #- platform: rest
+  #  scan_interval: 43200
+  #  resource: http://shellybulb.giorgioravera.it/status
+  #  method: GET
+  #  name: shellybulb
+  #  #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 EM
+  ######################################################################
+  - platform: rest
+    scan_interval: 43200
+    resource: http://shellyem.giorgioravera.it/status
+    method: GET
+    name: shellyem
+    #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
+  ######################################################################
+  #- platform: rest
+  #  scan_interval: 43200
+  #  resource: http://shellyplugs.giorgioravera.it/status
+  #  method: GET
+  #  name: shellyplugs
+  #  #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
diff --git a/scripts/shelly.yaml b/scripts/shelly.yaml
deleted file mode 100644 (file)
index d3aca8e..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-######################################################################
-# Shelly: Upgrade
-# - mqtt.publish
-######################################################################
-
-shelly_upgrade:
-  alias: "Shelly: Aggiornamento Firmware"
-  sequence:
-    # Shelly 2 Tapparella Cucina
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shellyswitch-55980F/command'
-        payload: 'update_fw'
-
-    # Shelly 2 Tapparella Sala
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shellyswitch25-6919BD/command'
-        payload: 'update_fw'
-
-    # Shelly 2 Tapparella Studio
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shellyswitch-13572B/command'
-        payload: 'update_fw'
-
-    # Shelly 2 Tapparella Camera
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shellyswitch-559C49/command'
-        payload: 'update_fw'
-
-    # Shelly 1 Luce Corridoio
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shelly1-24D1EE/command'
-        payload: 'update_fw'
-
-    # Shelly 1 Luce Cucina
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shelly1-93B27D/command'
-        payload: 'update_fw'
-
-    # Shelly Dimmer Luce Sala
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shellydimmer-D3EA58/command'
-        payload: 'update_fw'
-
-    # Shelly 2.5 Luci Bagno
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shellyswitch25-7457D8/command'
-        payload: 'update_fw'
-
-    # Shelly 1 Luce Studio
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shelly1-59E18C/command'
-        payload: 'update_fw'
-
-    # Shelly Dimmer Luce Camera
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shellydimmer-D46CF2/command'
-        payload: 'update_fw'
-
-    # Shelly 1 Luce Balcone
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shelly1-C423C8/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:
-        topic: 'shellies/shellyem-B9E1A0/command'
-        payload: 'update_fw'
-
-    # Shelly Plug S
-    - service: mqtt.publish
-      data:
-        topic: 'shellies/shellyplug-s-7A31CB/command'
-        payload: 'update_fw'
-
-######################################################################
-# Shelly: Reboot
-# - shell_command.shelly_reboot
-######################################################################
-shelly_reboot:
-  alias: "Shelly: Riavvia Dispositivi"
-  sequence:
-    - service: shell_command.shelly_reboot
diff --git a/sensor/shelly.yaml b/sensor/shelly.yaml
deleted file mode 100644 (file)
index 741b62f..0000000
+++ /dev/null
@@ -1,391 +0,0 @@
-######################################################################
-# Sensor: Shelly 1
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shelly1.giorgioravera.it/status
-  method: GET
-  name: shelly1
-  #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 2
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shelly2.giorgioravera.it/status
-  method: GET
-  name: shelly2
-  #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 3
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shelly3.giorgioravera.it/status
-  method: GET
-  name: shelly3
-  #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 4
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shelly4.giorgioravera.it/status
-  method: GET
-  name: shelly4
-  #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 5
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shelly5.giorgioravera.it/status
-  method: GET
-  name: shelly5
-  #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 6
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shelly6.giorgioravera.it/status
-  method: GET
-  name: shelly6
-  #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 7
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shelly7.giorgioravera.it/status
-  method: GET
-  name: shelly7
-  #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 8
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shelly8.giorgioravera.it/status
-  method: GET
-  name: shelly8
-  #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 9
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shelly9.giorgioravera.it/status
-  method: GET
-  name: shelly9
-  #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 10
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shelly10.giorgioravera.it/status
-  method: GET
-  name: shelly10
-  #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 11
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shelly11.giorgioravera.it/status
-  method: GET
-  name: shelly11
-  #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
-######################################################################
-
-#- platform: rest
-#  scan_interval: 43200
-#  resource: http://shellybulb.giorgioravera.it/status
-#  method: GET
-#  name: shellybulb
-#  #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 EM
-######################################################################
-
-- platform: rest
-  scan_interval: 43200
-  resource: http://shellyem.giorgioravera.it/status
-  method: GET
-  name: shellyem
-  #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
-######################################################################
-
-#- platform: rest
-#  scan_interval: 43200
-#  resource: http://shellyplugs.giorgioravera.it/status
-#  method: GET
-#  name: shellyplugs
-#  #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
diff --git a/shell_command/shelly.yaml b/shell_command/shelly.yaml
deleted file mode 100644 (file)
index 200346e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-shelly_reboot: 'bash /config/shell_scripts/shelly_reboot.sh'