terncy custome component for homeassistant
- 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
- Download component from Releases
- 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
│ ├── ...
- Restart home assistant
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.
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.