I’m trying to build an IR blaster using a wemos D1 mini. Ive attached an IR Reciever and IR transmitter to the board. I can succesfully read the IR codes from the receiver in the logs.
I’m now try to add button entities to home assistant to test the codes received.
The device has sucessfully added to home assistant but my entities are not listed, I can’t work out what I’ve missed after hours of googling and trial and error.
I don’t think it’s related, but just in case, I experienced the exact same issue the other day and it turned out it was due to a bug in HA (GPS component using measurement_angle). I updated to the HA dev branch and it was resolved.
I found this by enabling debug logs on the esphome integration in HA and then adding the device - there was a clear Python stack trace related to esphome. Maybe try checking that?
You mentioned that you attached a transmit/receive board, was it an ESP8285?
I have been experimenting with ESP8285s and in the beginning had similar issues with the device appearing with no entities. My code looked just like yours and it did not work to produce any entities, although I have code that works now that is virtually identical to yours, including the sections for remote_transmitter and remote_receiver (no then is required with on_press in my experience).
I would second the advice to remove it and add it back. Also to try a clean build if you haven’t. I think the issue I had was caused by a corrupted although reportedly successful install, and if I recall correctly I went back to the TTL cable and reinstalled that way with the boot jumper on the ESP8285.