In fusionsolarapp.sh you are using static relation to second position in array device_Id_array. You should check type of device because fusion can send device in other order. For example in my installation I received
Device 1: 7534929584736
Smart String Inverter Inverter Type: SUN2000-5KTL-M0
Device Name: HV20500....
Device SN: HV20500....
Software version: V100R001C00SPC122
Device 2: 45711197793123
Dongle Device Name: HV20500....
Device SN: HV20500....
Software version: V100R001C00SPC115
In fusionsolarapp.sh you are using static relation to second position in array device_Id_array. You should check type of device because fusion can send device in other order. For example in my installation I received