+++ /dev/null
-######################################################################
-# Customization: Shelly
-######################################################################
-
-script.shelly_upgrade:
- icon: mdi:cellphone-arrow-down
-
-script.shelly_reboot:
- icon: mdi:restart
+++ /dev/null
-######################################################################
-# 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
- 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
- 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
- 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
--- /dev/null
+######################################################################
+# Shelly Package - Customization
+######################################################################
+
+homeassistant:
+ customize:
+ script.shelly_upgrade:
+ icon: mdi:cellphone-arrow-down
+
+ script.shelly_reboot:
+ icon: mdi:restart
--- /dev/null
+######################################################################
+# 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
--- /dev/null
+######################################################################\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
--- /dev/null
+######################################################################
+# 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'
--- /dev/null
+######################################################################
+# 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
+++ /dev/null
-######################################################################
-# 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
+++ /dev/null
-######################################################################
-# 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
+++ /dev/null
-shelly_reboot: 'bash /config/shell_scripts/shelly_reboot.sh'