# How to cast mp3 local file in nodered as HA addons

**URL:** <https://discourse.nodered.org/t/how-to-cast-mp3-local-file-in-nodered-as-ha-addons/59607>\
**Category:** General\
**Created:** [9 March 2022 16:59 UTC](https://discourse.nodered.org/t/how-to-cast-mp3-local-file-in-nodered-as-ha-addons/59607 "2022-03-09T16:59:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mbonani](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mbonani/32/10631_2.png) [@mbonani](https://discourse.nodered.org/u/mbonani)\
**Post date:** [9 March 2022 18:41 UTC](https://discourse.nodered.org/t/how-to-cast-mp3-local-file-in-nodered-as-ha-addons/59607/3 "2022-03-09T18:41:53Z")

</div>

This is what I use to play local media files.

```json
[{"id":"4fb7f41ac04ccb3c","type":"api-call-service","z":"d0505e55.8a4b8","name":"Play","server":"","version":5,"debugenabled":false,"domain":"media_player","service":"play_media","areaId":[],"deviceId":[],"entityId":["media_player.living_room_speaker"],"data":"{\"media_content_id\":\"media-source://media_source/local/test.mp3\",\"media_content_type\":\"music\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1080,"y":320,"wires":[[]]}]

```

The `test.mp3` file is saved in `/usr/share/hassio/media/`.

---

_[View the full topic](https://discourse.nodered.org/t/how-to-cast-mp3-local-file-in-nodered-as-ha-addons/59607)._
