ESPHome  1.15.3
Public Member Functions
esphome::binary_sensor::BinarySensorInitiallyOff Class Reference

#include <binary_sensor.h>

Inheritance diagram for esphome::binary_sensor::BinarySensorInitiallyOff:
esphome::binary_sensor::BinarySensor esphome::Nameable esphome::ble_presence::BLEPresenceDevice esphome::nextion::NextionTouchComponent esphome::rdm6300::RDM6300BinarySensor esphome::remote_base::RemoteReceiverBinarySensorBase esphome::xiaomi_mjyd02yla::XiaomiMJYD02YLA esphome::xiaomi_mue4094rt::XiaomiMUE4094RT esphome::xiaomi_wx08zm::XiaomiWX08ZM esphome::remote_base::RawBinarySensor esphome::remote_base::RCSwitchRawReceiver esphome::remote_base::RemoteReceiverBinarySensor< T, D >

Public Member Functions

bool has_state () const override
 
- Public Member Functions inherited from esphome::binary_sensor::BinarySensor
 BinarySensor ()
 
 BinarySensor (const std::string &name)
 Construct a binary sensor with the specified name. More...
 
void add_on_state_callback (std::function< void(bool)> &&callback)
 Add a callback to be notified of state changes. More...
 
void publish_state (bool state)
 Publish a new state to the front-end. More...
 
void publish_initial_state (bool state)
 Publish the initial state, this will not make the callback manager send callbacks and is meant only for the initial state on boot. More...
 
void set_device_class (const std::string &device_class)
 Manually set the Home Assistant device class (see binary_sensor::device_class) More...
 
std::string get_device_class ()
 Get the device class for this binary sensor, using the manual override if specified. More...
 
void add_filter (Filter *filter)
 
void add_filters (std::vector< Filter *> filters)
 
void send_state_internal (bool state, bool is_initial)
 
virtual bool is_status_binary_sensor () const
 
virtual std::string device_class ()
 Get the default device class for this sensor, or empty string for no default. More...
 
- Public Member Functions inherited from esphome::Nameable
 Nameable ()
 
 Nameable (const std::string &name)
 
const std::string & get_name () const
 
void set_name (const std::string &name)
 
const std::string & get_object_id ()
 Get the sanitized name of this nameable as an ID. Caching it internally. More...
 
uint32_t get_object_id_hash ()
 
bool is_internal () const
 
void set_internal (bool internal)
 

Additional Inherited Members

- Data Fields inherited from esphome::binary_sensor::BinarySensor
bool state
 The current reported state of the binary sensor. More...
 
- Protected Member Functions inherited from esphome::binary_sensor::BinarySensor
uint32_t hash_base () override
 
- Protected Member Functions inherited from esphome::Nameable
void calc_object_id_ ()
 
- Protected Attributes inherited from esphome::binary_sensor::BinarySensor
CallbackManager< void(bool)> state_callback_ {}
 
optional< std::string > device_class_ {}
 Stores the override of the device class. More...
 
Filterfilter_list_ {nullptr}
 
bool has_state_ {false}
 
Deduplicator< bool > publish_dedup_
 
- Protected Attributes inherited from esphome::Nameable
std::string name_
 
std::string object_id_
 
uint32_t object_id_hash_
 
bool internal_ {false}
 

Detailed Description

Definition at line 89 of file binary_sensor.h.

Member Function Documentation

◆ has_state()

bool esphome::binary_sensor::BinarySensorInitiallyOff::has_state ( ) const
inlineoverridevirtual

Reimplemented from esphome::binary_sensor::BinarySensor.

Definition at line 91 of file binary_sensor.h.


The documentation for this class was generated from the following file: