From: Giorgio Ravera Date: Sat, 27 Mar 2021 19:26:41 +0000 (+0100) Subject: Moved all shelly elements into shelly package X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=06bf4a0d37edf19032deed6c66000f2726c4e587;p=homeassistant.git Moved all shelly elements into shelly package --- diff --git a/customizations/shelly.yaml b/customizations/shelly.yaml deleted file mode 100644 index 471afa17..00000000 --- a/customizations/shelly.yaml +++ /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 index 646fb53c..00000000 --- a/groups/shelly.yaml +++ /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 diff --git a/log/history.yaml b/log/history.yaml index 953174ab..8480c422 100644 --- a/log/history.yaml +++ b/log/history.yaml @@ -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 diff --git a/log/logbook.yaml b/log/logbook.yaml index 5b5396fb..78acd324 100644 --- a/log/logbook.yaml +++ b/log/logbook.yaml @@ -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 diff --git a/log/recorder.yaml b/log/recorder.yaml index d25e4c52..8c20a79e 100644 --- a/log/recorder.yaml +++ b/log/recorder.yaml @@ -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 index 00000000..fff77469 --- /dev/null +++ b/packages/shelly/shelly_customizations.yaml @@ -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 index 00000000..21580db7 --- /dev/null +++ b/packages/shelly/shelly_groups.yaml @@ -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 index 00000000..652726e4 --- /dev/null +++ b/packages/shelly/shelly_log.yaml @@ -0,0 +1,65 @@ +###################################################################### +# Shelly Package - History +###################################################################### + +history: + exclude: + 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 + +###################################################################### +# Shelly Package - Logbook +###################################################################### + +logbook: + exclude: + 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 + +###################################################################### +# Shelly Package - Recorder +###################################################################### + +recorder: + exclude: + 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_operations.yaml b/packages/shelly/shelly_operations.yaml new file mode 100644 index 00000000..9dc484ce --- /dev/null +++ b/packages/shelly/shelly_operations.yaml @@ -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 index 00000000..7e415cc8 --- /dev/null +++ b/packages/shelly/shelly_sensor.yaml @@ -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 index d3aca8e5..00000000 --- a/scripts/shelly.yaml +++ /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 index 741b62f1..00000000 --- a/sensor/shelly.yaml +++ /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 index 200346e3..00000000 --- a/shell_command/shelly.yaml +++ /dev/null @@ -1 +0,0 @@ -shelly_reboot: 'bash /config/shell_scripts/shelly_reboot.sh'