I am using Neo CoolCam Motion Sensor driver for my PIR sensor.
But I cannot able to update their values via the settings available with driver. Even though I updated the preference, but I still see the default values in the State Variables. It is not getting updated with my preference.
Any idea how to fix it ? Because the device works as per the state variable value and not via preference value.
State variable are generally for internal use by the driver (or app), don't necessarily have a consistent meaning across drivers (or apps), and may not mean what you guess unless you wrote the code and know for sure or are working with the developer who did. "Current States" are what is more or less standardized and should reflect current device states.
Without more information, it's hard to know exactly what you mean. However, piecing together bits of information from your post, it sounds like maybe you're deducing that configuration parameters are not being set as you chose. (Battery device drivers often store the last known value in state so your preferences can be compared to these when the device wakes up and changed if necessary.). Battery powered Z-Wave devices are normally "sleepy" and only receive commands to change configuration parameters when they wake up. By default, this is usually set to something like once or twice a day. The manual should say how to wake the device manually, usually pressing a button or similar. "Logs" for some drivers also give you hints or may show if the device actually does wake. Alternatively, you can just wait some time for the device to wake up on its own.
This is probably your issue if all my guesses are correct.