Template code for Airgradient One is not working

I finally got my Airgradient One test code to compile, but when I test the Action, Alexa is mute. I tested the TTS skill separately and Alexa says she is having trouble with her Simon Says skill ATM, but I don’t think that’s the main issue.

I suspect my template code is not correct.

alias: Office CO2 warning
description: "Airgradient One Office CO2 warning "
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.i_9psl_carbon_dioxide
    above: 500
conditions:
  - condition: time
    after: "10:00:00"
    before: "02:00:00"
actions:
  - entity_id: media_player.bedroom_echo_dot
    data_template:
      message: >-
        The Office CO2 level is {{
        states.sensor.sensor.i_9psl_carbon_dioxide.state}} parts per million
    action: tts.home_assistant_cloud
mode: single

You have sensor twice.

Thanks, too much Coffee & Pasta, but it didn’t solve my problem. :neutral_face:

OK, fixing the sensor duplicate generated an error, which pointed to the above code. Even though ‘tts.’ completes as ‘home_assistant_cloud’, it should be tts.cloud_say. This causes Alexa to generate the Simon Says error, so everything is right with the world again.

Thanks