#2 switchs with 2 shelly but only one work but not as wanted

1 messages · Page 1 of 1 (latest)

sinful frigate
#

Hi,
I have 2 switches for my kitchen. behind each switch I've connected a Shelly 1 v3 (the rounded blue).
Shelly device works well. I can monitor switch state in HA (switch are in detached mode).
I've created 2 automations to control 2 different lights group.
My problem is when I press switch one, automation run but toggle both lights group. When I press switch two nothing happen.

here is the automation for my 1st switch :

description: Turn on/off kitchen central lights
triggers:
  - trigger: state
    entity_id:
      - binary_sensor.gnd_kitchen_central_input
conditions: []
actions:
  - data:
      brightness_pct: 85
      color_temp_kelvin: 6500
    target:
      entity_id:
        - light.gnd_kitchen_central
    action: light.toggle
mode: single````

and automation for switch 2:
```alias: gnd_kitchen_on
description: Turn kitchen lights on
triggers:
  - trigger: state
    entity_id:
      - binary_sensor.gnd_kitchen_corridor_input
  - domain: mqtt
    device_id: 98ecd1655da0c74cd651f5ca1510ec2e
    type: action
    subtype: on_press
    discovery_id: 0x001788010807cbf1 action_on_press
    trigger: device
conditions:
  - condition: state
    entity_id: light.gnd_kitchen_oven
    state: "off"
actions:
  - data:
      color_temp: "{{ states('input_number.gnd_kitchen_scene_color_temp') | int }}"
      brightness: "{{ states('input_number.gnd_kitchen_scene_brightness') | int }}"
    target:
      entity_id:
        - light.gnd_kitchen_corridor
    action: light.turn_on
mode: single```

light.gnd_kitchen_central is lights group 1
light.gnd_kitchen_corridor is lights group 2 (which is toggle with this automation).

**Question **: is there a way to debug all this mess ?  I've try to watch something in event, but except switch press I don't see any other informations
stoic marsh
#

your condition means your switch 2 will only do something if the "gnd_kitchen_oven" light is off

#

if you look at the condition and view the trace it will show where the automation stopped operating, my guess is it's that condition