From: Giorgio Ravera Date: Sun, 19 Apr 2020 10:18:59 +0000 (+0200) Subject: Removed Shelly DW, moved xiaomi switch sensor to a dedicated file, cleaned main confi... X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=cf5d559cd97d3e8519210471891a6d3c6aba8e2d;p=homeassistant.git Removed Shelly DW, moved xiaomi switch sensor to a dedicated file, cleaned main configuration file --- diff --git a/binary_sensor/doors.yaml b/binary_sensor/doors.yaml index 29b2f950..ec505830 100644 --- a/binary_sensor/doors.yaml +++ b/binary_sensor/doors.yaml @@ -23,19 +23,3 @@ 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 - diff --git a/configuration.yaml b/configuration.yaml index 90334a9f..ad2038f6 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -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 diff --git a/sensor/shelly.yaml b/sensor/shelly.yaml index c76fb524..a6f53dec 100644 --- a/sensor/shelly.yaml +++ b/sensor/shelly.yaml @@ -362,34 +362,6 @@ - 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 ###################################################################### @@ -417,27 +389,3 @@ # - 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 index 00000000..d3ecb71e --- /dev/null +++ b/sensor/switch.yaml @@ -0,0 +1,10 @@ +###################################################################### +# 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 }}" diff --git a/sensor/xiaomi.yaml b/sensor/xiaomi.yaml index 7d072391..5779e1c0 100644 --- a/sensor/xiaomi.yaml +++ b/sensor/xiaomi.yaml @@ -40,13 +40,6 @@ # 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"