Two devices showing where there should be one

I’m having an issue on a project. It is showing two devices on the Projects page but only one device on the Devices page. There should only be one.

I had been using the device with and without host (Swan using arduino). When I switched to another Swan with CircuitPython, I first set the notecard to it’s default values first using

{
“req”: “card.restore”,
“delete”: true
}

I had been trying so many settings, so I wanted a clean slate.

Any insight would appreciated.

Joe

Hi @scavoj,

I wouldn’t worry too much about the view from the projects page - it may be that using the same Notecard in separate configurations will temporarily show up as two devices on that view. The canonical view is in the Devices page. If this doesn’t resolve itself though, let me know and I can escalate this to make sure it’s not a deeper issue in Notehub!

Alternatively, you an always create a new Notehub project if you want a true clean slate.

Thanks,
Rob

1 Like

Thanks, Rob. I’ll give it some time.

Hey Rob,

My project is still showing 2 devices. I just did another reset because I am having problems reading an environment variable I just added. It didn’t cure my env var problem but it also didn’t add a third device. just the two.

Thanks,
Joe

Hey @scavoj,

Notehub determines unique devices by their DeviceUID which does not change with a card.restore request. Have you ever connected other devices, or maybe have you used the Notecard simulator at all?

If not, you can DM me your ProjectUID and I can lookup which two devices are associated with your project on our backend.

Thanks,
TJ

Hey TJ,

I only have one notecard and way back I used the simulator (the one that gives temperature and himidity right?) but on a different project. I did move this notecard from another project

I can dm you once I figure out how. And I can delete the test project.

Thanks,
Joe

Since I am having issues now putting the Swan to sleep, I issued the command:

{
“req”: “card.restore”,
“delete”: true,
“connected”: true
}

It seems once I run my code to reconnect to the productID, it gives me another device. Now I have 3.

Thanks,
Joe

Hey @scavoj,

I confirmed with our cloud team that this is a known issue. If you reset a device with "connected": true and then re-add it to the same project, the pie chart on the Notehub home page incorrectly treats it like a new device.

One thing you can try: when I was testing this I was able to “fix” the issue by deleting the device in the Notehub user interface, and then doing a new sync on the device. You could give that a shot and see if it works for you too.

TJ

1 Like

Cool. Thanks for the update.