How would I tackle this project using esphome and ble

Hello,

I want to build a simple light switch flipper. I can make the design, but I’m not sure how/if I can make this work with esphome. I have an esphome instance with bluetooth proxy already. I want to have another esp32 connect to it an receive signals from home assistant to flip the switch. I would also like to be able to active the switch with a physical button as well, and have the new state sent to home assistant. This would be relatively simple with wifi, but I want to use ble because I want to have this be battery powered.

I’m pretty lost on the bluetooth stuff. If someone could explain how to make this happen, or if it isn’t possible tell me what you think I should do instead, I would appreciate it.