Thanks you but I am not sure where to go. I had this automation working before I upgraded to 115.1
I created it with the form and now it does not want to work. I am executing it from the automations tab manually.
I am casting to my Google nest hub.
Any ideas?
id: '1599094851589'
alias: FD Camera Line Crossing Cast
description: Cast Video stream from Front Door Camera when Line is crossed B to
A direction
trigger:
- entity_id: binary_sensor.hikvision_back_door_line_crossing
from: 'off'
platform: state
to: 'on'
condition:
- after: 07:00
before: '18:00'
condition: time
action:
- data:
entity_id: camera.front_door_camera
media_player: media_player.den_display
entity_id: camera.front_door_camera
service: camera.play_stream
- delay: 00:05:00
- data: {}
entity_id: media_player.den_display
service: media_player.turn_off
mode: single
This was the error in the log
Logger: pychromecast.socket_client
Source: /usr/local/lib/python3.8/site-packages/pychromecast/socket_client.py:408
First occurred: 4:42:49 PM (1 occurrences)
Last logged: 4:42:49 PM
[Den display(192.168.0.143):8009] Failed to connect to service Google-Nest-Hub-68b25d73d6ab774c61f8efeb6aea01ee._googlecast._tcp.local., retrying in 5.0s
1). Your developer tools input is not the same as your automation. So it gives an error, that has nothing to do with the error your automation gives.
Your automation show this quoted line as well, while your entry in developer tools is missing that. Just add media_player.den_display under service data and test it.
2). The automation cannot connect to your Google Hub for some reason. Try removing and adding again the Google Cast integration. Make sure to write down the entity_id names so you can rename them after adding. Make sure you restart HA after removing the integration (if it still asks that).
Read my edited message. The problem is not your camera, but your Google Cast display. The error states pychromecast had an error and says it couldnât connect with that display. Which is Google Cast related. Iâd just remove the integration and add again.
Btw: I have some Google Cast issues myself on all HA versions running Spotcast. After a few days, a certain group speaker cannot connect to. Restarting HA solves it. Did you restart HA?
I have to say âOK Google Stopâ to get it to go away.
Beats me!
Tried a few things
LOG
Logger: homeassistant.components.cast.media_player
Source: components/cast/media_player.py:382
Integration: Google Cast (documentation, issues)
First occurred: 5:29:52 PM (1 occurrences)
Last logged: 5:29:52 PM
Failed to cast media https://www.home-assistant.io/images/cast/splash.png. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Looked in Issues (#40273) on this and there appears to be an issue with the external URL and it no longer resolvable.
2020-09-20
I just tried to play media (an mp3) using the new media option and selected the NEST and it played the music on the Nest.
The cameras still not working though
Looks like the automation and media player part is not broken, but cameras are. I think your issue is related to this: https://github.com/home-assistant/core/issues/40376 You should report there, so the issue gets some traction.
Just to prove this I loaded an MP4 video that I made my with HD video and AAC audio onto the media folder on my HA. I then used the media icon on the side panel to cast it to my Google Nest and it worked just fine.
So they are definitely on the right track.
Just updated to 115.4. This release fixes the camera stream but does not fix âhey Google ⌠Show me front door cameraâ This still hangs. Comments in Git hub issue say that this issue is handled by Google cast people. Separate issue has been raised on Git Hub.