]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Removed Shelly DW, moved xiaomi switch sensor to a dedicated file, cleaned main confi...
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 19 Apr 2020 10:18:59 +0000 (12:18 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 19 Apr 2020 10:18:59 +0000 (12:18 +0200)
binary_sensor/doors.yaml
configuration.yaml
sensor/shelly.yaml
sensor/switch.yaml [new file with mode: 0644]
sensor/xiaomi.yaml

index 29b2f95009eec4966bafd56c79da541d221e8e06..ec50583063a71e851664bddd8c025431fd2d01e9 100644 (file)
   payload_off: true
   value_template: "{{ value_json.contact }}"
   device_class: "door"
-
-######################################################################
-# Shelly Door/Window
-######################################################################
-
-#- platform: mqtt
-#  name: "Porta Casa 3"
-#  state_topic: "shellies/shellydw-B88F53/sensor/state"
-#  payload_on: "open"
-#  payload_off: "close"
-#  #availability_topic: "shellies/shellydw-B88F53/online"
-#  #payload_available: "true"
-#  #payload_not_available: "false"
-#  qos: 0
-#  device_class: opening
-
index 90334a9f3ccce56126aafd9bf359994da38245fa..ad2038f6b8d7e10870c019feefff1e4654d16f9f 100644 (file)
@@ -31,20 +31,15 @@ lovelace: !include lovelace.yaml
 
 # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
 http:
-   # api_password: !secret http_password
    base_url: !secret base_url
-   # server_port: 80
-   # ssl_certificate: /var/lib/homeassistant/.homeassistant/fullchain.pem
-   # ssl_key: /var/lib/homeassistant/.homeassistant/privkey.pem
+   # ssl_certificate: /config/certs/fullchain.pem
+   # ssl_key: /config/certs/privkey.pem
    use_x_forwarded_for: true
    trusted_proxies:
      - 127.0.0.1       # traefik and home assistant in host mode
 #     - 172.18.0.1      # traefik in host mode and homeassistant in network mode
 #     - 172.18.0.200    # traefik and home in network mode
      - 192.168.0.1
-   # trusted_networks:
-   #   - 192.168.0.0
-   #   - 192.168.2.0
    ip_ban_enabled: True
    login_attempts_threshold: 3
 
index c76fb524b7cdbdbcd5b913c82123657faaed6aa5..a6f53decb7cbd23d40dc43bf6b7bf07d3a871032 100644 (file)
     - update
     - uptime
 
-######################################################################
-# Sensor: Shelly Door/Window
-######################################################################
-
-#- platform: rest
-#  scan_interval: 43200
-#  resource: http://shellydw.giorgioravera.it/status
-#  method: GET
-#  name: shellyplugs_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 Plug S
 ######################################################################
 #    - mac
 #    - update
 #    - uptime
-
-######################################################################
-# Shelly Door/Window
-######################################################################
-
-#- platform: mqtt
-#  name: "Porta Casa 3: Batteria"
-#  state_topic: "shellies/shellydw-B88F53/sensor/battery"
-#  unit_of_measurement: '%'
-#  #availability_topic: "shellies/shellydw-B88F53/online"
-#  #payload_available: "true"
-#  #payload_not_available: "false"
-#  qos: 0
-#  device_class: battery
-
-#- platform: mqtt
-#  name: "Porta Casa 3: Luce"
-#  state_topic: "shellies/shellydw-B88F53/sensor/lux"
-#  unit_of_measurement: 'lux'
-#  #availability_topic: "shellies/shellydw-B88F53/online"
-#  #payload_available: "true"
-#  #payload_not_available: "false"
-#  qos: 0
-#  device_class: illuminance
diff --git a/sensor/switch.yaml b/sensor/switch.yaml
new file mode 100644 (file)
index 0000000..d3ecb71
--- /dev/null
@@ -0,0 +1,10 @@
+######################################################################\r
+# WXKG01LM - Xiaomi MiJia wireless switch\r
+######################################################################\r
+\r
+- platform: "mqtt"\r
+  name: "Pulsante: Stato"\r
+  state_topic: "zigbee2mqtt/0x00158d0004081917"\r
+  availability_topic: "zigbee2mqtt/bridge/state"\r
+  icon: "mdi:toggle-switch"\r
+  value_template: "{{ value_json.click }}"\r
index 7d072391fa5217cc8425b84dacce519e5363fff8..5779e1c0efc51ffb9707587487ef07df1eee74b0 100644 (file)
 # WXKG01LM - Xiaomi MiJia wireless switch
 ######################################################################
 
-- platform: "mqtt"
-  name: "Pulsante: Stato"
-  state_topic: "zigbee2mqtt/0x00158d0004081917"
-  availability_topic: "zigbee2mqtt/bridge/state"
-  icon: "mdi:toggle-switch"
-  value_template: "{{ value_json.click }}"
-
 - platform: "mqtt"
   name: "Pulsante: Batteria"
   state_topic: "zigbee2mqtt/0x00158d0004081917"