Hi,
For Ocean scene i used this video
For the forest scene i used this video
And for the fireplace that
I used this website to encode videos to mp4
In bonus i offer this scene that i call it “sexy scene”
Hi,
For Ocean scene i used this video
For the forest scene i used this video
And for the fireplace that
I used this website to encode videos to mp4
In bonus i offer this scene that i call it “sexy scene”
Wanted to say thanks for this, added to my list!
Is this also posible with Kodi player? I have try but i get errors…
I don’t know i use plex and chromecast as media_player.
Sorry for that.
No problem. anyone else know of it it working with kodi?
For kodi ther is a new post !!!
I know, i have made that post
ahhh ok …
Sorry i didn’t see author
@hokagegano did you use plex as a media source for your Chromecast ? I cant integrate Plex into HASS. Sometimes it is discovered sometimes its not. But, I am not much into discovering Plex rather want to cast media from plex though Chromecast from Home Assistant Control. But I am unable to do so… I don’t understant what should be the media_content_id if a media streamed from a Plex server.
If that part can be understood, I believe the media_player.play_media with the right media_content_id should work.
Thanks in advance.
Hi @tarikul ,
No it’s not on plex …
I have a plex server, but my videos are on my server in mp4.
I play it on my chromecast, plex don’t decode it.
service: media_player.play_media
data:
entity_id: media_player.chromecast2
media_content_type: video/mp4
media_content_id: https://[SERVER]/local/ocean.mp4
it’s only the play_media service on the media_player component
@hokagegano Nice project mate. I am finally able to do a similar kind of stuff via Kodi and from YouTube.
Just a silly question… how did you change the view of the scripts in front-end? If I follow the similar config as you, the entity picture comes on the left and on right the activate is still there.I can’t move the activate thing from my front-end.
Thanks
Tarikul
I think that provide from a change of config from HA.
Before i had a play symbol but now it’s only activate button …
it works anyway
Thanks for the reply… hmm activate button works but your play button look is pretty cool…
It doesnt work: chromecast won’t play the file…
I used this code:
- service: media_player.play_media
data:
entity_id: media_player.living
media_content_type: video/mp4
media_content_id: /local/fireplace.mp4
The icon of cast will show on my tv, but it does not play the file.
I put the video on the www folder.
At the frontend I used also a picture icon, and that will load correctly. The video is in the same folder, and that would not be played… very strange…
script.fireplace:
friendly_name: Haard
entity_picture: /local/fire.jpg
Also I’m using chromecast ultra…
Alright, I found the problem, it seems it has problems with playing big files… I converted the fireplace in 1080p and it took more then 3GB… Then I converted it to 720p: 1.73GB, and now it plays well…
Very cool, will try now
trying to make it work, when I press activate on front end it does start the chromecast icon on the TV, but nothing is projected. I also put a short video, but same
Maybe I made a mistake in configuration
# Script camino acceso
camino:
alias: Camino
sequence:
- alias: Media play camino
service: media_player.play_media
data:
entity_id: media_player.cast_living
media_content_type: video/mp4
media_content_id: /local/Short.mp4
- alias: Luci rosse
service: scene.turn_on
data:
entity_id: scene.dimmed_living
Probably, your link is not good… Before testing on your hass, check if you can open it in the browers…
on media_content_id, you need to locate your file… it before /local… put your host…
yes, that should work…
it works.
Now next step is integrate it with Google Home or Alexa: " Alexa, turn on fireplace"
ahaha.
You know how to do this?