Have "turn on the lights" affect multiple areas

I recently got a Voice Preview Edition and I like it so far. However due to how my apartment is laid out, I use the lights in the kitchen in addition to the ones in my living room to light my living room.

I have my PE area set to the living room and am wondering if it’s possible to have “okay Nabu, turn on the lights” turn on both areas.
Thank you!

You will need to create a voice automation that will repeat standard algorithms, but with an additional condition (if the area is the living room, then turn on the light in both places).

Or create a group that includes both sets of lights and turn that on and off.

triggers:
  - trigger: conversation
    command:
      - turn on the light[s]
conditions: []
actions:
  - if:
      - condition: template
        value_template: "{{ area_id(trigger.device_id) == 'living_room' }}"
    then:
      - action: light.turn_on
        metadata: {}
        data: {}
        target:
          area_id:
            - living_room
            - kitchen
    else:
      - action: light.turn_on
        metadata: {}
        data: {}
        target:
          area_id: "{{ area_id(trigger.device_id) }}"
  - set_conversation_response: Turned on
1 Like

This worked perfectly! Was able to duplicate and adjust it to also turn off as well!