Control Sonoff Switch from Wall Switch

Can a Sonoff T1 UK wall switch be used to switch on a Sonoff in-line switch (both running Tasmota) ?

If so how would this be done?

Yes I have Xiamoi switches to turn on sonoff devices via a automation but just replace the trigger switch with your T1 and it will work the same

automation:

- alias: 'Bedroom Lamp Control'
  trigger:
  - platform: state
    entity_id: switch.wall_switch_right_158d0002462060
  action:
    service: light.toggle
    entity_id: light.bedroom_lamp

Thanks will try that out!