ESPHome 2025.12.3
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 LOG_SWITCH("", "Micronova switch", this);
14 this->dump_base_config();
15 }
16 void request_value_from_stove() override {
18 }
19 void process_value_from_stove(int value_from_stove) override;
20
21 void set_memory_data_on(uint8_t f) { this->memory_data_on_ = f; }
22
23 void set_memory_data_off(uint8_t f) { this->memory_data_off_ = f; }
24
25 protected:
26 void write_state(bool state) override;
27
28 uint8_t memory_data_on_ = 0;
29 uint8_t memory_data_off_ = 0;
30 uint8_t raw_state_ = 0;
31};
32
33} // namespace esphome::micronova
uint8_t m
Definition bl0906.h:1
void request_address(uint8_t location, uint8_t address, MicroNovaListener *listener)
Definition micronova.cpp:73
void write_state(bool state) override
void process_value_from_stove(int value_from_stove) override
Base class for all switches.
Definition switch.h:39
bool state
The current reported state of the binary sensor.
Definition switch.h:56