5static const char *
const TAG =
"micronova.switch";
8 LOG_SWITCH(
"",
"Micronova switch",
this);
20 ESP_LOGW(TAG,
"Unable to turn stove on, invalid state: %d", this->
raw_state_);
26 this->memory_data_off_)) {
30 ESP_LOGW(TAG,
"Unable to turn stove off, invalid state: %d", this->
raw_state_);
36 if (value_from_stove == -1) {
37 ESP_LOGE(TAG,
"Error reading stove state");
43 bool state = value_from_stove != 0;
bool queue_write_command(uint8_t location, uint8_t address, uint8_t data)
Queue a write command to the stove (processed before reads)
void write_state(bool state) override
void dump_config() override
void process_value_from_stove(int value_from_stove) override
bool state
The current reported state of the binary sensor.
void publish_state(bool state)
Publish a state to the front-end from the back-end.