Send notification to my phone using template value

I have an automation setup to send a notification to my phone when Alarmo is triggered. I made an input helper that is set to identify which door has been opened. I’m trying to get the notification to include this value.

input_select.door currently has three possible values: Garage, Front and Basement.

When the automation is set to use this as the action and I try to save it, I get an error message telling me that there is an "Error in parsing YAML: bad indentation of a mapping entry (line: 193, column 63).

Line 63 is the line that starts with message and has the templating. I’m not sure where to start counting to get the column number that it has an issue with but if I start at the very far left, the 63rd character is the Capital D in Door.

          - action: notify.mobile_app_pixel_9_pro_xl
            metadata: {}
            data:
              title: Trigger Security Breach
              message: {{states('input_select.door_opened')}} Door Has Been Opened!
            enabled: true

But if I if I place that same line in the template tab of the Dev tools page, it works fine. See screenshot below.

Indenting is relative to the lines above. So without knowing the yaml around the bit you mentioned, there’s not much wel can tell. Also post what is above.

I went back and looked again. I added quotes around the entire message and now it actually saves without error and when I had it sent the message, it went thru with the correct message.

                enabled: false
              - action: notify.mobile_app_pixel_9_pro_xl
                metadata: {}
                data:
                  title: Trigger Security Breach
                  message: "{{states('input_select.door_opened')}} Door Has Been Opened!"
                enabled: true