esphome / esphome/feature-requests
Expose scripts to Homeassistant as script entity
- Dominant language
- No language data
- Stars
- 450
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the problem you have/What new integration you would like**
It is possible to create scripts on ESPHome.
Homeassistant has support for a script class and offer to "execute" script entity by default:

From my search it seems that there is no way to fire a script on the ESPHome from HA.
Not sure if there is a technical reason not to, but that would prove super handy feature to have!
Maybe just setting the name to allow to have it exposed on the frontend?:
```yaml
script:
- id: script_id
name: "My script Name"
then:
...
```
**Please describe your use case for this integration and alternatives you've tried:**
It would allow to fire a ESPHome script from the HA frontend, using the HA script `entity class` ("Execute" button by default).
An example I am trying to use it for it just transmitting one IR/RF signal through the remote transmitter. (It is not to control a switch or a light, but to program/initialise a RF plug) .
We can use as an alternative a switch and firing the script on `on` but using the entity script would make it clearer!
**Additional context**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.