i have been reading here and playing with home automation for a while. But now i have no idea how to get it working.
I am trying to play local media (mp3) from HA at google home at a specific positon.
My goal is to create an automation which plays an local mp3 for perhaps 20 minutes and stops. the next time i start this media it should start at 20 minutes and stop at 40 minutes and so on. But i am struggling at the beginning.
The issue I see is that when you stop a media the media position is lost.
So you need to make sure you update the media position before stopping the playing.
How will you stop the media? You will have to do play_media to update the position save it, then stop.
To play a media you use the media player play media with data:
Thank you for your help but it didnt work for me.
I get an login error each time i want to play local audio located at “media”. If I start it with the new “media browser” its playing for a couple of minutes and than suddenly stops.
If local media is playing and i call seek_position it start at the beginning.
Just try and see.
Is it important… Well, it does make a difference in my opinion. What are the odds that someone guess your domain and your file name and want to listen to it?
I don’t know if there is a way around it but google devices are cloud devices, I wouldn’t be surprised if it’s not possible.