ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::rx8111::RX8111Component Class Referencefinal

#include <rx8111.h>

Inheritance diagram for esphome::rx8111::RX8111Component:
esphome::time::RealTimeClock esphome::i2c::I2CDevice esphome::PollingComponent esphome::Component

Public Member Functions

void setup () override
 
void update () override
 
void dump_config () override
 
void read_time ()
 
void write_time ()
 
void set_alarm_enabled (bool enabled)
 
void set_alarm_explicitly_configured (bool configured)
 
void set_alarm_second (uint8_t value)
 
void set_alarm_minute (uint8_t value)
 
void set_alarm_hour (uint8_t value)
 
void set_alarm_weekday (uint8_t value)
 
void set_alarm_day (uint8_t value)
 
void set_timer_count (uint32_t count)
 
void set_timer_clock (uint8_t clock)
 
void set_timer_enabled (bool enabled)
 
void set_timer_configured (bool configured)
 
void set_event_poll_interval (uint32_t interval)
 
void set_evin_settings (uint8_t settings)
 
void set_status_sensor (uint8_t index, binary_sensor::BinarySensor *sensor)
 
void set_event_timestamp_sensor (text_sensor::TextSensor *sensor, TimestampMode mode)
 
void set_battery_backup (bool enabled, bool charging)
 
void set_fout_frequency (uint8_t frequency)
 
void set_event_config (uint8_t settings)
 
void set_event_disabled ()
 
template<typename F >
void add_on_event_callback (F &&callback)
 
bool clear_event_flag ()
 
template<typename F >
void add_on_alarm_callback (F &&callback)
 
bool set_alarm (uint16_t second, uint16_t minute, uint16_t hour, uint16_t weekday, uint16_t day)
 
bool schedule_alarm_in (uint32_t seconds)
 
bool unset_alarm ()
 
bool clear_alarm_flag ()
 
bool clear_timer_flag ()
 
bool start_timer ()
 
bool stop_timer ()
 
template<typename F >
void add_on_timer_callback (F &&callback)
 
- Public Member Functions inherited from esphome::time::RealTimeClock
 RealTimeClock ()
 
ESPTime now ()
 Get the time in the currently defined timezone.
 
ESPTime utcnow ()
 Get the time without any time zone or DST corrections.
 
virtual time_t timestamp_now ()
 Get the current time as the UTC epoch since January 1st 1970.
 
template<typename F >
void add_on_time_sync_callback (F &&callback)
 
- Public Member Functions inherited from esphome::PollingComponent
 PollingComponent ()
 
 PollingComponent (uint32_t update_interval)
 Initialize this polling component with the given update interval in ms.
 
void set_update_interval (uint32_t update_interval)
 Manually set the update interval in ms for this polling object.
 
void call_setup () override
 
virtual uint32_t get_update_interval () const
 Get the update interval in ms of this sensor.
 
void start_poller ()
 
void stop_poller ()
 
- Public Member Functions inherited from esphome::Component
virtual void loop ()
 This method will be called repeatedly.
 
virtual float get_setup_priority () const
 priority of setup().
 
float get_actual_setup_priority () const
 
void set_setup_priority (float priority)
 
void call ()
 
virtual void on_shutdown ()
 
virtual void on_safe_shutdown ()
 
virtual bool teardown ()
 Called during teardown to allow component to gracefully finish operations.
 
virtual void on_powerdown ()
 Called last before a reboot or deep sleep to power down hardware.
 
uint8_t get_component_state () const
 
void reset_to_construction_state ()
 Reset this component back to the construction state to allow setup to run again.
 
bool is_in_loop_state () const
 Check if this component has completed setup and is in the loop state.
 
bool is_idle () const
 Check if this component is idle.
 
void mark_failed ()
 Mark this component as failed.
 
void mark_failed (const LogString *message)
 
bool ESPHOME_ALWAYS_INLINE setup_check (bool ok)
 Marks the component failed with message (default "Communication failed") unless ok; returns ok.
 
bool ESPHOME_ALWAYS_INLINE setup_check (bool ok, const LogString *message)
 
void disable_loop ()
 Disable this component's loop.
 
void enable_loop ()
 Enable this component's loop.
 
void enable_loop_soon_any_context ()
 Thread and ISR-safe version of enable_loop() that can be called from any context.
 
bool is_failed () const
 
bool is_ready () const
 
virtual bool can_proceed ()
 
bool status_has_warning () const
 
bool status_has_error () const
 
void status_set_warning ()
 
void status_set_warning (const char *message)
 
void status_set_warning (const LogString *message)
 
bool status_comm_result (bool ok)
 Clears the warning when ok, else sets it with message (default "Communication failed"); returns ok.
 
bool status_comm_result (bool ok, const LogString *message)
 
void status_set_error ()
 
void status_set_error (const LogString *message)
 
void status_clear_warning ()
 
