luup code has to use ID number one higher then it really is?

I am trying to put in some sample luup code, it wasnt working until I figured out that in order for it to work, I have to add 1 to the ID number.

For example if in the devices settings it says ID 4, then I have to put into the luup 5.

Why is this, can I fix it?

Thanks

For LUUP, you should be using the device #, not the ID #.

Go to the device, then the settings tab. In my attached screenshot, I have Device #34, ID 8. For LUUP, I use 34.