I have home-assistant installed on a Raspberry Pi 3 under Gentoo linux. The installation (emerge) completed without incident and the server is responding as expected. It has discovered my devices without a problem including my Google Home Mini which I am trying to access. I am starting by simply trying to get the google-home speaker to say something. My configuration.yaml is the default and includes a tts: entry with - platform: google. The device shows up on the overview screen as “D Office speaker” and when the “on/off” button for it is pressed, I hear a chirp from the speaker and is shows “Idle”. So far so good…
Then, from the “Services” screen I enter “tts.google_say” in the “Service” entry field. In the “Service Data” field I enter:
Thank you, I tried what you have exactly but with my own entity_id and get the same error as first posted.
I believe the problem is more basic that tts. As mentioned, I receive the error:
File "/usr/lib/python3.5/socket.py", line 733, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
TypeError: getaddrinfo() argument 1 must be string or None
at startup before any actions are attempted, then again on each attempt to run a tts action.
Can anyone address the getaddrinfo() problem. I am hopeful that once this is resolved the tts will start working.
I have read not experienced that sometimes there is a discovery problem that affects chromecast devices. Since the TTS uses the chromecast component for the TTS this may be hitting you. Try explicitly setting the chromecast component and IP of your google home and restart HA and see if that helps.
What is really weird is that if I change “test” to “testing” (or anything else) if fails. It works repeatedly and reliably saying “test”, but every other string fails with the getadderinfo() error.
How can that be?
It still fails (even with “test” on the PI).
Since it works with “test” on the other machine, I don’t think it would be a chromecast issue.
http://ip:8123 <== it is :port not /port
when you change configuration also need to restart your HA.
Once ha loaded. Go to your media_player.d_office_speaker from the frontend. click on the media player. There will be input text for you to type anything you want this media player to speak. then press >
Thank you, yes, I used “:” not “/” in the config file. …just mistyped the message…
I am not clear where you mean by “Go to your media_player.d_office_speaker from the frontend.” Do you mean on the Overview page?
I tried that and there is no place to enter “>”. I pressed > anyway and nothing happens. I click the “on/off” button and it causes the speaker to chirp when it turns on. …but no input field there. I must not be on the right screen. Please clarify.
Still, how can it work with the string “test” and fail with any other string?
The media player on ha front end. When you click on the media player on front end there will be tts on that media player. You can type the text there and that media player will speak out.
I apologize for the misunderstanding, but I do not find a media player on the ha frontend. Would you be so kind as to elaborate on exactly how to find it? Is it possible it is not configured on my system? The only thing I can find that is even close is:
Yes, in particular one that says “D Office speaker”. But there is no input field labeled tts or otherwise near it or anywhere. I have clicked every button, menu and sub-menu on this item and see nothing of the kind. Please advise if you understand what Sunonline is referring to. Thanks!
Once you have set up media player and also discovery in configuration. Try put # in front of every line of old media_player.d_office_speaker. Then restart your HA.
Name of the cast device can be done in customize later.
Once Restart, with your cast device also has to be turn on. You would be able to check this media player for entity_id.
If you media player doesn’t show up on front end. put it in group so it can be seen on frontend.
When I click the “ON” button on the frontend media_player entry for this Google Home (D Office speaker), I immediately hear a chirp from the Home and it displays its state as Idle. It appears from your explanation that this would not happen if it was not being correctly discovered. Am I correct?
It is normal that it show idle as it connected to network. So your media player display on frontend. Click on that media player it will pop up another window. On this popup window there is an input text that you can type anything for this media player to speak out.
Click where on the media player? On the Play button? I have clicked on all buttons, menus and sub-menus on the media player and the only item with an input field asks me to rename the item.
Please indicate exactly which and where to click to get to the “text so say” field. Thanks!