Help understanding Alexa launch requests

Nice, thank you.

Can you please share the code for the other questions?

The rest are the same. Just replace the sensor entity with other sensors. I created those sensors with template sensor.

1 Like

If anyone care, I have a regular Alexa intent which I can ask

Alexa, tell me the status of {my sensor}

This is the intent:

  statussensor:
    speech:
      type: plain
      text: >
        {%- for state in states -%}
          {%- if state.name.lower() == Sensor.lower() -%}
            {%- if loop.first %}The {% elif loop.last %} and the {% else %}, the {% endif -%}
            {{ state.name }} status is {{ state.state }} {{- state.attributes.unit_of_measurement}}
          {%- endif -%}
        {%- else -%}
          Sorry, I can't find the status of {{ state.name }}
        {%- endfor -%}
1 Like