Skip to content

Prevent duplicate camera activation#2352

Open
halfaleague wants to merge 2 commits intoPhotonVision:mainfrom
halfaleague:camera-video-dedup
Open

Prevent duplicate camera activation#2352
halfaleague wants to merge 2 commits intoPhotonVision:mainfrom
halfaleague:camera-video-dedup

Conversation

@halfaleague
Copy link

@halfaleague halfaleague commented Feb 6, 2026

Description

This is mainly an FYI. There seems to be a problem distinguishing cameras when all 3 cameras are exactly the same.

Prevent reactivating a disabled camera config when its unique-path is already in use by an active VisionModule. This avoids two modules binding the same device and showing duplicate streams on the camera matching page.
Correct the name that is shown in the UI.
Camera cards now show the nickname as the title with the device model as a subtitle to make identical cameras distinguishable.

Testing

Run in the UI with 3 identical cameras.
The 3 cameras show 2 different images only. The second and the third camera are the same.

Screenshot from 2026-02-05 19-26-16

When you try to delete the second or third cameras, they confuse the title and the camera to name to type to delete.

Screenshot from 2026-02-05 19-23-51

Working! Three unique images are displayed.
Screenshot from 2026-02-05 19-26-16

@halfaleague halfaleague requested a review from a team as a code owner February 6, 2026 01:10
@github-actions github-actions bot added the backend Things relating to photon-core and photon-server label Feb 6, 2026
@samfreund
Copy link
Member

I think this might be symptomatic of a deeper issue. I'll try and take a deeper look at some point tonight.

@github-actions github-actions bot added the frontend Having to do with PhotonClient and its related items label Feb 6, 2026
@mcm001
Copy link
Contributor

mcm001 commented Feb 6, 2026

I think this check might be good to have in place! But I was under the impression our current design didn't allow this happen in the first place. Can you help me understand how Photon as currently written can let you get into this bad state?

@samfreund
Copy link
Member

Could you tell me more about what device you're using and send logs as well? I've been unable to reproduce this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Things relating to photon-core and photon-server frontend Having to do with PhotonClient and its related items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants