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.
|
2018-11-19 18:32:16 +01:00
|
|
|
|
: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 it’s 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
|
|
|
|
|
2018-11-19 18:32:16 +01: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
|
|
|
|
|
2019-02-07 13:54:45 +01:00
|
|
|
|
- :doc:`/components/binary_sensor/index`
|
|
|
|
|
- :doc:`/components/mqtt`
|
2019-05-12 22:44:59 +02:00
|
|
|
|
- :apiref:`status/status_binary_sensor.h`
|
2019-02-07 13:54:45 +01:00
|
|
|
|
- :ghedit:`Edit`
|