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
-
# 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
- 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
--- /dev/null
+######################################################################\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
# 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"