First, Nextion Components are static quantity at runtime
- if you didn't add it into the HMI at design time, it does not exist at runtime
Radio Button is dual state, val is 0 or 1.
- this represents 2 of your three states, your extra bit needs to come from elsewhere
- wherever you are grabbing the extra bit, you must handle your logic.
The MCU statically knows what buttons are on a page, as this you included in source.
IF you do not provide such intel to your MCU, your MCU will not know.
Components within the Editor become records in the TFT.
There is no class, there is no dynamic creation.
There are gui commands that can give this illusion of dynamic
but a page refresh could easily wipe that out quickly