Integrating daikin64
protocol with esphome to control daikin air conditioners.
This is how I integrated the daikin64
IR protocol to esphome, since the official repo doesn't support it.
It has been tested on a esp8266. Other daikin protocols could possibily be implemented using a similar approach, such as DAIKIN128
, DAIKIN176
, DAIKIN152
, etc.
I was not able to compile this exact code on esp32 with esp-idf framework. Can anyone try if this can be compiled on a esp32 with arduino framework? Related: esphome/issues#5764
- Find where esphome stores the yaml files for each of the other nodes
- Create a directory named
include
- Place the
irdaikin.h
inside - Copy some or all of the
esphome.yaml
configs and compile.
Change the protocol by changing the IRDaikin64 ac(kIrLed);
line in the .h
file. See comments for details.
Delete everything under the on_state
trigger. Remember to set the sensor's id to ac_status
.
Remove this line. If you don't define it, then it would default to a null_ptr
and it would not report the ability to sense current temperature.
daikinac->set_sensor(id(living_room_temperature));
Replace the 1
to 0
in the .h
file.
#define UPDATE_CLOCK 1
Modify this line in the .h
file. See comments for details.
const uint16_t kIrLed = 4;
- @iglu-sebastian for the orginal version and the idea
- @computingwithinfinitedata for the orginal method and approach
- @crankyoldgit for the IRremoteESP8266 library