Help getting tts.speak and google translate working

First I added google translate as a service and if I uncomment the tts.speak code the script fails to launch. Any idea what I am doing wrong?

tesla_model_3_charger_switch_on_off:
  alias: Wait for specified period, then turn script.tesla_model_3_charger_switch_off
  mode: restart
  sequence:

#  - service: tts.speak
#    target:
#      entity_id: tts.google_en_com
#    data:
#      entity_id: media_player.homepodright2ndbedroom
#      message: test

  - delay: 00:00:04
  - service: select.select_option
    data:
      entity_id: select.myenergi_zappi_17015846_charge_mode
      option: Fast
  - delay: 00:00:15
  - service: button.press
    target:      
      entity_id: button.tesla_model_3_wake_up   
  - service: button.press
    target:
      entity_id: button.model_3_force_data_update
    

does this work?

tesla_model_3_charger_switch_on_off:
  alias: Wait for specified period, then turn script.tesla_model_3_charger_switch_off
  mode: restart
  sequence:

  - service: tts.speak
    target:
      entity_id: tts.google_en_com
    data:
      media_player_entity_id: media_player.homepodright2ndbedroom
      message: test

  - delay: 00:00:04
  - service: select.select_option
    data:
      entity_id: select.myenergi_zappi_17015846_charge_mode
      option: Fast
  - delay: 00:00:15
  - service: button.press
    target:      
      entity_id: button.tesla_model_3_wake_up   
  - service: button.press
    target:
      entity_id: button.model_3_force_data_update

I think that fixed it no more errors however HA does not work with a stereo pair so need to buy a home pod mini or a cheap amazon Alexa speaker

1 Like

hmm… sorry i dunno if i can help you with that part :slight_smile: