Tts home assistant working july 2019

Hi all,
It is time for me to give something back to the community, I hope.
I have been playing with Home Assistant/Google home for a time now and now I finally have tts working .

I am using a raspberry pi 3 with:
HassOS 2.11
Hass.io supervisor Version 168

The important part of my configuration.yaml looks like:

duckdns:
domain: domain.duckdns.org
access_token: xxxxxxxxx-xxxxxx-xxxxxx

Example configuration.yaml entry

googlehome:
devices:
- host: domain.duckdns.org

http:
api_password: sarah
base_url: https://domain.duckdns.org:8123
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem

tts:
platform: google_translate
cache: true
cache_dir: /tmp/tts
time_memory: 300
base_url: https://domain.duckdns.org:8123
service_name: google_translate_say

where “domain” is the domain that you have chosen at registering at http://duckdns.org

My part of automation.yaml looks like:

  • alias: switch on when movement
    trigger:
    platform: numeric_state
    entity_id: sensor.philio_motion_test
    below: ‘10’
    action:
    • service: tts.google_translate_say
      data:
      entity_id: media_player.hobbykamer
      language: ‘nl’
      message: ‘Je houdt je hand boven een bewegings detector’
    • service: switch.turn_on
      entity_id: switch.fibaro_switch_8

proof: http://ronaldsnoeck.com/tts.mp4

Nice
BUT can you format you code make it easier other user to readit

here

#==========================================================================
# Channel up on TV remote will up the GAS heater
#==========================================================================
- id: CH DIM UP
  alias: CH DIM UP
  trigger:
  - entity_id: sensor.ir_codes
    platform: state
    to: UP
  action:
  - data:
      payload: IR-DIM UP
      topic: IR/CODES
    service: mqtt.publish
  - service: script.turn_on
    entity_id: script.gas_up

See Make it easier to read