I assigned 'Hallway Light' to the 6-gang switch on one side, while leaving the 1-gang switch on the opposite side as is. The command sent from the 6-gang button was connected via Home app automation to control the actual hallway lighting.
Initially, I focused only on turning the lights on and off. However, I noticed a problem where the indicator light on the 6-gang side remained on even when the light was turned off from the opposite side. The fact that operation was possible did not mean that linkage was complete.
Therefore,I also created a pathto return the state of the actual hallway switch to the 6-gang button. When turned on from the opposite side, both the hallway indicator and the living room group indicator turn on together; when turned off, the hallway indicator follows suit. If all other lights in the living room group are off, the group indicator also turns off.
Now, I no longer need to remember which side was operated. Instead of running a new control wire for a long distance, I made it so that different switches share the same lighting state.