#Is it possible to play an mp3 file from a wireless speaker based on the results of a sensor?

1 messages · Page 1 of 1 (latest)

undone brook
#

I wanna play a message like, garage door opening, when the garage door sensor kicks off, is it possible to do so? I can’t even google this cuz I’m so new to HA, so idk what the right plugin or name is called, unless it doesn’t exist yet?

hexed drift
undone brook
#

Omg you again

#

No I doing even n know how to add a Bluetooth speaker

#

Okay wait

#

I think I figured out how to do that

#

Thank you for breaking it down for me

undone brook
hexed drift
#

create a new automation

#

you set a trigger that triggers on the entity of your sensor changing

#

then in the actions you find "media player play media" and link it to the speaker and the media file location

undone brook
#

is there a prefered way to do this? and does HA let me do this from the UI

#

or do i need to download it via the cli somehow...

#

lemme see if i can google it :hmm

hexed drift
#

yeah, automations are the core of home assistant

#

although if you looking to do music stuff then you may want to look into the "music assistant" addon

#

gives you some extra stuff

#

automations are the core of tying things together in HA

crimson patrol
undone brook
#

I’ve been meaning to get to this

#

Perhaps tonight’s rabbit hole

crimson patrol
#

Can I ask what speaker you are planning on using / are using for your configuration? Thinking of getting the Sonos just to make life easier...