Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Xiaomi zigbee switch configure for home assistant by Zigbee2mqtt
#1
sensor:
  - platform: mqtt
    name: Voltage
    state_topic: "zigbee2mqtt/0x00158d00067ec29e"
    value_template: "{{ value_json.battery }}"
    unit_of_measurement: "%"
    availability_topic: "zigbee2mqtt/bridge/state"
    payload_available: "online"
    payload_not_available: "offline"
    qos: 0
    device_class: battery

  - platform: mqtt
    name: signal
    state_topic: "zigbee2mqtt/0x00158d00067ec29e" 
    value_template: "{{ value_json.linkquality }}"
    availability_topic: "zigbee2mqtt/bridge/state"
    payload_available: "online"
    payload_not_available: "offline"
    qos: 0
    device_class: signal_strength

  - platform: mqtt
    name: click
    state_topic: "zigbee2mqtt/0x00158d00067ec29e"
    value_template: "{{ value_json.click }}"
    availability_topic: "zigbee2mqtt/bridge/state"
    payload_available: "online"
    payload_not_available: "offline"
Reply
#2
ID need replace with your device. such as '0x00158d00067ec29e'
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)