Clicking on a push notification - different logic for different devices

If the recording is activated for the camera when motion appears, a PUSH appears, when pressed, the application opens on the page of this camera and I can see online what is happening.

If the “Mini Wifi Smart Switch” device is turned on/off and PUSH sending is activated - clicking on it opens the application in the window of all events. I would like to open (by analogy with the camera) the window of this device from which the message was initiated. There, a camera (other than described in the previous sentence) is attached to the device, that is, when the switch is activated, you want to instantly switch to viewing the event from the camera.

Actually, I built an intercom from an existing cheap button that controls a switch and a camera directed at the entrance area.