-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Documentation for pi4ioe5v9xxxx integration #11220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e8bb953
Logo of diodes.com, for pi4ioe5v9xxxx devices
antonverburg c0dd882
Create pi4ioe5v9xxxx.markdown
antonverburg d608caa
Update source/_integrations/pi4ioe5v9xxxx.markdown
antonverburg dfd4beb
Removed not-required config parameters
antonverburg 694c199
Update source/_integrations/pi4ioe5v9xxxx.markdown
antonverburg 60a6887
Update source/_integrations/pi4ioe5v9xxxx.markdown
antonverburg d59abc4
Update pi4ioe5v9xxxx.markdown
antonverburg 2a35532
Update source/_integrations/pi4ioe5v9xxxx.markdown
antonverburg ccb9108
I2C bus number to optional
antonverburg c7c5fbd
Merge pull request #1 from home-assistant/next
antonverburg d366fd9
Create analog_output.markdown
antonverburg 81c5931
Added data attributed, fix typo
antonverburg cb2996b
Initial docu for slow_pwm
antonverburg 203dad3
Delete analog_output.markdown
antonverburg f4e909b
Delete slow_pwm.markdown
antonverburg e165b83
Update HA-release to 0.108
antonverburg 48a84f4
:pencil2: Tweaks
frenck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,135 @@ | ||
| --- | ||
| title: "pi4ioe5v9xxxx IO Expander" | ||
| description: "Instructions on how to integrate the pi4ioe5v9xxxx IO pin expander with I2C interface into Home Assistant." | ||
| logo: diodes.png | ||
| ha_category: | ||
| - DIY | ||
| - Binary Sensor | ||
| - Switch | ||
| ha_release: 0.109 | ||
| ha_iot_class: Local Polling | ||
| --- | ||
|
|
||
| The `pi4ioe5v9xxxx` integration provides support for the quasi-bidirectional devices PI4IOE5V9570, PI4IOE5V9674, PI4IOE5V9673, PI4IOE5V96224 and PI4IOE5V96248 from digital.com. | ||
|
|
||
| For more details about the pi4ioe5v9xxxx I2C I/O port expander you can find the datasheets here: | ||
| - [PI4IOE5V9570](https://www.diodes.com/assets/Datasheets/PI4IOE5V9570.pdf) | ||
| - [PI4IOE5V9674](https://www.diodes.com/assets/Datasheets/PI4IOE5V9674.pdf) | ||
| - [PI4IOE5V9673](https://www.diodes.com/assets/Datasheets/PI4IOE5V9673.pdf) | ||
| - [PI4IOE5V96224](https://www.diodes.com/assets/Datasheets/PI4IOE5V96224.pdf) | ||
| - [PI4IOE5V96248](https://www.diodes.com/assets/Datasheets/PI4IOE5V96248.pdf). | ||
|
|
||
| ## Binary Sensor | ||
|
|
||
| The `pi4ioe5v9xxxx` binary sensor platform allows you to read sensor values from the I/O pins of your I/O expander. | ||
|
|
||
| The pin numbers are from 1 to X where: 1-8 correspond to port 0 (00-07) and 9-16 to port 1, etc. | ||
|
|
||
| ### Configuration | ||
|
|
||
| To use the I/O pins of an pi4ioe5v9xxxx connected to an I2C bus of your Raspberry Pi as binary sensors, add the following to your `configuration.yaml` file: | ||
|
|
||
| ```yaml | ||
| # Example configuration.yaml entry | ||
| binary_sensor: | ||
|
antonverburg marked this conversation as resolved.
|
||
| - platform: pi4ioe5v9xxxx | ||
| pins: | ||
| 1: Pin_01/PI0_0 | ||
| 2: Pin_02/PI0_1 | ||
| 3: Pin_03/PI0_2 | ||
| 4: Pin_04/PI0_3 | ||
| 5: Pin_05/PI0_4 | ||
| 6: Pin_06/PI0_5 | ||
| 7: Pin_07/PI0_6 | ||
| 8: Pin_08/PI0_7 | ||
| ``` | ||
|
|
||
| {% configuration %} | ||
| pins: | ||
| description: List of used pins. | ||
| required: true | ||
| type: map | ||
| keys: | ||
| "pin: name": | ||
| description: The pin numbers (from 1 to X) and corresponding names. | ||
| required: true | ||
| type: [integer, string] | ||
| i2c_bus: | ||
| description: i2c bus containing the pi4ioe5v9xxxx chip. | ||
| required: false | ||
| type: integer | ||
| default: "`1`" | ||
| i2c_address: | ||
| description: i2c address of pi4ioe5v9xxxx chip. | ||
| required: false | ||
| type: integer | ||
| default: "`0x20`" | ||
| bits: | ||
| description: number of bits of pi4ioe5v9xxxx chip, see particular datasheet for your device for the right number. | ||
| required: false | ||
| type: integer | ||
| default: "`24`" | ||
| invert_logic: | ||
| description: If `true`, inverts the input logic to ACTIVE LOW. | ||
| required: false | ||
| type: boolean | ||
| default: "`false` (ACTIVE HIGH)" | ||
| {% endconfiguration %} | ||
|
|
||
|
|
||
| ## Switch | ||
|
|
||
| The `pi4ioe5v9xxxx` switch platform allows you to write to the I/O pins of your I2C I/O expander. | ||
|
|
||
| The pin numbers are from 1 to X, where 1-8 correspond to port A (A1-A8) and 9-16 to port B (B1-B8), etc. | ||
|
|
||
| ### Configuration | ||
|
|
||
| To use the I/O pins of an pi4ioe5v9xxxx connected to an I2C bus as switches, add the following to your `configuration.yaml` file: | ||
|
|
||
| ```yaml | ||
| # Example configuration.yaml entry | ||
| switch: | ||
|
antonverburg marked this conversation as resolved.
|
||
| - platform: pi4ioe5v9xxxx | ||
| pins: | ||
| 1: Pin_01/PI0_0 | ||
| 2: Pin_02/PI0_1 | ||
| 3: Pin_03/PI0_2 | ||
| 4: Pin_04/PI0_3 | ||
| 5: Pin_05/PI0_4 | ||
| 6: Pin_06/PI0_5 | ||
| 7: Pin_07/PI0_6 | ||
| 8: Pin_08/PI0_7 | ||
| ``` | ||
|
|
||
| {% configuration %} | ||
| pins: | ||
| description: List of used pins. | ||
| required: true | ||
| type: map | ||
| keys: | ||
| "pin: name": | ||
| description: The pin numbers (from 1 to X) and corresponding names. | ||
| required: true | ||
| type: [integer, string] | ||
| i2c_bus: | ||
| description: i2c bus containing the pi4ioe5v9xxxx chip. | ||
| required: false | ||
| type: integer | ||
| default: "`1`" | ||
| i2c_address: | ||
| description: i2c address of pi4ioe5v9xxxx chip. | ||
| required: false | ||
| type: integer | ||
| default: "`0x20`" | ||
| bits: | ||
| description: number of bits of pi4ioe5v9xxxx chip, see particular datasheet for your device for the right number. | ||
| required: false | ||
| type: integer | ||
| default: "`24`" | ||
| invert_logic: | ||
| description: If `true`, inverts the output logic to ACTIVE LOW. | ||
| required: false | ||
| type: boolean | ||
| default: "`false` (ACTIVE HIGH)" | ||
| {% endconfiguration %} | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.