From 0f3e3c60cc36aca8f25ea37f792fc1aa09118874 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 26 Nov 2024 14:49:41 +0100 Subject: [PATCH] Fixed shelly integration --- .storage/lovelace.lovelace_devices | 249 ++------------------- packages/shelly/shelly_customizations.yaml | 16 +- packages/shelly/shelly_groups.yaml | 16 +- packages/shelly/shelly_log.yaml | 32 +-- shell_scripts/shelly_reboot.sh | 5 +- shell_scripts/shelly_upgrade.sh | 3 +- shell_scripts/shelly_uptime.sh | 5 +- 7 files changed, 61 insertions(+), 265 deletions(-) diff --git a/.storage/lovelace.lovelace_devices b/.storage/lovelace.lovelace_devices index 07820da0..9ae4d8d8 100644 --- a/.storage/lovelace.lovelace_devices +++ b/.storage/lovelace.lovelace_devices @@ -2523,13 +2523,6 @@ "entity": "update.shelly_em_firmware_update", "name": "Firmare" }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.shelly_em_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, { "type": "custom:button-card", "template": "template_device_generic_button", @@ -2576,26 +2569,19 @@ { "type": "custom:button-card", "template": "template_device_generic_state", - "entity": "cover.tapparella_cucina", + "entity": "cover.tapparella_cucina_old", "name": "Stato" }, { "type": "custom:button-card", "template": "template_device_firmware", - "entity": "update.tapparella_cucina_firmware_update", + "entity": "update.tapparella_cucina_old_firmware", "name": "Firmare" }, { "type": "custom:button-card", "template": "template_device_generic_button", - "entity": "button.tapparella_cucina_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.tapparella_cucina_reboot", + "entity": "button.tapparella_cucina_old_reboot", "name": "Riavvia Dispositivo", "icon": "mdi:restart" } @@ -2639,26 +2625,19 @@ "type": "custom:button-card", "template": "template_device_generic_state", "layout": "icon_name_state", - "entity": "cover.tapparella_sala", + "entity": "cover.tapparella_sala_old", "name": "Stato" }, { "type": "custom:button-card", "template": "template_device_firmware", - "entity": "update.tapparella_sala_firmware_update", + "entity": "update.tapparella_sala_old_firmware", "name": "Firmare" }, { "type": "custom:button-card", "template": "template_device_generic_button", - "entity": "button.tapparella_sala_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.tapparella_sala_reboot", + "entity": "button.tapparella_sala_old_reboot", "name": "Riavvia Dispositivo", "icon": "mdi:restart" } @@ -2701,26 +2680,19 @@ { "type": "custom:button-card", "template": "template_device_generic_state", - "entity": "cover.tapparella_studio", + "entity": "cover.tapparella_studio_old", "name": "Stato" }, { "type": "custom:button-card", "template": "template_device_firmware", - "entity": "update.tapparella_studio_firmware_update", + "entity": "update.tapparella_studio_old_firmware", "name": "Firmare" }, { "type": "custom:button-card", "template": "template_device_generic_button", - "entity": "button.tapparella_studio_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.tapparella_studio_reboot", + "entity": "button.tapparella_studio_old_reboot", "name": "Riavvia Dispositivo", "icon": "mdi:restart" } @@ -2763,26 +2735,19 @@ { "type": "custom:button-card", "template": "template_device_generic_state", - "entity": "cover.tapparella_camera", + "entity": "cover.tapparella_camera_old", "name": "Stato" }, { "type": "custom:button-card", "template": "template_device_firmware", - "entity": "update.tapparella_camera_firmware_update", + "entity": "update.tapparella_camera_old_firmware", "name": "Firmare" }, { "type": "custom:button-card", "template": "template_device_generic_button", - "entity": "button.tapparella_camera_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.tapparella_camera_reboot", + "entity": "button.tapparella_camera_old_reboot", "name": "Riavvia Dispositivo", "icon": "mdi:restart" } @@ -2834,13 +2799,6 @@ "entity": "update.luce_corridoio_firmware_update", "name": "Firmare" }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.luce_corridoio_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, { "type": "custom:button-card", "template": "template_device_generic_button", @@ -2887,88 +2845,19 @@ { "type": "custom:button-card", "template": "template_device_generic_state", - "entity": "light.luce_cucina", - "name": "Stato" - }, - { - "type": "custom:button-card", - "template": "template_device_firmware", - "entity": "update.luce_cucina_firmware_update", - "name": "Firmare" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.luce_cucina_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.luce_cucina_reboot", - "name": "Riavvia Dispositivo", - "icon": "mdi:restart" - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "entities", - "show_header_toggle": "off", - "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", - "entities": [ - { - "type": "section", - "label": "Shelly 7 - Luce Sala" - }, - { - "type": "custom:hui-element", - "card_type": "vertical-stack", - "cards": [ - { - "type": "horizontal-stack", - "cards": [ - { - "type": "picture", - "style": "ha-card { \n --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';\n --ha-card-background: \"rgba(0, 0, 0, 0)\";\n --ha-card-box-shadow: 'none';\n}\n", - "image": "/local/images/devices/shelly/shelly_dimmer.png", - "tap_action": { - "action": "url", - "url_path": "http://shelly7.giorgioravera.it" - } - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "light.luce_sala", + "entity": "light.luce_cucina_old", "name": "Stato" }, { "type": "custom:button-card", "template": "template_device_firmware", - "entity": "update.luce_sala_firmware_update", + "entity": "update.luce_cucina_old_firmware", "name": "Firmare" }, { "type": "custom:button-card", "template": "template_device_generic_button", - "entity": "button.luce_sala_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.luce_sala_reboot", + "entity": "button.luce_cucina_old_reboot", "name": "Riavvia Dispositivo", "icon": "mdi:restart" } @@ -3011,28 +2900,21 @@ { "type": "custom:button-card", "template": "template_device_generic_state", - "entity": "light.luce_bagno", + "entity": "light.luce_bagno_old", "name": "Stato" }, { "type": "custom:button-card", "template": "template_device_generic_state", - "entity": "light.luce_specchio", + "entity": "light.luce_specchio_old", "name": "Stato" }, { "type": "custom:button-card", "template": "template_device_firmware", - "entity": "update.luci_bagno_firmware_update", + "entity": "update.luci_bagno_firmware", "name": "Firmare" }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.luci_bagno_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, { "type": "custom:button-card", "template": "template_device_generic_button", @@ -3048,68 +2930,6 @@ } ] }, - { - "type": "entities", - "show_header_toggle": "off", - "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", - "entities": [ - { - "type": "section", - "label": "Shelly 9 - Luce Studio" - }, - { - "type": "custom:hui-element", - "card_type": "vertical-stack", - "cards": [ - { - "type": "horizontal-stack", - "cards": [ - { - "type": "picture", - "style": "ha-card { \n --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';\n --ha-card-background: \"rgba(0, 0, 0, 0)\";\n --ha-card-box-shadow: 'none';\n}\n", - "image": "/local/images/devices/shelly/shelly1.png", - "tap_action": { - "action": "url", - "url_path": "http://shelly9.giorgioravera.it" - } - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "light.luce_studio", - "name": "Stato" - }, - { - "type": "custom:button-card", - "template": "template_device_firmware", - "entity": "update.luce_studio_firmware_update", - "name": "Firmare" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.luce_studio_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.luce_studio_reboot", - "name": "Riavvia Dispositivo", - "icon": "mdi:restart" - } - ] - } - ] - } - ] - } - ] - }, { "type": "entities", "show_header_toggle": "off", @@ -3141,26 +2961,19 @@ { "type": "custom:button-card", "template": "template_device_generic_state", - "entity": "light.luce_camera", + "entity": "light.luce_camera_old", "name": "Stato" }, { "type": "custom:button-card", "template": "template_device_firmware", - "entity": "update.luce_camera_firmware_update", + "entity": "update.luce_camera_old_firmware", "name": "Firmare" }, { "type": "custom:button-card", "template": "template_device_generic_button", - "entity": "button.luce_camera_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.luce_camera_reboot", + "entity": "button.luce_camera_old_reboot", "name": "Riavvia Dispositivo", "icon": "mdi:restart" } @@ -3203,26 +3016,19 @@ { "type": "custom:button-card", "template": "template_device_generic_state", - "entity": "light.luce_balcone", + "entity": "light.luce_balcone_old", "name": "Stato" }, { "type": "custom:button-card", "template": "template_device_firmware", - "entity": "update.luce_balcone_firmware_update", + "entity": "update.luce_balcone_old_firmware", "name": "Firmare" }, { "type": "custom:button-card", "template": "template_device_generic_button", - "entity": "button.luce_balcone_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.luce_balcone_reboot", + "entity": "button.luce_balcone_old_reboot", "name": "Riavvia Dispositivo", "icon": "mdi:restart" } @@ -3289,13 +3095,6 @@ "entity": "update.shelly_em_old_firmware_update", "name": "Firmare" }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.shelly_em_old_ota_update", - "name": "Aggiorna Firmware", - "icon": "mdi:package-up" - }, { "type": "custom:button-card", "template": "template_device_generic_button", diff --git a/packages/shelly/shelly_customizations.yaml b/packages/shelly/shelly_customizations.yaml index fe45769e..b6a5834c 100644 --- a/packages/shelly/shelly_customizations.yaml +++ b/packages/shelly/shelly_customizations.yaml @@ -56,7 +56,7 @@ homeassistant: friendly_name: Pulsante 2 binary_sensor.tapparella_cucina_old_cloud: friendly_name: Connessione Cloud - update.tapparella_cucina_old_firmware_update: + update.tapparella_cucina_old_firmware: friendly_name: Aggiornamento Firmware update.tapparella_cucina_old_beta_firmware_update: friendly_name: Aggiornamento Firmware Beta @@ -82,7 +82,7 @@ homeassistant: friendly_name: Temperatura Device binary_sensor.tapparella_sala_old_overheating: friendly_name: Surriscaldamento Device - update.tapparella_sala_old_firmware_update: + update.tapparella_sala_old_firmware: friendly_name: Aggiornamento Firmware update.tapparella_sala_old_beta_firmware_update: friendly_name: Aggiornamento Firmware Beta @@ -104,7 +104,7 @@ homeassistant: friendly_name: Pulsante 2 binary_sensor.tapparella_studio_old_cloud: friendly_name: Connessione Cloud - update.tapparella_studio_old_firmware_update: + update.tapparella_studio_old_firmware: friendly_name: Aggiornamento Firmware update.tapparella_studio_old_beta_firmware_update: friendly_name: Aggiornamento Firmware Beta @@ -126,7 +126,7 @@ homeassistant: friendly_name: Pulsante 2 binary_sensor.tapparella_camera_old_cloud: friendly_name: Connessione Cloud - update.tapparella_camera_old_firmware_update: + update.tapparella_camera_old_firmware: friendly_name: Aggiornamento Firmware update.tapparella_camera_old_beta_firmware_update: friendly_name: Aggiornamento Firmware Beta @@ -154,7 +154,7 @@ homeassistant: # Shelly 6 - Luce Cucina (shelly1_93B27D) binary_sensor.luce_cucina_old_cloud: friendly_name: Connessione Cloud - update.luce_cucina_old_firmware_update: + update.luce_cucina_old_firmware: friendly_name: Aggiornamento Firmware update.luce_cucina_old_beta_firmware_update: friendly_name: Aggiornamento Firmware Beta @@ -184,7 +184,7 @@ homeassistant: friendly_name: Temperatura Device binary_sensor.luci_bagno_overheating: friendly_name: Surriscaldamento Device - update.luci_bagno_firmware_update: + update.luci_bagno_firmware: friendly_name: Aggiornamento Firmware update.luci_bagno_beta_firmware_update: friendly_name: Aggiornamento Firmware Beta @@ -212,7 +212,7 @@ homeassistant: friendly_name: Temperatura Device binary_sensor.luce_camera_old_overheating: friendly_name: Surriscaldamento Device - update.luce_camera_old_firmware_update: + update.luce_camera_old_firmware: friendly_name: Aggiornamento Firmware update.luce_camera_old_beta_firmware_update: friendly_name: Aggiornamento Firmware Beta @@ -226,7 +226,7 @@ homeassistant: # Shelly 11 - Luce Balcone (shelly1_c423c8) binary_sensor.luce_balcone_old_cloud: friendly_name: Connessione Cloud - update.luce_balcone_old_firmware_update: + update.luce_balcone_old_firmware: friendly_name: Aggiornamento Firmware update.luce_balcone_old_beta_firmware_update: friendly_name: Aggiornamento Firmware Beta diff --git a/packages/shelly/shelly_groups.yaml b/packages/shelly/shelly_groups.yaml index 1bc4d6ee..edda4679 100644 --- a/packages/shelly/shelly_groups.yaml +++ b/packages/shelly/shelly_groups.yaml @@ -8,14 +8,14 @@ group: icon: mdi:alpha-s-box entities: - update.shelly_em_firmware_update - - update.tapparella_cucina_old_firmware_update - - update.tapparella_sala_old_firmware_update - - update.tapparella_studio_old_firmware_update - - update.tapparella_camera_old_firmware_update + - update.tapparella_cucina_old_firmware + - update.tapparella_sala_old_firmware + - update.tapparella_studio_old_firmware + - update.tapparella_camera_old_firmware - update.luce_corridoio_firmware_update - - update.luce_cucina_old_firmware_update - - update.luci_bagno_firmware_update - - update.luce_camera_old_firmware_update - - update.luce_balcone_old_firmware_update + - update.luce_cucina_old_firmware + - update.luci_bagno_firmware + - update.luce_camera_old_firmware + - update.luce_balcone_old_firmware #- update.luce_divano_firmware_update - update.shelly_em_old_firmware_update diff --git a/packages/shelly/shelly_log.yaml b/packages/shelly/shelly_log.yaml index 07cfd21b..eb36c08a 100644 --- a/packages/shelly/shelly_log.yaml +++ b/packages/shelly/shelly_log.yaml @@ -29,7 +29,7 @@ logbook: - binary_sensor.tapparella_cucina_old_channel_1_input - binary_sensor.tapparella_cucina_old_channel_2_input - binary_sensor.tapparella_cucina_old_cloud - - update.tapparella_cucina_old_firmware_update + - update.tapparella_cucina_old_firmware - sensor.tapparella_cucina_old_rssi - sensor.tapparella_cucina_old_uptime # Shelly 2 - Tapparella Sala (shellyswitch25_6919bd) @@ -40,7 +40,7 @@ logbook: - binary_sensor.tapparella_sala_old_cloud - sensor.tapparella_sala_old_device_temperature - binary_sensor.tapparella_sala_old_overheating - - update.tapparella_sala_old_firmware_update + - update.tapparella_sala_old_firmware - sensor.tapparella_sala_old_rssi - sensor.tapparella_sala_old_uptime # Shelly 3 - Tapparella Studio (shellyswitch_13572b) @@ -49,7 +49,7 @@ logbook: - binary_sensor.tapparella_studio_old_channel_1_input - binary_sensor.tapparella_studio_old_channel_2_input - binary_sensor.tapparella_studio_old_cloud - - update.tapparella_studio_old_firmware_update + - update.tapparella_studio_old_firmware - sensor.tapparella_studio_old_rssi - sensor.tapparella_studio_old_uptime # Shelly 4 - Tapparella Camera (shellyswitch_559c49) @@ -58,7 +58,7 @@ logbook: - binary_sensor.tapparella_camera_old_channel_1_input - binary_sensor.tapparella_camera_old_channel_2_input - binary_sensor.tapparella_camera_old_cloud - - update.tapparella_camera_old_firmware_update + - update.tapparella_camera_old_firmware - sensor.tapparella_camera_old_rssi - sensor.tapparella_camera_old_uptime # Shelly 5 - Luce Corridoio (shelly1_24d1ee) @@ -68,7 +68,7 @@ logbook: - sensor.luce_corridoio_uptime # Shelly 6 - Luce Cucina (shelly1_93B27D) - binary_sensor.luce_cucina_old_cloud - - update.luce_cucina_old_firmware_update + - update.luce_cucina_old_firmware - sensor.luce_cucina_old_rssi - sensor.luce_cucina_old_uptime # Shelly 8 - Luci Bagno (shellyswitch25_7457d8) @@ -81,7 +81,7 @@ logbook: - binary_sensor.luci_bagno_cloud - sensor.luci_bagno_device_temperature - binary_sensor.luci_bagno_overheating - - update.luci_bagno_firmware_update + - update.luci_bagno_firmware - sensor.luci_bagno_rssi - sensor.luci_bagno_uptime # Shelly 10 - Luce Camera (shellydimmer_d46cf2) @@ -93,12 +93,12 @@ logbook: - binary_sensor.luce_camera_old_cloud - sensor.luce_camera_old_device_temperature - binary_sensor.luce_camera_old_overheating - - update.luce_camera_old_firmware_update + - update.luce_camera_old_firmware - sensor.luce_camera_old_rssi - sensor.luce_camera_old_uptime # Shelly 11 - Luce Balcone (shelly1_c423c8) - binary_sensor.luce_balcone_old_cloud - - update.luce_balcone_old_firmware_update + - update.luce_balcone_old_firmware - sensor.luce_balcone_old_rssi - sensor.luce_balcone_old_uptime # Shelly Bulb (shellybulb_bc8610) @@ -156,7 +156,7 @@ recorder: - binary_sensor.tapparella_cucina_old_channel_1_input - binary_sensor.tapparella_cucina_old_channel_2_input - binary_sensor.tapparella_cucina_old_cloud - - update.tapparella_cucina_old_firmware_update + - update.tapparella_cucina_old_firmware - sensor.tapparella_cucina_old_rssi - sensor.tapparella_cucina_old_uptime # Shelly 2 - Tapparella Sala (shellyswitch25_6919bd) @@ -167,7 +167,7 @@ recorder: - binary_sensor.tapparella_sala_old_cloud - sensor.tapparella_sala_old_device_temperature - binary_sensor.tapparella_sala_old_overheating - - update.tapparella_sala_old_firmware_update + - update.tapparella_sala_old_firmware - sensor.tapparella_sala_old_rssi - sensor.tapparella_sala_old_uptime # Shelly 3 - Tapparella Studio (shellyswitch_13572b) @@ -176,7 +176,7 @@ recorder: - binary_sensor.tapparella_studio_old_channel_1_input - binary_sensor.tapparella_studio_old_channel_2_input - binary_sensor.tapparella_studio_old_cloud - - update.tapparella_studio_old_firmware_update + - update.tapparella_studio_old_firmware - sensor.tapparella_studio_old_rssi - sensor.tapparella_studio_old_uptime # Shelly 4 - Tapparella Camera (shellyswitch_559c49) @@ -185,7 +185,7 @@ recorder: - binary_sensor.tapparella_camera_old_channel_1_input - binary_sensor.tapparella_camera_old_channel_2_input - binary_sensor.tapparella_camera_old_cloud - - update.tapparella_camera_old_firmware_update + - update.tapparella_camera_old_firmware - sensor.tapparella_camera_old_rssi - sensor.tapparella_camera_old_uptime # Shelly 5 - Luce Corridoio (shelly1_24d1ee) @@ -195,7 +195,7 @@ recorder: - sensor.luce_corridoio_uptime # Shelly 6 - Luce Cucina (shelly1_93B27D) - binary_sensor.luce_cucina_old_cloud - - update.luce_cucina_old_firmware_update + - update.luce_cucina_old_firmware - sensor.luce_cucina_old_rssi - sensor.luce_cucina_old_uptime # Shelly 8 - Luci Bagno (shellyswitch25_7457d8) @@ -208,7 +208,7 @@ recorder: - binary_sensor.luci_bagno_cloud - sensor.luci_bagno_device_temperature - binary_sensor.luci_bagno_overheating - - update.luci_bagno_firmware_update + - update.luci_bagno_firmware - sensor.luci_bagno_rssi - sensor.luci_bagno_uptime # Shelly 10 - Luce Camera (shellydimmer_d46cf2) @@ -220,12 +220,12 @@ recorder: - binary_sensor.luce_camera_old_cloud - sensor.luce_camera_old_device_temperature - binary_sensor.luce_camera_old_overheating - - update.luce_camera_old_firmware_update + - update.luce_camera_old_firmware - sensor.luce_camera_old_rssi - sensor.luce_camera_old_uptime # Shelly 11 - Luce Balcone (shelly1_c423c8) - binary_sensor.luce_balcone_old_cloud - - update.luce_balcone_old_firmware_update + - update.luce_balcone_old_firmware - sensor.luce_balcone_old_rssi - sensor.luce_balcone_old_uptime # Shelly Bulb (shellybulb_bc8610) diff --git a/shell_scripts/shelly_reboot.sh b/shell_scripts/shelly_reboot.sh index e9206831..93fdefc1 100755 --- a/shell_scripts/shelly_reboot.sh +++ b/shell_scripts/shelly_reboot.sh @@ -8,19 +8,18 @@ fi USER=$(awk '/shelly_user/ { print $2 }' $HASS_HOME/secrets.yaml) PASSWORD=$(awk '/shelly_password/ { print $2 }' $HASS_HOME/secrets.yaml) SHELLY_ID=( + shellyem.giorgioravera.it shelly1.giorgioravera.it shelly2.giorgioravera.it shelly3.giorgioravera.it shelly4.giorgioravera.it shelly5.giorgioravera.it shelly6.giorgioravera.it - shelly7.giorgioravera.it shelly8.giorgioravera.it - shelly9.giorgioravera.it shelly10.giorgioravera.it shelly11.giorgioravera.it shellybulb.giorgioravera.it - shellyem.giorgioravera.it + shellyem-old.giorgioravera.it shellyplugs.giorgioravera.it ) diff --git a/shell_scripts/shelly_upgrade.sh b/shell_scripts/shelly_upgrade.sh index 393f2c30..913f2b03 100755 --- a/shell_scripts/shelly_upgrade.sh +++ b/shell_scripts/shelly_upgrade.sh @@ -9,15 +9,14 @@ HOST=$(awk '/mqtt_host/ { print $2 }' $HASS_HOME/secrets.yaml) USER=$(awk '/mqtt_user/ { print $2 }' $HASS_HOME/secrets.yaml) PASSWORD=$(awk '/mqtt_password/ { print $2 }' $HASS_HOME/secrets.yaml) SHELLY_ID=( + shellyem-B9F0D0 shellyswitch-55980F shellyswitch25-6919BD shellyswitch-13572B shellyswitch-559C49 shelly1-24D1EE shelly1-93B27D - shellydimmer-D3EA58 shellyswitch25-C45BBE6C38D0 - shelly1-59E18C shellydimmer-D46CF2 shelly1-C423C8 shellybulb-BC8610 diff --git a/shell_scripts/shelly_uptime.sh b/shell_scripts/shelly_uptime.sh index 4bd17b1b..e1369a91 100755 --- a/shell_scripts/shelly_uptime.sh +++ b/shell_scripts/shelly_uptime.sh @@ -8,19 +8,18 @@ fi USER=$(awk '/shelly_user/ { print $2 }' $HASS_HOME/secrets.yaml) PASSWORD=$(awk '/shelly_password/ { print $2 }' $HASS_HOME/secrets.yaml) SHELLY_ID=( + shellyem.giorgioravera.it shelly1.giorgioravera.it shelly2.giorgioravera.it shelly3.giorgioravera.it shelly4.giorgioravera.it shelly5.giorgioravera.it shelly6.giorgioravera.it - shelly7.giorgioravera.it shelly8.giorgioravera.it - shelly9.giorgioravera.it shelly10.giorgioravera.it shelly11.giorgioravera.it shellybulb.giorgioravera.it - shellyem.giorgioravera.it + shellyem-old.giorgioravera.it shellyplugs.giorgioravera.it ) -- 2.47.3