esphome-docs/components/binary_sensor/status.rst

36 lines
936 B
ReStructuredText
Raw Normal View History

2018-05-13 11:37:02 +02:00
Status Binary Sensor
====================
2018-11-14 22:12:27 +01:00
.. seo::
:description: Instructions for setting up MQTT status binary sensors.
:image: server-network.png
2018-11-14 22:12:27 +01:00
2019-02-17 12:28:17 +01:00
The Status Binary Sensor exposes the node state (if its connected to via MQTT/native API)
for Home Assistant.
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
.. figure:: images/status-ui.png
:align: center
:width: 80.0%
2018-05-13 11:37:02 +02:00
.. code-block:: yaml
2018-05-13 11:37:02 +02:00
# Example configuration entry
binary_sensor:
- platform: status
name: "Living Room Status"
Configuration variables:
2018-08-24 22:44:01 +02:00
------------------------
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
- **name** (**Required**, string): The name of the binary sensor.
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
2019-02-17 12:28:17 +01:00
- All other options from :ref:`Binary Sensor <config-binary_sensor>`. (Inverted mode is not supported)
2018-06-01 18:10:00 +02:00
See Also
2018-08-24 22:44:01 +02:00
--------
2018-06-01 18:10:00 +02:00
- :doc:`/components/binary_sensor/index`
- :doc:`/components/mqtt`
2019-05-12 22:44:59 +02:00
- :apiref:`status/status_binary_sensor.h`
- :ghedit:`Edit`