Skip to content

Files

Latest commit

cdda156 · Nov 1, 2020

History

History
74 lines (57 loc) · 2.36 KB

5AA-SS-ZA-H0.md

File metadata and controls

74 lines (57 loc) · 2.36 KB
title description
Leedarson 5AA-SS-ZA-H0 control via MQTT
Integrate your Leedarson 5AA-SS-ZA-H0 via Zigbee2MQTT with whatever smart home infrastructure you are using without the vendors bridge or gateway.

To contribute to this page, edit the following file

Leedarson 5AA-SS-ZA-H0

| Model | 5AA-SS-ZA-H0 | | Vendor | Leedarson | | Description | Motion sensor | | Supports | occupancy, illuminance | | Picture | Leedarson 5AA-SS-ZA-H0 |

Notes

Device type specific configuration

How to use device type specific configuration

  • illuminance_lux_precision: Controls the precision of illuminance_lux values, e.g. 0 or 1; default 1. To control the precision based on the illuminance_lux value set it to e.g. {1000: 0, 100: 1}, when illuminance_lux >= 1000 precision will be 0, when illuminance_lux >= 100 precision will be 1.

  • illuminance_lux_calibration: Allows to manually calibrate illuminance values, e.g. 95 would take 95% to the illuminance reported by the device; default 100.

Manual Home Assistant configuration

Although Home Assistant integration through MQTT discovery is preferred, manual integration is possible with the following configuration:

{% raw %}

binary_sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    value_template: "{{ value_json.occupancy }}"
    payload_on: true
    payload_off: false
    device_class: "motion"

sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    unit_of_measurement: "-"
    value_template: "{{ value_json.illuminance }}"
    device_class: "illuminance"

sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    unit_of_measurement: "lx"
    value_template: "{{ value_json.illuminance_lux }}"
    device_class: "illuminance"

sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    unit_of_measurement: "lqi"
    value_template: "{{ value_json.linkquality }}"
    icon: "mdi:signal"

{% endraw %}