Intent Script

The intent_script component allows users to configure actions and responses to intents. Intents can be fired by any component that supports it. Examples are Alexa (Amazon Echo), (Google Assistant) and Snips.

# Example configuration.yaml entry
  GetTemperature:  # Intent type
      text: We have {{ states.sensor.temperature }} degrees
      service: notify.notify
        message: Hello from an intent!

Configuration variables:

Inside an intent we can define these variables:

  • intent (Required): Name of the intent. Multiple entries are possible.
    • speech (Optional): Text or template to return.
    • action (Optional): Script syntax.
    • async_action (Optional): Set to True to have Home Assistant not wait for the script to finish before returning the intent response.