AlexxIT / StreamAssist

Home Assistant custom component that allows you to turn almost any camera and almost any speaker into a local voice assistant
MIT License
167 stars 13 forks source link

MPD media players are not listed in the dropdown #30

Open ScotiaGranite opened 1 week ago

ScotiaGranite commented 1 week ago

On the configuration page the list of media players comes from the entity_registry which will not include entities which have no Unique_Id. This excludes the MPD media player because it is manually added via the configuration.yml so there is no way to target these players as the player_entity.

I can work around this by changing they type of input in the config_flow.py from this:

                ``vol.Optional("player_entity_id"): cv.multi_select(players),

to this:

                ``vol.Optional("player_entity_id"): str

This allows me to input the entity_name manually and the speaker now works for the alert noise as well as for the TTS output.