-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from esphome/next
Next
- Loading branch information
Showing
69 changed files
with
1,220 additions
and
276 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
This file contains 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,49 @@ | ||
UDP Binary Sensor | ||
================= | ||
|
||
.. seo:: | ||
:description: Instructions for setting up a UDP binary sensor. | ||
:image: udp.svg | ||
|
||
The ``udp`` binary sensor platform allows you to receive binary sensor data directly from another ESPHome node. | ||
|
||
.. code-block:: yaml | ||
# Example configuration entry | ||
binary_sensor: | ||
- platform: udp | ||
id: switch_status | ||
provider: light-switch | ||
remote_id: light_switch | ||
Configuration variables | ||
----------------------- | ||
|
||
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. | ||
- **provider** (**Required**, string): The name of the provider node. | ||
- **remote_id** (*Optional*, :ref:`config-id`): The ID of the original binary sensor in the provider device. If not specified defaults to the ID configured with ``id:``. | ||
- **name** (*Optional*, string): The name of the binary sensor. | ||
- **internal** (*Optional*, boolean): Whether the sensor should be exposed via API (e.g. to Home Assistant.) Defaults to ``true`` if name is not set, required if name is provided. | ||
- All other options from :ref:`Binary Sensor <config-binary_sensor>`. | ||
|
||
At least one of ``id`` and ``remote_id`` must be configured. | ||
|
||
Publishing to Home Assistant | ||
---------------------------- | ||
|
||
Typically this type of binary sensor would be used for internal automation purposes rather than having it published back to | ||
Home Assistant, since it would be a duplicate of the original sensor. | ||
|
||
If it *is* desired to expose the binary sensor to Home Assistant, then the ``internal:`` configuration setting needs to be explicitly | ||
set to ``false`` and a name provided. | ||
Only the state (i.e. binary value) of the remote sensor is received by the consumer, so any other attributes must be explicitly | ||
configured. | ||
|
||
See Also | ||
-------- | ||
|
||
- :doc:`/components/udp` | ||
- :doc:`/components/sensor/index` | ||
- :ref:`automation` | ||
- :apiref:`udp/udp_component.h` | ||
- :ghedit:`Edit` |
This file contains 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
This file contains 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,67 @@ | ||
CH422G I/O Expander | ||
==================== | ||
|
||
.. seo:: | ||
:description: Instructions for setting up CH422G digital port expanders in ESPHome. | ||
:image: ch422g.svg | ||
|
||
|
||
The CH422G component allows you to use the **CH422G** I/O expander in ESPHome. | ||
It uses an :ref:`I²C Bus <i2c>` for communication. | ||
|
||
Once configured, you can use any of the 8 available GPIO pins for your projects. | ||
Within ESPHome they can be used in place of internal GPIO pins in many of ESPHome's components such as the GPIO Binary Sensor or GPIO Switch. They are not usable for PWM or other situations requiring an internal GPIO pin. | ||
|
||
.. note:: | ||
|
||
This I/O Expander chip is used in the *Waveshare ESP32-S3-Touch-LCD-4.3* | ||
|
||
.. code-block:: yaml | ||
# Example configuration entry | ||
ch422g: | ||
- id: ch422g_hub | ||
address: 0x24 | ||
# Individual outputs | ||
switch: | ||
- platform: gpio | ||
name: CH422G Pin 0 | ||
pin: | ||
ch422g: ch422g_hub | ||
number: 0 | ||
mode: | ||
output: true | ||
inverted: false | ||
Configuration variables: | ||
************************ | ||
|
||
- **id** (**Required**, :ref:`config-id`): The id to use for this ``ch422g`` component. | ||
- **address** (*Optional*, int): The I²C address of the driver. | ||
Defaults to ``0x24``. | ||
- **restore_value** (*Optional*, boolean): Writes default flags on setup, overriding values from chips cache. | ||
Defaults to ``false``. | ||
|
||
|
||
|
||
Pin configuration variables: | ||
**************************** | ||
|
||
- **ch422g** (**Required**, :ref:`config-id`): The id of the ``ch422g`` component of the pin. | ||
- **number** (**Required**, int): The pin number. Valid numbers are 0-7. | ||
- **inverted** (*Optional*, boolean): If all read and written values | ||
should be treated as inverted. Defaults to ``false``. | ||
- **mode** (*Optional*, string): A pin mode to set the pin at. One of ``INPUT`` or ``OUTPUT``. | ||
|
||
|
||
See Also | ||
-------- | ||
|
||
- :ref:`i2c` | ||
- :doc:`switch/gpio` | ||
- :doc:`binary_sensor/gpio` | ||
- `CH422G datasheet <https://www.wch-ic.com/downloads/file/315.html?time=2024-07-29%2002:02:32&code=Fxex1sTRHysGLS6ALgh7PTOOZnAACY6KTQx05vzD>`__ | ||
- :apiref:`ch422g/ch422g.h` | ||
- :ghedit:`Edit` |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.