Skip to content

hzxa21/homeassistant-terncy-component

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

homeassistant-terncy-component

terncy custome component for homeassistant

查看中文帮助

Component Information

  • ha_iot_class: Local Push
  • ha_release: '2021.3.1'
  • ha_config_flow: true
  • ha_domain: terncy

The Terncy integration allows you to control your Terncy devices connected to the Terncy Home Center (a Zigbee gateway) with Home Assistant.

There is support for the following device type within Home Assistant:

  • Light
  • Switch
  • Curtain Motor
  • Smart Plug
  • Motion Sensor
  • Door Sensor
  • Temperature Sensor
  • Humidity Sensor

Installation

  1. Download component from Releases
  2. Extract the release to home assistant custom_components folder. Once installed, the file structure is like:
homeassistant_configuration_root
├── automations.yaml
├── blueprints
├── configuration.yaml
├── custom_components
│   └── terncy
│       ├── translations
│       ├── __init__.py
│       ├── binary_sensor.py
│       ├── config_flow.py
│       ├── const.py
│       ├── cover.py
│       ├── ...
  1. Restart home assistant

Configuration

The Terncy integration is automatically discovered. Or add it via the add integration menu.

Before trying to control Terncy devices through Home Assistant, you have to set up the system using the Terncy app.

  • To set up this integration, click Configuration in the sidebar and then click Integrations. You should see "Terncy" in the discovered section (if you do not, click the + icon in the lower right and find Terncy).
  • Click configure and you will be presented with the initiation dialog. This will prompt you to select the Terncy Home Center to connect.
  • After you click submit, you will get an access request in Terncy app. Within Terncy app, You'll find the pending access request in Home Center configuraiton page, under Local Access menu entry.
  • After you approved the access, click submit to finish adding Terncy.

Once registration is complete you should see the Terncy lights listed as light entities.

Debugging

Enable and view log of Terncy component

Edit configuration.yaml file in home assistant config directory, add below contents:

default_config:

logger:
  default: info
  logs:
    homeassistant.components.terncy: info

View log at http://{ip_of_home_assistant}:8123/config/logs, or with docker logs -f --tail 0 {docker_instantce_name} if running home assistant in docker.

About

Terncy custom component for homeassistant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%