Thanks for taking the time to explain this and write out the detail. It lead me to a solution for my setup with duckdns addon after a few hours of fiddling.
The main thing was to map a new domain to my local hassio ip (as I had most of the other steps already in place)
Catt seems to play well with the Browser_mod media player and the Google Assistant Webserver. For example, you can cast your lovelace frontend to your Google hub, then play a seperate audio with Browser mod. Then you can send audio notifications (broadcasts) to the hub and it won’t interupt the music playing. In fact you can set your hub to show the broadcast text on the screen.
Okay I have a problem, I installed Catt and after running the command I get an error:
Running HA on a pi.
Could some one told me what’s wrong?
Traceback (most recent call last):
File "/usr/bin/catt", line 10, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/catt/cli.py", line 570, in main
return cli(obj={}, default_map=get_default_map())
File "/usr/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/usr/lib/python3.8/site-packages/catt/cli.py", line 235, in cast_site
cst = setup_cast(settings["device"], controller="dashcast", action="load_url", prep="app")
File "/usr/lib/python3.8/site-packages/catt/controllers.py", line 144, in setup_cast
cast, cc_info = get_cast(device_name)
File "/usr/lib/python3.8/site-packages/catt/controllers.py", line 92, in get_cast
cache = Cache()
File "/usr/lib/python3.8/site-packages/catt/controllers.py", line 222, in __init__
devices = get_chromecasts()
File "/usr/lib/python3.8/site-packages/catt/controllers.py", line 45, in get_chromecasts
devices.sort(key=lambda cc: cc.name)
AttributeError: 'tuple' object has no attribute 'sort'
Sorry to reply on an old post but does your google home make the alert noise every 10 minutes or is there a way to disable as could see that getting a bit annoying?
yes, i was also getting the beep every 10 minutes, to solve it, i created this in the cast.sh file that I now use:
if ! catt -d "Living Room display" status | grep 'PLAYING'; then
catt -d "Living Room display" volume 0
catt -d "Living Room display" cast_site http://192.168.178.87:8123/lovelace-test/0
fi
It checks if anything is playing, then it wont cast. If nothing is playing, it turns the volume off and casts the screen. I just leave the volume off. Whenever I say “ok google” the volume goes back on anyway. you could turn the volume back on after the cast, but that also makes a sound.
Hi @john2014 I have the cast working. Now I was checking with your options for the script and automation.
I have changed the script and automation with my own cast name and cast site.
But when I run the automation and checking the SSH log I see an error:
This was the first time checking. It told the Nest hub was offline. It was in standby, so when I turned it on that message is gone.
But still get the from line 1, and I don’t know what is wrong.
[15:27:20] INFO: Received external command to execute:
[15:27:20] INFO: > bash /config/configuration/cast.sh
Error: Chromecast is inactive.
/config/configuration/cast.sh: line 1: $'\r': command not found
Casting https://name.duckdns.org/lovelace-hub/begin-hub
on "Google Nest"...
[15:27:38] INFO: Command completed successfully.