I have a script in Home Assistant that I would like to execute from ESPHome.
In ESPHome I have a binary sensor which is connected to a button in my device, but when pressed I want to run a script defined in Home Assistant.
If it’s not directly possible, what if I use a helper entity that the physical button on the binary_sensor toggles, and an automation in HA that triggers on the helper entity changing, then that automation would run the script?