Control entity via Alexa and execute action when changed

i’m planning to switch from iobroker to home assistant. i’m currently running a test installation and still need to recreate a scenario.

with iobroker i had created an alexa device via nodered which switched a data point on or off. In the background, a script reacted to this and switched several switches on or off. Then you could say alexa, turn christman on and the christmas lights were switched on in the whole house.

how can you implement the whole thing in home assistant?

Thank you very much for your support.

  • Write a script turning the switches on and off
  • Expose the script to Alexa
  • Write an Alexa routine which launches the script on your voice command

To expose entities to Alexa you need a Home Assistant Cloud account.

Thank you for your contribution.

I understand writing a script but what is meant by exposing to alexa?