12 ESP_LOGW(TAG,
"Unable to turn stove on, invalid state: %d", this->
raw_state_);
20 ESP_LOGW(TAG,
"Unable to turn stove off, invalid state: %d", this->
raw_state_);
28 if (value_from_stove == -1) {
29 ESP_LOGE(TAG,
"Error reading stove state");
34 bool state = value_from_stove != 0;
void write_address(uint8_t location, uint8_t address, uint8_t data)
void set_needs_update(bool u)
void write_state(bool state) 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.