Bom dia
Alguém já fez flash de esphome no Xiaomi IR ?
Tentei essa solução do Adam K Goddard, mas na hora de importar o script no yalm sempre dá erro de compilação. (GitHub - AdamKGoddard/XiaomiIR_ESPHome: Custom ESPHome Firmware for the Xiaomi IR Controller)
Alguém tem outra solução, alguma dica ou já passou por problemas semelhante?
Ja tentei salvar o arquivo do script “remote_transmitter_esp32.cpp” nas pastas:
-
config/esphome
-
config/esphome/.esphome
-
config/esphome/build/mi-remote (nome do projeto)
-
config/esphome/build/mi-remote/src
Estou rodando Home Assistant 2022.10.5 em um Raspberry Pi 4
Supervisor 2022.10.0
Operating System 9.2
Frontend: 20221010.0 - latest
Erro na compilação:
INFO Reading configuration /config/esphome/mi-remote.yaml...
INFO Generating C++ source...
Traceback (most recent call last):
File "/usr/local/bin/esphome", line 33, in <module>
sys.exit(load_entry_point('esphome', 'console_scripts', 'esphome')())
File "/esphome/esphome/main.py", line 931, in main
return run_esphome(sys.argv)
File "/esphome/esphome/main.py", line 918, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
File "/esphome/esphome/main.py", line 330, in command_compile
exit_code = write_cpp(config)
File "/esphome/esphome/main.py", line 163, in write_cpp
generate_cpp_contents(config)
File "/esphome/esphome/main.py", line 175, in generate_cpp_contents
CORE.flush_tasks()
File "/esphome/esphome/core/init.py", line 614, in flush_tasks
self.event_loop.flush_tasks()
File "/esphome/esphome/coroutine.py", line 246, in flush_tasks
next(task.iterator)
File "/esphome/esphome/core/config.py", line 303, in _add_platformio_options
cg.add_platformio_option(key, val)
File "/esphome/esphome/cpp_generator.py", line 629, in add_platformio_option
CORE.add_platformio_option(key, value)
File "/esphome/esphome/core/init.py", line 708, in add_platformio_option
assert isinstance(value, list)