esphome-docs/api/binary_sensor/status.rst

27 lines
575 B
ReStructuredText
Raw Normal View History

2018-05-13 11:37:02 +02:00
Node Status Binary Sensor
=========================
This binary sensor platform allows you to create a switch that uses the birth and last will
messages by the MQTT client to show an ON/OFF state of the node.
Example Usage
-------------
.. code-block:: cpp
App.make_status_binary_sensor("Livingroom Node Status");
2018-05-14 21:15:49 +02:00
.. cpp:namespace:: nullptr
2018-05-13 11:37:02 +02:00
See :cpp:func:`Application::make_status_binary_sensor`.
API Reference
-------------
.. cpp:namespace:: nullptr
.. doxygenclass:: binary_sensor::StatusBinarySensor
:members:
:protected-members:
:undoc-members: