Can't trigger an Alexa routine with a template binary sensor

I had this working, but it recently stopped. (Hasn’t worked for over a week.) I can’t trigger any Alexa routine that references a “smart home” sensor as a trigger. This happens whenever my routine uses any Home Assistant-provided sensor as a trigger.

I am using a template binary sensor with a device_class of “door”. If I look at the sensor directly in the Alexa app, I can see it opening and closing instantly.

If I change the trigger in the Alexa routine to a voice command, I can trigger it successfully using the alexa_media_player third-party integration.

If I use a sensor from a non-Home Assistant integration, the routine triggers as expected.

But then if I change the trigger back to a sensor opening or closing, I can’t trigger the routine at all - either by alexa_media_player or by changing the value of the sensor.

I’m using the Nabu Casa cloud integration to push info to Alexa.

Has anyone else run into this?

I’ve tried:

  • unlinking/relinking the Home Assistant skill and running discovery
  • creating a new sensor, creating a new routine
  • rebooting / restarting HA