cgarwood / homeassistant-fullykiosk

Fully Kiosk Browser integration for Home Assistant
Apache License 2.0
153 stars 27 forks source link

Play Audio file #61

Closed pickonedev closed 2 years ago

pickonedev commented 2 years ago

Hi!

Anyone knows how to use the Play Media feature of this integration from Home Assistant?

If I put a file from Media folder, the tablet will try to connect to HA and play that file, but insteand of playing, I get ban for the tablet's IP

This is what I use

service: fullykiosk.play_audio
data:
  entity_id: media_player.computer_tablet_media_player
  stream: 3
  url: http://192.168.0.102:8123/media/local/trance.mp3

I found something on the internet but it is not a good solution. Adding "?authSig=****" at the end of the url It is working till I restart HA, then the authSig is different...

PS: I don't use NodeRed

Thank you in advace

pickonedev commented 2 years ago

I found the solution to this as well... Sorry again.

I just use the www folder from HA, which is exposed.

Again, very nice app.