Localize action based on which Alexa

Hello, my question

Situation:

  • An echo dot in each room with quinled connected lamps.

Requirement:

  • When user in room says “lights off” only the lights of that room are switched off.
  • Same with Lights on

Question:

  • how and where do i put the logic ?
    • On alexa side with grouping alexa known light items and having rules per echo dot ?
    • in open hab side, recognizing which echo dot and putting rules in openhab ??

Thank you

have a look at this article/thread: Alexa Voice Command Room Awareness via OH

If you are only looking to control light devices, you just need to create a smart home group on the Alexa side and add the relevant echo device to that group.