How to control Amazon smart plugs from Home Assistant (via emulated_hue and alexa media player)

Just saw that in my Alexa app (version 2.2.469668.0, Dec 1, 2022), I can trigger routines based on the Amazon smart devices (but still cannot trigger on HA devices exposed to Alexa). This means that I can set a pair of routines to trigger on the states of the actual plug to control the HA virtual switches. (In other words this is for the Alexa to HA direction. )

In Alexa app, add routine:

“When this happens”: “Plug for LR light” → Turned On
“Add action”: LR light → On

Add another routine for the “Off” states.

This means that if I turn on/off the button on the actual amazon smart plug, the state of “LR light” in Alexa will be updated via the triggered routine. And because the Alexa’s “LR light” is an “emulated_hue” lightbulb (that HA exposes to Alexa), its state will in turn be reflected in HA’s “LR light” state.

2 Likes