mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-05 19:08:49 +01:00
27 lines
575 B
ReStructuredText
27 lines
575 B
ReStructuredText
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");
|
|
|
|
.. cpp:namespace:: nullptr
|
|
|
|
See :cpp:func:`Application::make_status_binary_sensor`.
|
|
|
|
API Reference
|
|
-------------
|
|
|
|
.. cpp:namespace:: nullptr
|
|
|
|
.. doxygenclass:: binary_sensor::StatusBinarySensor
|
|
:members:
|
|
:protected-members:
|
|
:undoc-members:
|