Aqarao / Opple switch does'nt wor correctly

Hello, i use deconz with Opple aqara switch, but im not able to make ist work correctly.
After a lot of testing i can switch my two Garage doors an some lights with the one of two 6 Button switches. The swich is installed near the Entry-Door. The other one should control some shutters… and it does… BUT both switches controls both Funktions . So if i push Button with event 1002 The Garagedoor opens and at the same time The shutter which should be controlled from the second switch is closing. And vice versa…
I tried a lot but cant make it work correct

Not sure what you expect to get from here if you don’t show your code / setup…

i show you everything you want, what should i show you?
I have a raspberry pi, phoscon Conbee II Stick? Aqara/Opple switsch with 6 Buttons.
The Problem is if event 1002 comes from one of the switches the automation will be started.
It doesn’t matter from which switch

Example Yaml for switch

Büro

platform: event
event_type: deconz_event
id: opple_schalter_3_fach_buro
event_data:
  event: 1001

Eingang

platform: event
event_type: deconz_event
event_data:
  event: 2002
id: opple_schalter_3_fach_eingang

Show your automations, then.
You can likely refine the buttons being pressed. Also show the full events you’re receiving

Here is the full yaml from one Switch.
If I push the Button with event 3002 on the other switch, the Automation is also started.
But there is nothing configered für event 3002 on the other switch.

THANK YOU…
I am coming from homebridge and like Homesassistant, because its more flexible

 id: '1636216457279'
  alias: Opple Schalter_Eingang_Hoflicht_ein
  description: ''
  trigger:
  - platform: event
    event_type: deconz_event
    id: opple_schalter_3_fach_eingang
    event_data:
      event: 3002
  condition: []
  action:
  - scene: scene.hoflicht_ein_2
  mode: single

You should post both automations.
Or is this the one which should not be triggered?

And check under Developer Tools and events what events are fired when you press the button

OK :slight_smile: Here is the full automation:
As you see tehre are two different switches but every automation starts from every switch

- id: '1636216457279'
  alias: Opple Schalter_Eingang_Hoflicht_ein
  description: ''
  trigger:
  - platform: event
    event_type: deconz_event
    id: opple_schalter_3_fach_eingang
    event_data:
      event: 3002
  condition: []
  action:
  - scene: scene.hoflicht_ein_2
  mode: single
- id: '1636218053038'
  alias: Opple Schalter_Eingang_Hoflicht_aus
  description: ''
  trigger:
  - platform: event
    event_type: deconz_event
    id: opple_schalter_3_fach_eingang
    event_data:
      event: 4002
  condition: []
  action:
  - scene: scene.hoflicht_aus_2
  mode: single
- id: '1636219355274'
  alias: Opple Schalter_Eingang_Garagentor
  description: auf-stop-ab
  trigger:
  - platform: event
    event_type: deconz_event
    id: opple_schalter_3_fach_eingang
    event_data:
      event: 1002
  condition: []
  action:
  - type: turn_on
    device_id: 929b972ed764f0a13f2299194a524643
    entity_id: switch.garagentor
    domain: switch
  mode: single
- id: '1636219600972'
  alias: ' Opple Schalter_Eingang_Werkstatttor '
  description: ''
  trigger:
  - platform: event
    event_type: deconz_event
    event_data:
      event: 2002
    id: opple_schalter_3_fach_eingang
  condition:
  - condition: trigger
    id: opple_schalter_3_fach_eingang
  action:
  - type: turn_on
    device_id: 0aaa40237e07143ed245434a843d9893
    entity_id: switch.werkstatttor
    domain: switch
  mode: single
- id: '1636288406322'
  alias: Opple Schalter_Büro_ Jalousien kippen
  description: ''
  trigger:
  - platform: event
    event_type: deconz_event
    id: opple_schalter_3_fach_buro
    event_data:
      event: 1001
  condition:
  - condition: trigger
    id: opple_schalter_3_fach_buro
  action:
  - service: script.1636287124386
  mode: single

Event 5002 from swith One:

{
    "event_type": "deconz_event",
    "data": {
        "id": "opple_schalter_3_fach_eingang",
        "unique_id": "04:cf:8c:df:3c:7d:b6:8b",
        "event": 5002,
        "device_id": "3e07a31fc53b9d6c0071b0412bd860bf"
    },
    "origin": "LOCAL",
    "time_fired": "2021-11-07T16:36:50.313241+00:00",
    "context": {
        "id": "3d87a474fa2663379d30357c5e803107",
        "parent_id": null,
        "user_id": null
    }
}

and from switch two:
{
    "event_type": "deconz_event",
    "data": {
        "id": "opple_schalter_3_fach_buro",
        "unique_id": "04:cf:8c:df:3c:7d:9e:7f",
        "event": 5002,
        "device_id": "6ff5adfb624137a80e371d361aa5be31"
    },
    "origin": "LOCAL",
    "time_fired": "2021-11-07T16:37:50.104031+00:00",
    "context": {
        "id": "f7c9375174f9241443d2628ba08c91ec",
        "parent_id": null,
        "user_id": null
    }
}

Can you see in the trace of the automation what trigger has started the run?

You can differentiate the originating device with, e.g., the device_id.
Otherwise, yep, any switch producing event 3002 will trigger the automation, indeed.

- id: '1636216457279'
  alias: Opple Schalter_Eingang_Hoflicht_ein
  description: ''
  trigger:
  - platform: event
    event_type: deconz_event
    id: opple_schalter_3_fach_eingang
    event_data:
      event: 3002
      device_id: "3e07a31fc53b9d6c0071b0412bd860bf"
  condition: []
  action:
  - scene: scene.hoflicht_ein_2
  mode: single

or

- id: '1636216457279'
  alias: Opple Schalter_Eingang_Hoflicht_ein
  description: ''
  trigger:
  - platform: event
    event_type: deconz_event
    id: opple_schalter_3_fach_eingang
    event_data:
      event: 3002
      id: "opple_schalter_3_fach_eingang"
  condition: []
  action:
  - scene: scene.hoflicht_ein_2
  mode: single

The first id you currently set assigns an id to the trigger. It doesn’t participate in the filtering.

where is the rigt place for the device id?
I tried that with the same result… If i use the Automation Assistant the only thing to make a difference between the switches is only the id:

See the “used by the trigger condition” remark on the id.
It relates to

Hi have to thank you,
i think now it works, the Porblem was to restart the core after making the cahnges in automation.
So i did everything right, but i was not sure.
So with youre help i was…
The Last thing as so often is the German AEG Bug
A= Ausschalten (switch it of)
E= Einschalten (switch it on again)
G= Geht wieder ( Now it works again)

:+1: Thank you again

Please be so kind as to mark my post as the solution.
It could be useful to others confused as you were.