From 29170f4296850a526d144138bedf579347b94a4c Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 15 Aug 2023 17:55:27 +0200 Subject: [PATCH] Removed mqtt interface from shelly --- .storage/lovelace.lovelace_devices | 15 +++--------- packages/shelly/shelly_operations.yaml | 34 ++++++++++++++------------ 2 files changed, 22 insertions(+), 27 deletions(-) diff --git a/.storage/lovelace.lovelace_devices b/.storage/lovelace.lovelace_devices index 12c6369b..fc261308 100644 --- a/.storage/lovelace.lovelace_devices +++ b/.storage/lovelace.lovelace_devices @@ -783,9 +783,9 @@ "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": { @@ -834,6 +834,7 @@ "state": [ { "value": "on", + "name": "Acceso", "styles": { "icon": [ { @@ -844,6 +845,7 @@ }, { "value": "off", + "name": "Spento", "styles": { "icon": [ { @@ -2232,15 +2234,6 @@ "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" - } } ] } diff --git a/packages/shelly/shelly_operations.yaml b/packages/shelly/shelly_operations.yaml index 478e4b0c..0a0163eb 100644 --- a/packages/shelly/shelly_operations.yaml +++ b/packages/shelly/shelly_operations.yaml @@ -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 -- 2.47.3