]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added shelly 11 to sensors
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 18 Mar 2020 17:51:42 +0000 (18:51 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 18 Mar 2020 17:51:42 +0000 (18:51 +0100)
sensor/shelly.yaml

index 66742530546395b0946d4d592b93444be2c0eaf2..e17a9ee720de5afa5516783a85bcd7cf305b9ea3 100644 (file)
     - 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
 ######################################################################