elric91 / homeassistant_zigate

Custom components for Home Assistant
MIT License
22 stars 5 forks source link

ZiGate components for Home Assistant

A new component which enable to grab Zigbee data through the ZiGate (http://zigate.fr)

To install, simply copy all the files in your hass configuration folder, under 'custom_components' and adapt your configuration.yaml

To pair a new device, go in developer/services (the little remote in the menu) and call the 'zigate.permit_join' service. You have 30 seconds to pair your device. If successull, you should have a notification on your home page

Example config for a xiaomi_aqara temperature sensor :

More examples in the wiki

# Enable ZiGate
zigate:

# Add sensor (previously registered with the ZiGate)
sensor:
  - platform: zigate
    name: 'LivingRoom Sensor'
    address: a1b201
    default_state: temperature
    default_unit: '°C'

  - platform: template
    sensors:
      pressure1:
        friendly_name: 'LivingRoom Atmospheric Pressure'
        unit_of_measurement: 'mb'
        value_template: '{{ states.sensor.livingroom_sensor.attributes.pressure }}'

switch:
  - platform: zigate
    name: 'Presence detection'
    address: c3d401

light:
  - platform: zigate
    name: 'Light'
    address: 6e8e01
    light_type: 'dual-white'
    default_state: 'event'