Can't expose template binary sensor to Alexa

I have an Amazon thermostat and ADT control panel I want to control with HA. I set up Nabu Casa and some input booleans to trigger events in Alexa. They only worked sometimes. After some searching, I read that template binary sensors are more reliable so I set them up. They work in HA in that I added them to overview and when I toggle the switch, the sensors open and close as expected. However they are not seen by Alexa. They cant be exposed in UI because they were setup in conifg so I exposed them in config as well but they still aren’t seen. Please help me understand what I am missing.

Yaml…

> # Loads default set of integrations. Do not remove.
> default_config:
> 
> # Load frontend themes from the themes folder
> frontend:
>   themes: !include_dir_merge_named themes
> 
> automation: !include automations.yaml
> script: !include scripts.yaml
> scene: !include scenes.yaml
> 
> http:
>   use_x_forwarded_for: true
>   trusted_proxies:
>     - 172.30.33.0/24
> 
> # For Alexa routines
> template:
>   binary_sensor:
>     - name: "Alarm Away"
>       device_class: door
>       state: "{{ is_state('input_boolean.alarm_away', 'on') }}"
>       
>     - name: "Alarm Stay"
>       device_class: door
>       state: "{{ is_state('input_boolean.alarm_stay', 'on') }}" 
>       
>     - name: "Sleeping"
>       device_class: door
>       state: "{{ is_state('input_boolean.sleeping', 'on') }}"  
>       
>       
> cloud:
>   alexa:
>     filter:
>         include_entities:
>             - binary_sensor.alarm_away
>             - binary_sensor.alarm_stay
>             - binary_sensor.sleeping

So I asked Grok and changed yaml to this …

template:

  • binary_sensor:
    • name: “Alarm Away”
      unique_id: alarm_away # Add this if missing—helps with device grouping/sync
      device_class: door
      state: “{{ states(‘input_boolean.alarm_away’) == ‘on’ }}”
    • binary_sensor:
      • name: “Alarm Stay”
        unique_id: alarm_stay
        device_class: door
        state: “{{ states(‘input_boolean.alarm_stay’) == ‘on’ }}”
    • binary_sensor:
      • name: “Sleeping”
        unique_id: sleeping
        device_class: door
        state: “{{ states(‘input_boolean.sleeping’) == ‘on’ }}”

Then did this…

Resync on the Alexa Side**

  • Open the Alexa app on your phone:
    • Go to More > Skills & Games > Your Skills > Home Assistant > Settings.
    • Tap “Disable Skill,” confirm, then re-enable it and sign in again.
    • Once re-linked, say “Alexa, discover devices” or tap “Discover” in the skill settings.
  • Check Devices > All Devices (or search for “Alarm Away”). They should appear as contact sensors under “Smart Home” or a “Home Assistant” group.
  • If still missing, force a full rediscovery: In the app, go to **Devices > + (Add Device) > Other > Discover Devices.

Sensors now available. Will test for a few days to see if more reliable