Play MP3 files on a bluetooth speaker


#1

Is there a way to have the music player tile have MP3s saved on a pc play over a bluetooth speaker?


#2

The Music Player tile is designed to work with any device from SmartThings or Hubitat that exposes the relevant Music Player capability.

If I remember correctly, you are on SmartThings, right?

Your computer/bluetooth speaker would have to be exposed as a device in SmartThings first… and considering that bluetooth speakers connect over bluetooth, you can’t connect it directly to SmartThings (unless it also has Wifi built-in!). Depending on how badly you want to achieve this, there are some Rube Goldberg (read: hacked together) approaches that could make this work.

At that point, you might be better off just getting a speaker which works natively with SmartThings though. :smiley:


#3

Yes I am on smarthings. My speaker does not have wifi so I guess I will need to look into a different speaker. Thanks for your input.


#4

A dedicated device which is capable of the task would be preferred, but there are ways to accomplish it if you don’t mind stringing together things.

Do you have an Android device you could dedicate to the task? If so, you could probably accomplish it with a mix of Tasker and the SharpTools Tasker plugins.

Alternatively, if you really wanted to do it with a PC, it could probably be done with a PC and EventGhost. I haven’t personally used EventGhost in a number of years, but it looks like there’s a community developed SmartThings app to help with the integration.


#5

I do have an android task I could dedicate. Are there some instructions you could point me to so I can try it?

Thanks,


#6

Have you used Tasker before? I don’t know of any instructions for this specific (somewhat niche) case, but I have no doubt it can be done with Tasker. :grinning:


#7

No I have not used tasker before. I will play around with it to see if I can figure it out.


#8

The way I see it is there are two components to this:

  1. Get Tasker to play the desired clips on your Bluetooth speakers
  2. Get SharpTools to trigger the Tasker profile in #1

The /r/Tasker subreddit is a great resource for learning more about Tasker and is an especially good place to ask questions and get help. For the SharpTools Tasker plugins, this community is a great place to ask questions and I’m happy to help with that side of things.

For the Tasker side of things, as long as you keep the bluetooth speaker connected to your Android device all the time, I think you could accomplish it with a Media > Music Play action.

I would try to get the Tasker side of things working to play the music file first and manually run that task to make sure it’s working. Once you get that side of things working, then I would proceed forward with integrating it with SmartThings using the Thing State event plugin from SharpTools. You can find more details on how to use the Thing State event plugin in the following help article.

One approach would be to setup a Virtual Switch in SmartThings and then use the on/off events from that switch to trigger the actions in Tasker (via the SharpTools Thing State plugin). Based on that, you’d likely want to filter the Thing State events with an IF statement of %st_attr_value ~ on as noted in the following article so the action only runs when the switch is flipped on:

From there, you could use the virtual switch in SharpTools dashboards, automations, rules, etc.