From: Giorgio Ravera Date: Wed, 18 Mar 2020 17:51:42 +0000 (+0100) Subject: Added shelly 11 to sensors X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=831aa3829c7071c877aedb8a6029c191cb44689e;p=homeassistant.git Added shelly 11 to sensors --- diff --git a/sensor/shelly.yaml b/sensor/shelly.yaml index 66742530..e17a9ee7 100644 --- a/sensor/shelly.yaml +++ b/sensor/shelly.yaml @@ -278,6 +278,34 @@ - update - uptime +###################################################################### +# Sensor: Shelly 11 +###################################################################### + +- platform: rest + scan_interval: 43200 + resource: http://shelly11.giorgioravera.it/status + method: GET + name: shelly11_status + #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 ######################################################################