FiNaR
(Ivan)
March 24, 2022, 1:35pm
1
hello, I have been trying to set the streaming of one wifi camera into my living room tv, but no luck
camera settings:
camera:
- platform: generic
name: Baby Video stream_source: rtsp://rtsp:......
service to call:
service: camera.play_stream
data: media_player: media_player.living_room_tv
target: entity_id: camera.baby_video
result:
failed to call service: camera.play_stream
what am I doing wrong?
thank you
browetd
(Browet Didier)
March 24, 2022, 1:58pm
2
You should use the correct indentation and layout I think (see documentation):
service: camera.play_stream
target:
entity_id: camera.yourcamera
data:
media_player: media_player.chromecast
FiNaR
(Ivan)
March 24, 2022, 3:35pm
3
sorry, the copy and paste did not worked… but it is correctly formatted:
service: camera.play_stream
data:
media_player: media_player.living_room_tv
target:
entity_id: camera.baby_video
Still the same error:
failed to call service: camera.play_stream
yousaf465
(Yousaf465)
March 24, 2022, 3:42pm
4
can you access the camera as an entity on your Lovelace dashboard?
FiNaR
(Ivan)
March 24, 2022, 5:33pm
5
yes, camera is visible in lovelace dashboard…
mboarman
(Mark Boarman)
March 24, 2022, 5:37pm
6
I struggled with getting camera.play_stream to work for days…I actually gave up until the new Play Media Action was rolled out on this release. This method works GREAT for me, I don’t see why you couldn’t implement it as well: Play Camera Stream when someone is at the door | Play Media Action - YouTube
yousaf465
(Yousaf465)
March 24, 2022, 6:14pm
7
I have a similar issue, the camera is visible as the generic camera on lovelace dashboard but when I try to play camera using new media action I only see chromecast logo on tv. Even though, I can play any media and web radio/TV channel from the same action without any issue.
FiNaR
(Ivan)
March 24, 2022, 6:31pm
8
tried this but still nothing is playing on TV
my automation is the following:
alias: Play Baby Monitor on Samsung TV
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 00071fab1dc818xxxxxxxxxxxxxxxxxxxxx
type: action
subtype: single
discovery_id: 0x0015xxxxxxxxxxxxxx action_single
condition: []
action:
- service: media_player.play_media
target:
entity_id: media_player.living_room_tv
data:
media_content_id: media-source://camera/camera.baby_video
media_content_type: application/vnd.apple.mpegurl
metadata:
title: Baby Video
thumbnail: /api/camera_proxy/camera.baby_video
media_class: video
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://camera
mode: single
any suggestion?
yousaf465
(Yousaf465)
March 24, 2022, 6:32pm
9
When manually trying to play the camera on tv, I see this Chromecast logo only.
@FiNaR have you tried playing it manually?
mboarman
(Mark Boarman)
March 24, 2022, 8:05pm
10
Hmmmm…Let me look at my automation when I get home and I’ll compare for you…Seems like it’s trying?! Perhaps we are getting close?
FiNaR
(Ivan)
March 25, 2022, 9:57am
11
how do you do it manually? in my case I don’t see the “chromecast logo”…simply nothing happen…
FiNaR
(Ivan)
March 25, 2022, 9:58am
12
thank will be very useful
yousaf465
(Yousaf465)
March 25, 2022, 11:20am
15
I mean when you click on the camera, does it show up on your TV?
FiNaR
(Ivan)
March 25, 2022, 11:24am
16
no, it shows on the PC… how do I make it show in the TV?
yousaf465
(Yousaf465)
March 25, 2022, 11:54am
17
Click on video and select your tv
FiNaR
(Ivan)
March 25, 2022, 12:04pm
18
OK, I have found where I have to “click”, but no luck… no paying on TV, same error:
failed to call service: media_player/play_media
yousaf465
(Yousaf465)
March 25, 2022, 5:18pm
19
try playing any small size mp4 video 5mb or so
FiNaR
(Ivan)
May 11, 2022, 7:09pm
20
hello everybody…
I still have the same problem, but I got a bit more info on the issue:
form:
Media → Camera → Baby Video → Play on Living Room TV
I get the following error:
failed to call service media_player/play_media Unable to determine Home Assistant url to send to device. configure internal and external url in general setting
but if I go to General setting I have:
Local Network: Automatic
and I have a warning message that says:
You have configured an HTTPS certificate in Home Assistant. This means that your internal URL needs to be set to a domain covered by the certificate.
keep in mind that I have configured duck DNS add-on in order to internet face my Home Assistant…
any suggestion? please