Skip to content

Commit 9f3139e

Browse files
florincostafabaff
authored andcommitted
Add raspihats binary_sensor documentation (home-assistant#2574)
* Add raspihats component documentation * Added raspihats binary_sensor documentation * Add raspihats switch documentation
1 parent 88e10f2 commit 9f3139e

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
layout: page
3+
title: "Raspihats Binary Sensor"
4+
description: "Instructions how to integrate Raspihats add-on boards for Raspberry PI into Home Assistant as a binary_sensor."
5+
date: 2017-05-01 04:09
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: raspihats.png
11+
ha_category: Binary Sensor
12+
ha_release: 0.44
13+
ha_iot_class: "Local Push"
14+
---
15+
16+
The `raspihats` binary sensor platform allows you to read sensor values ​​using the digital inputs of the [raspihats](http://www.raspihats.com/) boards.
17+
18+
To use your `raspihats` boards in your installation, add the following to your `configuration.yaml` file:
19+
20+
```yaml
21+
# Example configuration.yaml entry
22+
binary_sensor:
23+
- platform: raspihats
24+
i2c_hats:
25+
- board: DI6acDQ6rly
26+
address: 0x60
27+
channels:
28+
- index: 0
29+
name: PIR Office
30+
invert_logic: true
31+
device_class: motion
32+
- index: 1
33+
name: PIR Bedroom
34+
```
35+
36+
Configuration variables:
37+
38+
- **i2c_hats** (*Optional*): Array of used I2C-HATs.
39+
- **board** (*Required*): The board name [Di16, Di6Rly6, DI16ac, DI6acDQ6rly].
40+
- **address** (*Required*): The board I2C address, hex value.
41+
- **channels** (*Required*): Array of used digital input channels.
42+
- **index** (*Required*): Digital input channel index.
43+
- **name** (*Required*): Friendly name to use for the frontend.
44+
- **invert_logic** (*Optional*): Inverts the input logic, default is `false`.
45+
- **device_class** (*Optional*): See device classes in [binary_sensor component](/components/binary_sensor/), default is `None`
46+
47+
For more details about the `raspihats` add-on boards for Raspberry PI, visit [raspihats.com](http://www.raspihats.com/).
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
layout: page
3+
title: "Raspihats Switch"
4+
description: "Instructions how to integrate Raspihats add-on boards for Raspberry PI into Home Assistant as a switch."
5+
date: 2017-05-15 04:20
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: raspihats.png
11+
ha_category: Switch
12+
ha_release: 0.45
13+
---
14+
15+
16+
The `raspihats` switch platform allows you to control the digital outputs of your [raspihats](http://www.raspihats.com/) boards.
17+
18+
To use your raspihats boards in your installation, add the following to your `configuration.yaml` file:
19+
20+
```yaml
21+
# Example configuration.yaml entry
22+
switch:
23+
- platform: raspihats
24+
i2c_hats:
25+
- board: DI6acDQ6rly
26+
address: 0x60
27+
channels:
28+
- index: 0
29+
name: Fan Office
30+
invert_logic: true
31+
initial_state: true
32+
- index: 1
33+
name: Light Office
34+
```
35+
36+
Configuration variables:
37+
38+
- **i2c_hats** (*Optional*): Array of used I2C-HATs.
39+
- **board** (*Required*): The board name.
40+
- **address** (*Required*): The board I2C address, hex value.
41+
- **channels** (*Required*): Array of used digital output channels.
42+
- **index** (*Required*): Digital output channel index.
43+
- **name** (*Required*): Friendly name to use for the frontend.
44+
- **invert_logic** (*Optional*): Inverts the output logic, default is `False`.
45+
- **initial_state** (*Optional*): Initial state, default is `None`, can also be `True` or `False`. `None` means no state is forced on the corresponding digital output when this switch is instantiated.
46+
47+
For more details about the Raspihats add-on boards for Raspberry PI, visit [raspihats.com](http://www.raspihats.com/).

0 commit comments

Comments
 (0)