Is there any rule for the hysteresis setting?

No. It, excluding the old types, can be configurated from 0. Please set hysteresis that can prevent chattering.