mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-02 09:17:35 +00:00
34 lines
798 B
Markdown
34 lines
798 B
Markdown
---
|
|
layout: page
|
|
title: gc100 Binary Sensor
|
|
description: "Instructions on how to set up a gc100 binary sensor within Home Assistant."
|
|
date: 2017-10-27 17:26
|
|
sidebar: true
|
|
comments: false
|
|
sharing: true
|
|
footer: true
|
|
ha_category: Binary Sensor
|
|
ha_release: 0.57
|
|
ha_iot_class: "Local Polling"
|
|
---
|
|
|
|
To enable this sensor, you first have to set up [gc100](/components/gc100/), and add the following lines to your `configuration.yaml` file:
|
|
|
|
```yaml
|
|
# Example configuration.yaml entry
|
|
binary_sensor:
|
|
- platform: gc100
|
|
ports:
|
|
- '3:1': Doorchime
|
|
- '3:2': Garage Obstruction
|
|
```
|
|
|
|
{% configuration %}
|
|
ports:
|
|
description: >
|
|
A list of module-address to name mappings in the format `'x:y': name`,
|
|
where x is module #, y is address.
|
|
required: true
|
|
type: list
|
|
{% endconfiguration %}
|