Thanks, must have missed the pull request notification. I’ve merged it in my repository and will test it myself soon. Good to have a resolution and a working product finally.
does the code work?
Yes, this is working
did you fixed led problem ?
Yes, this is working
I have used this project for a year and it was working fine.
Today I wanted to edit my config but not i’m getting a compile error despite a valide config file. The only change i see was that i have an up to date esphome version now.
is anyone else getting similar issue?
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 370, in command_run
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 613, in flush_tasks
self.event_loop.flush_tasks()
File "/esphome/esphome/coroutine.py", line 245, in flush_tasks
next(task.iterator)
File "/esphome/esphome/core/config.py", line 283, in _add_platformio_options
cg.add_platformio_option(key, val)
File "/esphome/esphome/cpp_generator.py", line 594, in add_platformio_option
CORE.add_platformio_option(key, value)
File "/esphome/esphome/core/__init__.py", line 707, in add_platformio_option
assert isinstance(value, list)
AssertionError
Use this code
esphome:
name: miir
platformio_options:
platform_packages:
- framework-arduinoespressif32 @ https://github.com/pauln/arduino-esp32.git#solo-no-mac-crc/1.0.6
platform:
- [email protected]
esp32:
board: esp32doit-devkit-v1
Hello, i use this project, but i dont know where to put the files pre_extra_script.py & remote_transmitter_esp32.cpp
I use esphome addon for hassio. And i put this files to config/esphome directory near yaml project file, and have error:
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 370, in command_run
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 613, in flush_tasks
self.event_loop.flush_tasks()
File "/esphome/esphome/coroutine.py", line 245, in flush_tasks
next(task.iterator)
File "/esphome/esphome/core/config.py", line 283, in _add_platformio_options
cg.add_platformio_option(key, val)
File "/esphome/esphome/cpp_generator.py", line 594, in add_platformio_option
CORE.add_platformio_option(key, value)
File "/esphome/esphome/core/__init__.py", line 707, in add_platformio_option
assert isinstance(value, list)
AssertionError
Thanks a lot. I can compile now.
I see you have removed reference for these files
pre_extra_script.py & remote_transmitter_esp32.cpp
Do you know what is the impact? I have the impression that the board in running hotter than before
Try this
remote_transmitter:
pin:
number: GPIO26
inverted: True
carrier_duty_percent: 50%
I have no errors sending infrared codes and/or board heating with a code like the one above. I don’t know why it works without a link to the script
I need to test this but I think inverted would send incorrect IR codes
tested your unit?
Hi,
is the project still functional?
I’m having trouble compiling on ESPHome.
THANKS
Replace these blocks
esphome:
name: ${device_name}
comment: ${friendly_name}
esp32:
board: esp32doit-devkit-v1
framework:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
advanced:
ignore_efuse_mac_crc: true
Yep, that’s how I’ve redone my example. Works a treat now.