Skip to content

Files

Latest commit

 

History

History
135 lines (107 loc) · 4.71 KB

KMPCIL_RES005.md

File metadata and controls

135 lines (107 loc) · 4.71 KB
title description
KMPCIL KMPCIL_RES005 control via MQTT
Integrate your KMPCIL KMPCIL_RES005 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

KMPCIL KMPCIL_RES005

| Model | KMPCIL_RES005 | | Vendor | KMPCIL | | Description | Environment sensor | | Supports | battery, temperature, humidity, pressure, illuminance, occupancy, switch | | Picture | KMPCIL KMPCIL_RES005 |

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.

  • temperature_precision: Controls the precision of temperature values, e.g. 0, 1 or 2; default 2. To control the precision based on the temperature value set it to e.g. {30: 0, 10: 1}, when temperature >= 30 precision will be 0, when temperature >= 10 precision will be 1.

  • temperature_calibration: Allows to manually calibrate temperature values, e.g. 1 would add 1 degree to the temperature reported by the device; default 0.

  • humidity_precision: Controls the precision of humidity values, e.g. 0, 1 or 2; default 2. To control the precision based on the humidity value set it to e.g. {80: 0, 10: 1}, when humidity >= 80 precision will be 0, when humidity >= 10 precision will be 1.

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

  • pressure_calibration: Allows to manually calibrate pressure values, e.g. 1 would add 1 to the pressure reported by the device; default 0.

Manual Home Assistant configuration

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

{% raw %}

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

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

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

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

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"

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"

switch:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    payload_off: "OFF"
    payload_on: "ON"
    value_template: "{{ value_json.state }}"
    command_topic: "zigbee2mqtt/<FRIENDLY_NAME>/set"

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 %}