void status_clear_error ()
 
 ESPDEPRECATED ("Use status_momentary_warning() without a name. Removed in 2027.5.0", "2026.11.0") void status_momentary_warning(const char *name
 
void status_momentary_warning (uint32_t length=5000)
 Set warning status flag and clear it after length ms.
 
void status_momentary_warning (const LogString *message, uint32_t length=5000)
 
 ESPDEPRECATED ("Use status_momentary_error() without a name. Removed in 2027.5.0", "2026.11.0") void status_momentary_error(const char *name
 
void status_momentary_error (uint32_t length=5000)
 Set error status flag and clear it after length ms.
 
void status_momentary_error (const LogString *message, uint32_t length=5000)
 
bool has_overridden_loop () const
 
const LogString * get_component_log_str () const ESPHOME_ALWAYS_INLINE
 Get the integration where this component was declared as a LogString for logging.
 
bool should_warn_of_blocking (uint32_t blocking_time, uint32_t &threshold_ms_out)
 
- Public Member Functions inherited from esphome::i2c::I2CDevice
 I2CDevice ()=default
 we use the C++ default constructor
 
void set_i2c_address (uint8_t address)
 We store the address of the device on the bus.
 
uint8_t get_i2c_address () const
 Returns the I2C address of the object.
 
void set_i2c_bus (I2CBus *bus)
 we store the pointer to the I2CBus to use
 
I2CRegister reg (uint8_t a_register)
 calls the I2CRegister constructor
 
I2CRegister16 reg16 (uint16_t a_register)
 calls the I2CRegister16 constructor
 
ErrorCode read (uint8_t *data, size_t len) const
 reads an array of bytes from the device using an I2CBus
 
ErrorCode read_register (uint8_t a_register, uint8_t *data, size_t len)
 reads an array of bytes from a specific register in the I²C device
 
ErrorCode read_register16 (uint16_t a_register, uint8_t *data, size_t len)
 reads an array of bytes from a specific register in the I²C device
 
ErrorCode write (const uint8_t *data, size_t len) const
 writes an array of bytes to a device using an I2CBus
 
ErrorCode write_read (const uint8_t *write_data, size_t write_len, uint8_t *read_data, size_t read_len) const
 writes an array of bytes to a device, then reads an array, as a single transaction
 
ErrorCode write_register (uint8_t a_register, const uint8_t *data, size_t len) const
 writes an array of bytes to a specific register in the I²C device
 
ErrorCode write_register16 (uint16_t a_register, const uint8_t *data, size_t len) const
 write an array of bytes to a specific register in the I²C device
 
bool write_registers (const I2CRegValue *table, size_t count) const
 Write each register and value of table in order, stopping at the first failure.
 
template<size_t N>
bool write_registers (const I2CRegValue(&table)[N]) const
 
bool check_chip_id (Component *component, uint8_t a_register, uint8_t expected, uint8_t mask=0xFF)
 Read the 8-bit ID at a_register and accept it when it matches expected in the bits set in mask.
 
bool read_bytes (uint8_t a_register, uint8_t *data, uint8_t len)
 Compat APIs All methods below have been added for compatibility reasons.
 
bool read_bytes_raw (uint8_t *data, uint8_t len) const
 
template<size_t N>
optional< std::array< uint8_t, N > > read_bytes (uint8_t a_register)
 
template<size_t N>
optional< std::array< uint8_t, N > > read_bytes_raw ()
 
bool read_bytes_16 (uint8_t a_register, uint16_t *data, uint8_t len)
 
bool read_byte (uint8_t a_register, uint8_t *data)
 
optional< uint8_t > read_byte (uint8_t a_register)
 
bool read_byte_16 (uint8_t a_register, uint16_t *data)
 
bool read_bytes_16_le (uint8_t a_register, uint16_t *data, uint8_t len)
 Read len 16-bit values stored least significant byte first; no conversion is compiled on little-endian hosts.
 
bool read_bytes_16_le (uint8_t a_register, int16_t *data, uint8_t len)
 
bool read_byte_16_le (uint8_t a_register, uint16_t *data)
 Read a 16-bit value stored least significant byte first.
 
bool write_bytes (uint8_t a_register, const uint8_t *data, uint8_t len) const
 
bool write_bytes (uint8_t a_register, const std::vector< uint8_t > &data) const
 
template<size_t N>
bool write_bytes (uint8_t a_register, const std::array< uint8_t, N > &data)
 
bool write_bytes_16 (uint8_t a_register, const uint16_t *data, uint8_t len) const
 
bool write_byte (uint8_t a_register, uint8_t data) const
 
bool write_byte_16 (uint8_t a_register, uint16_t data) const
 
bool write_byte_16_le (uint8_t a_register, uint16_t data) const
 Write a 16-bit value least significant byte first.
 
bool update_register (uint8_t a_register, uint8_t mask, uint8_t value)
 Read a register, replace the bits in mask with those of value and write it back.
 

Protected Types

enum  Warning : uint16_t {
  WARN_CALENDAR = 1 << 0 , WARN_EVENT_POLL = 1 << 1 , WARN_ALARM = 1 << 2 , WARN_TIMER = 1 << 3 ,
  WARN_WRITE_TIME = 1 << 4 , WARN_ALARM_FLAG_CLEAR = 1 << 5 , WARN_TIMER_FLAG_CLEAR = 1 << 6 , WARN_BATTERY = 1 << 7 ,
  WARN_FOUT = 1 << 8 , WARN_EVENT = 1 << 9 , WARN_EVENT_FLAG_CLEAR = 1 << 10 , WARN_TIMESTAMP = 1 << 11
}
 
enum  BootFeature : uint8_t {
  BOOT_BATTERY , BOOT_FOUT , BOOT_EVENT , BOOT_ALARM ,
  BOOT_TIMER , BOOT_FEATURE_COUNT
}
 

Protected Member Functions

bool set_stop_bit_ (bool stop)
 
bool finish_time_write_ (bool calendar_written)
 
bool read_calendar_ (ESPTime &rtc_time, FlagSnapshot *flags=nullptr)
 
void read_time_ (FlagSnapshot &flags)
 
void run_deferred_update_ (bool status_only)
 
void set_warning_ (uint16_t bit, const LogString *message)
 
void clear_warning_ (uint16_t bit)
 
void configure_boot_battery_ ()
 
void configure_boot_fout_ ()
 
void retry_fout_after_timer_start_ ()
 
void boot_config_result_ (BootFeature feature, bool success)
 
bool watching_ () const
 
void configure_boot_event_ ()
 
bool configure_event_ ()
 
bool publish_timestamps_ (uint8_t flags, bool buffered, bool startup=false)
 
void publish_staged_timestamps_ ()
 
void deliver_timestamps_ (const uint8_t *records, uint8_t count, bool buffered)
 
void publish_timestamp_ (const uint8_t *raw, bool buffered)
 
void check_event_flags_ (FlagSnapshot flags={})
 
bool has_status_sensor_ () const
 
bool program_alarm_ (uint8_t second, uint8_t minute, uint8_t hour, uint8_t weekday, uint8_t day, bool boot=false)
 
bool set_alarm_interrupt_ (bool enabled)
 
bool disable_timer_ (uint8_t &extension, uint8_t &control)
 
bool configure_timer_ (bool clear_stale_flag=false)
 
void start_event_polling_ ()
 
bool poll_event_flags_ (FlagSnapshot snapshot={})
 
void configure_boot_alarm_ ()
 
void configure_boot_timer_ ()
 
void cancel_boot_retry_ (bool alarm)
 
- Protected Member Functions inherited from esphome::time::RealTimeClock
void synchronize_epoch_ (uint32_t epoch)
 Report a unix epoch as current time.
 
- Protected Member Functions inherited from esphome::Component
friend void::setup ()
 
friend void::original_setup ()
 
void set_component_source_ (uint8_t index)
 Set where this component was loaded from for some debug messages.
 
void call_dump_config_ ()
 
void enable_loop_slow_path_ ()
 
void set_component_state_ (uint8_t state)
 Helper to set component state (clears state bits and sets new state)
 
bool set_status_flag_ (uint8_t flag)
 Helper to set a status LED flag on both this component and the app.
 
bool set_error_flag_ (const LogString *message)
 Set the error flag and log it; true when it was not set before.
 
void set_interval (const char *name, uint32_t interval, std::function< void()> &&f)
 Set an interval function with a const char* name.
 
void set_interval (uint32_t id, uint32_t interval, std::function< void()> &&f)
 Set an interval function with a numeric ID (zero heap allocation).
 
void set_interval (InternalSchedulerID id, uint32_t interval, std::function< void()> &&f)
 
void set_interval (uint32_t interval, std::function< void()> &&f)
 
bool cancel_interval (const char *name)
 Cancel an interval function.
 
bool cancel_interval (uint32_t id)
 
bool cancel_interval (InternalSchedulerID id)
 
void set_timeout (const char *name, uint32_t timeout, std::function< void()> &&f)
 Set a timeout function with a const char* name.
 
void set_timeout (uint32_t id, uint32_t timeout, std::function< void()> &&f)
 Set a timeout function with a numeric ID (zero heap allocation).
 
void set_timeout (InternalSchedulerID id, uint32_t timeout, std::function< void()> &&f)
 
void set_timeout (uint32_t timeout, std::function< void()> &&f)
 
bool cancel_timeout (const char *name)
 Cancel a timeout function.
 
bool cancel_timeout (uint32_t id)
 
bool cancel_timeout (InternalSchedulerID id)
 
void defer (const char *name, std::function< void()> &&f)
 Defer a callback to the next loop() call with a const char* name.
 
void defer (std::function< void()> &&f)
 Defer a callback to the next loop() call.
 
void defer (uint32_t id, std::function< void()> &&f)
 Defer a callback with a numeric ID (zero heap allocation)
 
bool cancel_defer (const char *name)
 Cancel a defer callback using the specified name, name must not be empty.
 
bool cancel_defer (uint32_t id)
 
void status_clear_warning_slow_path_ ()
 
void status_clear_error_slow_path_ ()
 

Protected Attributes

text_sensor::TextSensor * timestamp_sensor_ {nullptr}
 
uint8_t last_timestamp_ [10] {}
 
uint8_t staged_timestamps_ [64] {}
 
uint8_t staged_count_ {0}
 
uint8_t retained_flags_ {0}
 
TimestampMode timestamp_mode_ {TIMESTAMP_MODE_LATEST}
 
bool timestamps_staged_: 1 {false}
 
bool defer_timestamps_: 1 {false}
 
bool timestamp_clear_pending_: 1 {false}
 
bool retained_flags_seen_: 1 {false}
 
bool staged_buffered_: 1 {false}
 
bool retained_evidence_seen_: 1 {false}
 
bool retained_latest_qualified_: 1 {false}
 
bool timestamp_seen_: 1 {false}
 
bool capture_restore_pending_: 1 {false}
 
binary_sensor::BinarySensor * status_sensors_ [STATUS_SENSOR_COUNT] {}
 
LazyCallbackManager< void()> alarm_callbacks_
 
LazyCallbackManager< void()> timer_callbacks_
 
LazyCallbackManager< void()> event_callbacks_
 
uint32_t timer_count_ {0}
 
uint32_t event_poll_interval_ {1000}
 
uint32_t boot_retry_delay_ms_ {BOOT_RETRY_DELAY_MS}
 
uint16_t warnings_ {0}
 
uint8_t boot_attempts_ [BOOT_FEATURE_COUNT] {}
 
uint8_t evin_settings_ {0}
 
uint8_t fout_frequency_ {3}
 
uint8_t timer_clock_ {2}
 
uint8_t alarm_second_ {ALARM_FIELD_UNSET}
 
uint8_t alarm_minute_ {ALARM_FIELD_UNSET}
 
uint8_t alarm_hour_ {ALARM_FIELD_UNSET}
 
uint8_t alarm_weekday_ {ALARM_FIELD_UNSET}
 
uint8_t alarm_day_ {ALARM_FIELD_UNSET}
 
bool time_write_invalid_: 1 {false}
 
bool update_running_: 1 {false}
 
bool deferred_update_running_: 1 {false}
 
bool sync_running_: 1 {false}
 
bool poll_running_: 1 {false}
 
bool battery_configured_: 1 {false}
 
bool battery_backup_: 1 {false}
 
bool battery_charging_: 1 {false}
 
bool fout_configured_: 1 {false}
 
bool event_configured_: 1 {false}
 
bool event_enabled_: 1 {false}
 
bool event_flag_seen_: 1 {false}
 
bool event_boot_pending_: 1 {false}
 
bool timer_enabled_: 1 {false}
 
bool timer_configured_: 1 {false}
 
bool timer_flag_seen_: 1 {false}
 
bool timer_retained_event_pending_: 1 {false}
 
bool event_polling_started_: 1 {false}
 
bool boot_alarm_event_seen_: 1 {false}
 
bool alarm_enabled_: 1 {false}
 
bool alarm_explicitly_configured_: 1 {false}
 
bool alarm_flag_seen_: 1 {false}
 
bool alarm_armed_: 1 {false}
 
bool alarm_reprogrammed_: 1 {false}
 
- Protected Attributes inherited from esphome::time::RealTimeClock
LazyCallbackManager< void()> time_sync_callback_
 
- Protected Attributes inherited from esphome::PollingComponent
uint32_t update_interval_
 
- Protected Attributes inherited from esphome::Component
uint8_t component_source_index_ {0}
 Index into component source PROGMEM lookup table (0 = not set)
 
uint8_t warn_if_blocking_over_ {WARN_IF_BLOCKING_OVER_CS}
 Warn threshold in centiseconds (max 2550ms)
 
uint8_t component_state_ {0x00}
 State of this component - each bit has a purpose: Bits 0-2: Component state (0x00=CONSTRUCTION, 0x01=SETUP, 0x02=LOOP, 0x03=FAILED, 0x04=LOOP_DONE) Bit 3: STATUS_LED_WARNING Bit 4: STATUS_LED_ERROR Bit 5: Has overridden loop() (set at registration time) Bits 6-7: Unused - reserved for future expansion.
 
volatile bool pending_enable_loop_ {false}
 ISR-safe flag for enable_loop_soon_any_context.
 
ComponentRuntimeStats runtime_stats_
 
- Protected Attributes inherited from esphome::i2c::I2CDevice
I2CBus * bus_ {nullptr}
 pointer to I2CBus instance
 
uint8_t address_ {0x00}
 store the address of the device on the bus
 

Static Protected Attributes

static constexpr uint32_t BOOT_RETRY_DELAY_MS = 1000
 
static constexpr uint8_t ALARM_FIELD_UNSET = 0xFF
 

Additional Inherited Members

- Data Fields inherited from esphome::Component
uint32_t length = 5000)
 

Detailed Description

Definition at line 45 of file rx8111.h.

Member Enumeration Documentation

◆ BootFeature

Enumerator
BOOT_BATTERY 
BOOT_FOUT 
BOOT_EVENT 
BOOT_ALARM 
BOOT_TIMER 
BOOT_FEATURE_COUNT 

Definition at line 147 of file rx8111.h.

◆ Warning

enum esphome::rx8111::RX8111Component::Warning : uint16_t
protected
Enumerator
WARN_CALENDAR 
WARN_EVENT_POLL 
WARN_ALARM 
WARN_TIMER 
WARN_WRITE_TIME 
WARN_ALARM_FLAG_CLEAR 
WARN_TIMER_FLAG_CLEAR 
WARN_BATTERY 
WARN_FOUT 
WARN_EVENT 
WARN_EVENT_FLAG_CLEAR 
WARN_TIMESTAMP 

Definition at line 122 of file rx8111.h.

Member Function Documentation

◆ add_on_alarm_callback()

template<typename F >
void esphome::rx8111::RX8111Component::add_on_alarm_callback ( F && callback)
inline

Definition at line 100 of file rx8111.h.

◆ add_on_event_callback()

template<typename F >
void esphome::rx8111::RX8111Component::add_on_event_callback ( F && callback)
inline

Definition at line 96 of file rx8111.h.

◆ add_on_timer_callback()

template<typename F >
void esphome::rx8111::RX8111Component::add_on_timer_callback ( F && callback)
inline

Definition at line 110 of file rx8111.h.

◆ boot_config_result_()

void esphome::rx8111::RX8111Component::boot_config_result_ ( BootFeature feature,
bool success )
protected

Definition at line 242 of file rx8111.cpp.

◆ cancel_boot_retry_()

void esphome::rx8111::RX8111Component::cancel_boot_retry_ ( bool alarm)
protected

Definition at line 321 of file rx8111.cpp.

◆ check_event_flags_()

void esphome::rx8111::RX8111Component::check_event_flags_ ( FlagSnapshot flags = {})
protected

Definition at line 325 of file rx8111.cpp.

◆ clear_alarm_flag()

bool esphome::rx8111::RX8111Component::clear_alarm_flag ( )

Definition at line 662 of file rx8111.cpp.

◆ clear_event_flag()

bool esphome::rx8111::RX8111Component::clear_event_flag ( )

Definition at line 198 of file rx8111.cpp.

◆ clear_timer_flag()

bool esphome::rx8111::RX8111Component::clear_timer_flag ( )

Definition at line 727 of file rx8111.cpp.

◆ clear_warning_()

void esphome::rx8111::RX8111Component::clear_warning_ ( uint16_t bit)
protected

Definition at line 391 of file rx8111.cpp.

◆ configure_boot_alarm_()

void esphome::rx8111::RX8111Component::configure_boot_alarm_ ( )
protected

Definition at line 269 of file rx8111.cpp.

◆ configure_boot_battery_()

void esphome::rx8111::RX8111Component::configure_boot_battery_ ( )
protected

Definition at line 209 of file rx8111.cpp.

◆ configure_boot_event_()

void esphome::rx8111::RX8111Component::configure_boot_event_ ( )
protected

Definition at line 140 of file rx8111.cpp.

◆ configure_boot_fout_()

void esphome::rx8111::RX8111Component::configure_boot_fout_ ( )
protected

Definition at line 219 of file rx8111.cpp.

◆ configure_boot_timer_()

void esphome::rx8111::RX8111Component::configure_boot_timer_ ( )
protected

Definition at line 299 of file rx8111.cpp.

◆ configure_event_()

bool esphome::rx8111::RX8111Component::configure_event_ ( )
protected

Definition at line 165 of file rx8111.cpp.

◆ configure_timer_()

bool esphome::rx8111::RX8111Component::configure_timer_ ( bool clear_stale_flag = false)
protected

Definition at line 680 of file rx8111.cpp.

◆ deliver_timestamps_()

void esphome::rx8111::RX8111Component::deliver_timestamps_ ( const uint8_t * records,
uint8_t count,
bool buffered )
protected

Definition at line 849 of file rx8111.cpp.

◆ disable_timer_()

bool esphome::rx8111::RX8111Component::disable_timer_ ( uint8_t & extension,
uint8_t & control )
protected

Definition at line 673 of file rx8111.cpp.

◆ dump_config()

void esphome::rx8111::RX8111Component::dump_config ( )
overridevirtual

Reimplemented from esphome::time::RealTimeClock.

Definition at line 399 of file rx8111.cpp.

◆ finish_time_write_()

bool esphome::rx8111::RX8111Component::finish_time_write_ ( bool calendar_written)
protected

Definition at line 539 of file rx8111.cpp.

◆ has_status_sensor_()

bool esphome::rx8111::RX8111Component::has_status_sensor_ ( ) const
inlineprotected

Definition at line 186 of file rx8111.h.

◆ poll_event_flags_()

bool esphome::rx8111::RX8111Component::poll_event_flags_ ( FlagSnapshot snapshot = {})
protected

Definition at line 750 of file rx8111.cpp.

◆ program_alarm_()

bool esphome::rx8111::RX8111Component::program_alarm_ ( uint8_t second,
uint8_t minute,
uint8_t hour,
uint8_t weekday,
uint8_t day,
bool boot = false )
protected

Definition at line 564 of file rx8111.cpp.

◆ publish_staged_timestamps_()

void esphome::rx8111::RX8111Component::publish_staged_timestamps_ ( )
protected

Definition at line 835 of file rx8111.cpp.

◆ publish_timestamp_()

void esphome::rx8111::RX8111Component::publish_timestamp_ ( const uint8_t * raw,
bool buffered )
protected

Definition at line 858 of file rx8111.cpp.

◆ publish_timestamps_()

bool esphome::rx8111::RX8111Component::publish_timestamps_ ( uint8_t flags,
bool buffered,
bool startup = false )
protected

Definition at line 880 of file rx8111.cpp.

◆ read_calendar_()

bool esphome::rx8111::RX8111Component::read_calendar_ ( ESPTime & rtc_time,
FlagSnapshot * flags = nullptr )
protected

Definition at line 470 of file rx8111.cpp.

◆ read_time()

void esphome::rx8111::RX8111Component::read_time ( )

Definition at line 449 of file rx8111.cpp.

◆ read_time_()

void esphome::rx8111::RX8111Component::read_time_ ( FlagSnapshot & flags)
protected

Definition at line 454 of file rx8111.cpp.

◆ retry_fout_after_timer_start_()

void esphome::rx8111::RX8111Component::retry_fout_after_timer_start_ ( )
protected

Definition at line 234 of file rx8111.cpp.

◆ run_deferred_update_()

void esphome::rx8111::RX8111Component::run_deferred_update_ ( bool status_only)
protected

Definition at line 376 of file rx8111.cpp.

◆ schedule_alarm_in()

bool esphome::rx8111::RX8111Component::schedule_alarm_in ( uint32_t seconds)

Definition at line 626 of file rx8111.cpp.

◆ set_alarm()

bool esphome::rx8111::RX8111Component::set_alarm ( uint16_t second,
uint16_t minute,
uint16_t hour,
uint16_t weekday,
uint16_t day )

Definition at line 602 of file rx8111.cpp.

◆ set_alarm_day()

void esphome::rx8111::RX8111Component::set_alarm_day ( uint8_t value)
inline

Definition at line 58 of file rx8111.h.

◆ set_alarm_enabled()

void esphome::rx8111::RX8111Component::set_alarm_enabled ( bool enabled)
inline

Definition at line 52 of file rx8111.h.

◆ set_alarm_explicitly_configured()

void esphome::rx8111::RX8111Component::set_alarm_explicitly_configured ( bool configured)
inline

Definition at line 53 of file rx8111.h.

◆ set_alarm_hour()

void esphome::rx8111::RX8111Component::set_alarm_hour ( uint8_t value)
inline

Definition at line 56 of file rx8111.h.

◆ set_alarm_interrupt_()

bool esphome::rx8111::RX8111Component::set_alarm_interrupt_ ( bool enabled)
protected

Definition at line 560 of file rx8111.cpp.

◆ set_alarm_minute()

void esphome::rx8111::RX8111Component::set_alarm_minute ( uint8_t value)
inline

Definition at line 55 of file rx8111.h.

◆ set_alarm_second()

void esphome::rx8111::RX8111Component::set_alarm_second ( uint8_t value)
inline

Definition at line 54 of file rx8111.h.

◆ set_alarm_weekday()

void esphome::rx8111::RX8111Component::set_alarm_weekday ( uint8_t value)
inline

Definition at line 57 of file rx8111.h.

◆ set_battery_backup()

void esphome::rx8111::RX8111Component::set_battery_backup ( bool enabled,
bool charging )
inline

Definition at line 78 of file rx8111.h.

◆ set_event_config()

void esphome::rx8111::RX8111Component::set_event_config ( uint8_t settings)
inline

Definition at line 87 of file rx8111.h.

◆ set_event_disabled()

void esphome::rx8111::RX8111Component::set_event_disabled ( )
inline

Definition at line 92 of file rx8111.h.

◆ set_event_poll_interval()

void esphome::rx8111::RX8111Component::set_event_poll_interval ( uint32_t interval)
inline

Definition at line 63 of file rx8111.h.

◆ set_event_timestamp_sensor()

void esphome::rx8111::RX8111Component::set_event_timestamp_sensor ( text_sensor::TextSensor * sensor,
TimestampMode mode )
inline

Definition at line 72 of file rx8111.h.

◆ set_evin_settings()

void esphome::rx8111::RX8111Component::set_evin_settings ( uint8_t settings)
inline

Definition at line 64 of file rx8111.h.

◆ set_fout_frequency()

void esphome::rx8111::RX8111Component::set_fout_frequency ( uint8_t frequency)
inline

Definition at line 83 of file rx8111.h.

◆ set_status_sensor()

void esphome::rx8111::RX8111Component::set_status_sensor ( uint8_t index,
binary_sensor::BinarySensor * sensor )
inline

Definition at line 66 of file rx8111.h.

◆ set_stop_bit_()

bool esphome::rx8111::RX8111Component::set_stop_bit_ ( bool stop)
protected

Definition at line 556 of file rx8111.cpp.

◆ set_timer_clock()

void esphome::rx8111::RX8111Component::set_timer_clock ( uint8_t clock)
inline

Definition at line 60 of file rx8111.h.

◆ set_timer_configured()

void esphome::rx8111::RX8111Component::set_timer_configured ( bool configured)
inline

Definition at line 62 of file rx8111.h.

◆ set_timer_count()

void esphome::rx8111::RX8111Component::set_timer_count ( uint32_t count)
inline

Definition at line 59 of file rx8111.h.

◆ set_timer_enabled()

void esphome::rx8111::RX8111Component::set_timer_enabled ( bool enabled)
inline

Definition at line 61 of file rx8111.h.

◆ set_warning_()

void esphome::rx8111::RX8111Component::set_warning_ ( uint16_t bit,
const LogString * message )
protected

Definition at line 386 of file rx8111.cpp.

◆ setup()

void esphome::rx8111::RX8111Component::setup ( )
overridevirtual

Reimplemented from esphome::Component.

Definition at line 107 of file rx8111.cpp.

◆ start_event_polling_()

void esphome::rx8111::RX8111Component::start_event_polling_ ( )
protected

Definition at line 344 of file rx8111.cpp.

◆ start_timer()

bool esphome::rx8111::RX8111Component::start_timer ( )

Definition at line 704 of file rx8111.cpp.

◆ stop_timer()

bool esphome::rx8111::RX8111Component::stop_timer ( )

Definition at line 738 of file rx8111.cpp.

◆ unset_alarm()

bool esphome::rx8111::RX8111Component::unset_alarm ( )

Definition at line 644 of file rx8111.cpp.

◆ update()

void esphome::rx8111::RX8111Component::update ( )
overridevirtual

Implements esphome::PollingComponent.

Definition at line 351 of file rx8111.cpp.

◆ watching_()

bool esphome::rx8111::RX8111Component::watching_ ( ) const
inlineprotected

Definition at line 149 of file rx8111.h.

◆ write_time()

void esphome::rx8111::RX8111Component::write_time ( )

Definition at line 518 of file rx8111.cpp.

Field Documentation

◆ alarm_armed_

bool esphome::rx8111::RX8111Component::alarm_armed_
protected

Definition at line 243 of file rx8111.h.

◆ alarm_callbacks_

LazyCallbackManager<void()> esphome::rx8111::RX8111Component::alarm_callbacks_
protected

Definition at line 205 of file rx8111.h.

◆ alarm_day_

uint8_t esphome::rx8111::RX8111Component::alarm_day_ {ALARM_FIELD_UNSET}
protected

Definition at line 220 of file rx8111.h.

◆ alarm_enabled_

bool esphome::rx8111::RX8111Component::alarm_enabled_
protected

Definition at line 240 of file rx8111.h.

◆ alarm_explicitly_configured_

bool esphome::rx8111::RX8111Component::alarm_explicitly_configured_
protected

Definition at line 241 of file rx8111.h.

◆ ALARM_FIELD_UNSET

uint8_t esphome::rx8111::RX8111Component::ALARM_FIELD_UNSET = 0xFF
staticconstexprprotected

Definition at line 119 of file rx8111.h.

◆ alarm_flag_seen_

bool esphome::rx8111::RX8111Component::alarm_flag_seen_
protected

Definition at line 242 of file rx8111.h.

◆ alarm_hour_

uint8_t esphome::rx8111::RX8111Component::alarm_hour_ {ALARM_FIELD_UNSET}
protected

Definition at line 218 of file rx8111.h.

◆ alarm_minute_

uint8_t esphome::rx8111::RX8111Component::alarm_minute_ {ALARM_FIELD_UNSET}
protected

Definition at line 217 of file rx8111.h.

◆ alarm_reprogrammed_

bool esphome::rx8111::RX8111Component::alarm_reprogrammed_
protected

Definition at line 244 of file rx8111.h.

◆ alarm_second_

uint8_t esphome::rx8111::RX8111Component::alarm_second_ {ALARM_FIELD_UNSET}
protected

Definition at line 216 of file rx8111.h.

◆ alarm_weekday_

uint8_t esphome::rx8111::RX8111Component::alarm_weekday_ {ALARM_FIELD_UNSET}
protected

Definition at line 219 of file rx8111.h.

◆ battery_backup_

bool esphome::rx8111::RX8111Component::battery_backup_
protected

Definition at line 227 of file rx8111.h.

◆ battery_charging_

bool esphome::rx8111::RX8111Component::battery_charging_
protected

Definition at line 228 of file rx8111.h.

◆ battery_configured_

bool esphome::rx8111::RX8111Component::battery_configured_
protected

Definition at line 226 of file rx8111.h.

◆ boot_alarm_event_seen_

bool esphome::rx8111::RX8111Component::boot_alarm_event_seen_
protected

Definition at line 239 of file rx8111.h.

◆ boot_attempts_

uint8_t esphome::rx8111::RX8111Component::boot_attempts_[BOOT_FEATURE_COUNT] {}
protected

Definition at line 212 of file rx8111.h.

◆ BOOT_RETRY_DELAY_MS

uint32_t esphome::rx8111::RX8111Component::BOOT_RETRY_DELAY_MS = 1000
staticconstexprprotected

Definition at line 117 of file rx8111.h.

◆ boot_retry_delay_ms_

uint32_t esphome::rx8111::RX8111Component::boot_retry_delay_ms_ {BOOT_RETRY_DELAY_MS}
protected

Definition at line 210 of file rx8111.h.

◆ capture_restore_pending_

bool esphome::rx8111::RX8111Component::capture_restore_pending_
protected

Definition at line 182 of file rx8111.h.

◆ defer_timestamps_

bool esphome::rx8111::RX8111Component::defer_timestamps_
protected

Definition at line 175 of file rx8111.h.

◆ deferred_update_running_

bool esphome::rx8111::RX8111Component::deferred_update_running_
protected

Definition at line 223 of file rx8111.h.

◆ event_boot_pending_

bool esphome::rx8111::RX8111Component::event_boot_pending_
protected

Definition at line 233 of file rx8111.h.

◆ event_callbacks_

LazyCallbackManager<void()> esphome::rx8111::RX8111Component::event_callbacks_
protected

Definition at line 207 of file rx8111.h.

◆ event_configured_

bool esphome::rx8111::RX8111Component::event_configured_
protected

Definition at line 230 of file rx8111.h.

◆ event_enabled_

bool esphome::rx8111::RX8111Component::event_enabled_
protected

Definition at line 231 of file rx8111.h.

◆ event_flag_seen_

bool esphome::rx8111::RX8111Component::event_flag_seen_
protected

Definition at line 232 of file rx8111.h.

◆ event_poll_interval_

uint32_t esphome::rx8111::RX8111Component::event_poll_interval_ {1000}
protected

Definition at line 209 of file rx8111.h.

◆ event_polling_started_

bool esphome::rx8111::RX8111Component::event_polling_started_
protected

Definition at line 238 of file rx8111.h.

◆ evin_settings_

uint8_t esphome::rx8111::RX8111Component::evin_settings_ {0}
protected

Definition at line 213 of file rx8111.h.

◆ fout_configured_

bool esphome::rx8111::RX8111Component::fout_configured_
protected

Definition at line 229 of file rx8111.h.

◆ fout_frequency_

uint8_t esphome::rx8111::RX8111Component::fout_frequency_ {3}
protected

Definition at line 214 of file rx8111.h.

◆ last_timestamp_

uint8_t esphome::rx8111::RX8111Component::last_timestamp_[10] {}
protected

Definition at line 169 of file rx8111.h.

◆ poll_running_

bool esphome::rx8111::RX8111Component::poll_running_
protected

Definition at line 225 of file rx8111.h.

◆ retained_evidence_seen_

bool esphome::rx8111::RX8111Component::retained_evidence_seen_
protected

Definition at line 179 of file rx8111.h.

◆ retained_flags_

uint8_t esphome::rx8111::RX8111Component::retained_flags_ {0}
protected

Definition at line 172 of file rx8111.h.

◆ retained_flags_seen_

bool esphome::rx8111::RX8111Component::retained_flags_seen_
protected

Definition at line 177 of file rx8111.h.

◆ retained_latest_qualified_

bool esphome::rx8111::RX8111Component::retained_latest_qualified_
protected

Definition at line 180 of file rx8111.h.

◆ staged_buffered_

bool esphome::rx8111::RX8111Component::staged_buffered_
protected

Definition at line 178 of file rx8111.h.

◆ staged_count_

uint8_t esphome::rx8111::RX8111Component::staged_count_ {0}
protected

Definition at line 171 of file rx8111.h.

◆ staged_timestamps_

uint8_t esphome::rx8111::RX8111Component::staged_timestamps_[64] {}
protected

Definition at line 170 of file rx8111.h.

◆ status_sensors_

binary_sensor::BinarySensor* esphome::rx8111::RX8111Component::status_sensors_[STATUS_SENSOR_COUNT] {}
protected

Definition at line 193 of file rx8111.h.

◆ sync_running_

bool esphome::rx8111::RX8111Component::sync_running_
protected

Definition at line 224 of file rx8111.h.

◆ time_write_invalid_

bool esphome::rx8111::RX8111Component::time_write_invalid_
protected

Definition at line 221 of file rx8111.h.

◆ timer_callbacks_

LazyCallbackManager<void()> esphome::rx8111::RX8111Component::timer_callbacks_
protected

Definition at line 206 of file rx8111.h.

◆ timer_clock_

uint8_t esphome::rx8111::RX8111Component::timer_clock_ {2}
protected

Definition at line 215 of file rx8111.h.

◆ timer_configured_

bool esphome::rx8111::RX8111Component::timer_configured_
protected

Definition at line 235 of file rx8111.h.

◆ timer_count_

uint32_t esphome::rx8111::RX8111Component::timer_count_ {0}
protected

Definition at line 208 of file rx8111.h.

◆ timer_enabled_

bool esphome::rx8111::RX8111Component::timer_enabled_
protected

Definition at line 234 of file rx8111.h.

◆ timer_flag_seen_

bool esphome::rx8111::RX8111Component::timer_flag_seen_
protected

Definition at line 236 of file rx8111.h.

◆ timer_retained_event_pending_

bool esphome::rx8111::RX8111Component::timer_retained_event_pending_
protected

Definition at line 237 of file rx8111.h.

◆ timestamp_clear_pending_

bool esphome::rx8111::RX8111Component::timestamp_clear_pending_
protected

Definition at line 176 of file rx8111.h.

◆ timestamp_mode_

TimestampMode esphome::rx8111::RX8111Component::timestamp_mode_ {TIMESTAMP_MODE_LATEST}
protected

Definition at line 173 of file rx8111.h.

◆ timestamp_seen_

bool esphome::rx8111::RX8111Component::timestamp_seen_
protected

Definition at line 181 of file rx8111.h.

◆ timestamp_sensor_

text_sensor::TextSensor* esphome::rx8111::RX8111Component::timestamp_sensor_ {nullptr}
protected

Definition at line 168 of file rx8111.h.

◆ timestamps_staged_

bool esphome::rx8111::RX8111Component::timestamps_staged_
protected

Definition at line 174 of file rx8111.h.

◆ update_running_

bool esphome::rx8111::RX8111Component::update_running_
protected

Definition at line 222 of file rx8111.h.

◆ warnings_

uint16_t esphome::rx8111::RX8111Component::warnings_ {0}
protected

Definition at line 211 of file rx8111.h.


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