.......PS. [ZBX-8992] preferring the threshold sensor over a discrete sensor, if both are available