ESPHome 2026.3.2
Loading...
Searching...
No Matches
micronova_switch.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::micronova {
8
10 public:
12 void dump_config() override;
13 void process_value_from_stove(int value_from_stove) override;
14
15 void set_memory_data_on(uint8_t f) { this->memory_data_on_ = f; }
16
17 void set_memory_data_off(uint8_t f) { this->memory_data_off_ = f; }
18
19 protected:
20 void write_state(bool state) override;
21
22 uint8_t memory_data_on_ = 0;
23 uint8_t memory_data_off_ = 0;
24 uint8_t raw_state_ = 0;
25};
26
27} // namespace esphome::micronova
uint8_t m
Definition bl0906.h:1
ESPDEPRECATED("set_retry is deprecated and will be removed in 2026.8.0. Use set_timeout or set_interval instead.", "2026.2.0") void set_retry(const std uint32_t uint8_t std::function< RetryResult(uint8_t)> && f
Definition component.h:395
void write_state(bool state) override
void process_value_from_stove(int value_from_stove) override
Base class for all switches.
Definition switch.h:38
bool state
The current reported state of the binary sensor.
Definition switch.h:55