]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Removed mqtt interface from shelly
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 15 Aug 2023 15:55:27 +0000 (17:55 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 15 Aug 2023 15:55:27 +0000 (17:55 +0200)
.storage/lovelace.lovelace_devices
packages/shelly/shelly_operations.yaml

index 12c6369b1a4eb1d1acf982dfe5c7ebf11341ac46..fc261308458bc1b97392494f8dd27d706c576729 100644 (file)
                               "layout": "icon_name_state",
                               "entity": "switch.nas",
                               "name": "Stato",
-                              "show_name": false,
+                              "show_name": true,
                               "show_icon": true,
-                              "show_state": true,
+                              "show_state": false,
                               "color-type": "card",
                               "icon": "mdi:power",
                               "styles": {
                               "state": [
                                 {
                                   "value": "on",
+                                  "name": "Acceso",
                                   "styles": {
                                     "icon": [
                                       {
                                 },
                                 {
                                   "value": "off",
+                                  "name": "Spento",
                                   "styles": {
                                     "icon": [
                                       {
                                 "action": "call-service",
                                 "service": "script.shelly_reboot"
                               }
-                            },
-                            {
-                              "type": "tile",
-                              "entity": "script.shelly_force_state_update",
-                              "name": "Aggiorna Stato Dispositivi",
-                              "tap_action": {
-                                "action": "call-service",
-                                "service": "script.shelly_force_state_update"
-                              }
                             }
                           ]
                         }
index 478e4b0c4470b7e7385dc684a217264e4c1c8d77..0a0163ebb1bf3ab21f319cbd95739bd2479c1930 100644 (file)
@@ -38,19 +38,20 @@ script:
   ######################################################################
   # Shelly: Force State Update
   ######################################################################
-  shelly_force_state_update:
-    alias: "Shelly: Aggiornamento stato dispositivi"
-    sequence:
-      - service: mqtt.publish
-        data:
-          payload: update
-          topic: shellies/command
+  #shelly_force_state_update:
+  #  alias: "Shelly: Aggiornamento stato dispositivi"
+  #  sequence:
+  #    - service: mqtt.publish
+  #      data:
+  #        payload: update
+  #        topic: shellies/command
 
 automation:
   ######################################################################
   # Shelly: Update Notification
   ######################################################################
-  - alias: "Shelly: Update Notification"
+  - id: "shelly_update_notification"
+    alias: "Shelly: Update Notification"
     variables:
       pending_update_list: >
         {{ states.update
@@ -89,14 +90,15 @@ automation:
   ######################################################################
   # Shelly: Force State Update at Startup
   ######################################################################
-  - alias: "Shelly - Startup: Aggiornamento stati"
-
-    trigger:
-      - event: start
-        platform: homeassistant
-
-    action:
-      service: script.shelly_force_state_update
+  #- id: "shelly_startup_aggiornamento_stati"
+  #  alias: "Shelly - Startup: Aggiornamento stati"
+  #
+  #  trigger:
+  #    - event: start
+  #      platform: homeassistant
+  #
+  #  action:
+  #    service: script.shelly_force_state_update
 
 ######################################################################
 # Shelly Package - Operations Shell Command