mirror of
https://github.com/esphome/esphome.git
synced 2024-12-03 12:14:13 +01:00
582ac4ac81
The IR signals are based on captures from the WH-H01EE remote controller. Both transmit and receive are supported.
21 lines
504 B
C++
21 lines
504 B
C++
#pragma once
|
|
|
|
#include "esphome/components/climate_ir/climate_ir.h"
|
|
|
|
namespace esphome {
|
|
namespace toshiba {
|
|
|
|
const float TOSHIBA_TEMP_MIN = 17.0;
|
|
const float TOSHIBA_TEMP_MAX = 30.0;
|
|
|
|
class ToshibaClimate : public climate_ir::ClimateIR {
|
|
public:
|
|
ToshibaClimate() : climate_ir::ClimateIR(TOSHIBA_TEMP_MIN, TOSHIBA_TEMP_MAX, 1.0f) {}
|
|
|
|
protected:
|
|
void transmit_state() override;
|
|
bool on_receive(remote_base::RemoteReceiveData data) override;
|
|
};
|
|
|
|
} /* namespace toshiba */
|
|
} /* namespace esphome */
|