6#ifdef USE_BINARY_SENSOR
9#ifdef USE_RX8111_TIMESTAMP
21#ifdef USE_BINARY_SENSOR
47 void setup()
override;
65#ifdef USE_BINARY_SENSOR
71#ifdef USE_RX8111_TIMESTAMP
115 friend class testing::RX8111Test;
150#ifdef USE_BINARY_SENSOR
154#ifdef USE_RX8111_TIMESTAMP
163#ifdef USE_RX8111_TIMESTAMP
185#ifdef USE_BINARY_SENSOR
188 if (sensor !=
nullptr)
BedjetMode mode
BedJet operating mode.
Base class for all binary_sensor-type classes.
This Class provides the methods to read/write bytes from/to an i2c device.
void deliver_timestamps_(const uint8_t *records, uint8_t count, bool buffered)
static constexpr uint8_t ALARM_FIELD_UNSET
bool set_alarm(uint16_t second, uint16_t minute, uint16_t hour, uint16_t weekday, uint16_t day)
LazyCallbackManager< void()> alarm_callbacks_
uint8_t boot_attempts_[BOOT_FEATURE_COUNT]
bool timestamp_clear_pending_
bool program_alarm_(uint8_t second, uint8_t minute, uint8_t hour, uint8_t weekday, uint8_t day, bool boot=false)
void dump_config() override
void set_timer_configured(bool configured)
void publish_staged_timestamps_()
bool poll_event_flags_(FlagSnapshot snapshot={})
bool disable_timer_(uint8_t &extension, uint8_t &control)
void set_timer_clock(uint8_t clock)
bool read_calendar_(ESPTime &rtc_time, FlagSnapshot *flags=nullptr)
void set_timer_count(uint32_t count)
void start_event_polling_()
void configure_boot_alarm_()
void set_alarm_enabled(bool enabled)
void set_evin_settings(uint8_t settings)
bool alarm_explicitly_configured_
void publish_timestamp_(const uint8_t *raw, bool buffered)
void set_alarm_weekday(uint8_t value)
void set_alarm_minute(uint8_t value)
bool schedule_alarm_in(uint32_t seconds)
bool capture_restore_pending_
binary_sensor::BinarySensor * status_sensors_[STATUS_SENSOR_COUNT]
void read_time_(FlagSnapshot &flags)
bool configure_timer_(bool clear_stale_flag=false)
bool event_polling_started_
void set_event_config(uint8_t settings)
bool deferred_update_running_
void set_alarm_second(uint8_t value)
bool boot_alarm_event_seen_
void set_alarm_explicitly_configured(bool configured)
void add_on_timer_callback(F &&callback)
bool has_status_sensor_() const
void run_deferred_update_(bool status_only)
void set_event_disabled()
void add_on_alarm_callback(F &&callback)
bool retained_latest_qualified_
bool set_alarm_interrupt_(bool enabled)
TimestampMode timestamp_mode_
void set_alarm_hour(uint8_t value)
uint32_t boot_retry_delay_ms_
void set_battery_backup(bool enabled, bool charging)
void set_timer_enabled(bool enabled)
void retry_fout_after_timer_start_()
void set_fout_frequency(uint8_t frequency)
bool timer_retained_event_pending_
void set_event_timestamp_sensor(text_sensor::TextSensor *sensor, TimestampMode mode)
text_sensor::TextSensor * timestamp_sensor_
bool finish_time_write_(bool calendar_written)
bool retained_flags_seen_
void cancel_boot_retry_(bool alarm)
uint32_t event_poll_interval_
uint8_t staged_timestamps_[64]
void boot_config_result_(BootFeature feature, bool success)
bool set_stop_bit_(bool stop)
void clear_warning_(uint16_t bit)
void check_event_flags_(FlagSnapshot flags={})
void configure_boot_event_()
static constexpr uint32_t BOOT_RETRY_DELAY_MS
bool retained_evidence_seen_
void set_event_poll_interval(uint32_t interval)
uint8_t last_timestamp_[10]
void set_alarm_day(uint8_t value)
void configure_boot_battery_()
void set_warning_(uint16_t bit, const LogString *message)
void set_status_sensor(uint8_t index, binary_sensor::BinarySensor *sensor)
bool publish_timestamps_(uint8_t flags, bool buffered, bool startup=false)
LazyCallbackManager< void()> event_callbacks_
LazyCallbackManager< void()> timer_callbacks_
void add_on_event_callback(F &&callback)
void configure_boot_fout_()
void configure_boot_timer_()
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.
const LogString * message
@ TIMESTAMP_MODE_OVERWRITE
@ TIMESTAMP_MODE_STOP_WHEN_FULL
@ STATUS_SENSOR_EVENT_FLAG
@ STATUS_SENSOR_TIMER_FLAG
@ STATUS_SENSOR_ALARM_FLAG
@ STATUS_SENSOR_BATTERY_LOW
@ STATUS_SENSOR_FIRST_MONITOR
A more user-friendly version of struct tm from time.h.