![]() ![]() Basically it is the same as our "Hello World" call in the developer tools. The last node calls the TTS service and outputs its results on the media_player.mpd. The next node makes sure it is daytime, I don't want to get waken up during the night. The RBE node ensures that the message is only played once by forwarding the message only if it has changed e.g. Then the "CO2 Ampel" maps the value to a color (<800 green, <1200 yellow, else red). It takes in the value from the CO2 sensor. I used it to tell me "What about airing your room?" when the CO2 value is over a certain threshold. Now you can output audio messages over your speaker from every automation by calling above service. If not, make sure that you restarted Home Assistant after the configuration changes, that the add-on is running & that your speaker is on and not muted. Now you should hear a friendly "Hello World" from your speaker. In the Services Tab use the tts.google_say service and call it with following service data: entity_id: media_player.mpd You can test your setup via the Developer Tools. Here I used Google Translate but in future I would like to use Nabu Casas` TTS service, their voices sound very natural.ĭon't forget to reload the core after the configuration change. ![]() I also configured Text to speech (TTS) so that arbatrary messages can be read to me. Host : scan_interval : 1 # Text to speech tts : platform : google_translate Next we need to add the add-on as media_player to our configuration.yaml: media_player : platform : mpd
0 Comments
Leave a Reply. |