Lightdef number/index and LIGHT POTENTIOMETER simvar

If I read the SDK correctly LIGHT POTENTIOMETER:index | Adjust the
potentiometer of the indexed lighting. Index is defined in the appropriate
[lightdef](https://docs.flightsimulator.com/html/Content_Configuration/SimObjects/Aircraft_SimO/Systems_Config_Definitions.htm#lightdef)
hashmap setting.
—|—
the lightdet.N where N is the as the index above? the default aircraft DA40NG
has a lightdef only going to 19, however the AS1000 emissive lighting is 30
35 Instruments01 where POTENTIONMETER is 30 and the core code for the MID (And
PFD MFD) ii the ASOBO_AS1000_MID_SubTemplate is #GET_POTENTIOMETER#
#LIGHT_DIMMING_SCALE# * #MIN_EMISSIVE_PERCENT# + and GET_POTENTIOMETER is
(A:LIGHT POTENTIOMETER:#POTENTIOMETER#, Percent over 100) #EMISSIVE_SCALE# but
there is no lightdef.30 in the DA40NG. I’m trying to emulate this, but can’t
get it to work. What am I missing? the lightdef index is zero or 3 and the
potentiometerindex goes to 17 BTW your list of topics on the right don’t match
what’s available - I could not at lights as my topic,but it’s in the list on
the right?

Potentiometer index and light index not related. LIGHT POTENTIOMETER is just
an array of values. Several lights can use same potentiometer index, like
lightdef.0 and lightdef.1 uses same PotentiometerIndex:1. So you need to
search not for lightdef.30 but for PotentiometerIndex:30 However, you are
right - there is no PotentiometerIndex:30 in DA40 systems.cfg, maybe this
value overrides by some of the template loaders?