That makes things clear.
The issue is that the device is pre-registered with balena device register
and you can see that after that point the device shows up in the dashboard with a device type matching the default device type of the application.
As a result, when you later use balena config generate
you change the device type of the already registered device.
Perhaps it might be better to have the CLI error when ---device
and --device-type
are used together, so that it’s clear which option is respected.
It also seem that in order to be able to cover your use case, we should also add a --device-type
parameter to the belana device register
command.
We will let you know once these get implemented and released.
Kind regards,
Thodoris