Fix a bug with switch sensors. Thaht allow to get notify in client part
each time a button is pressed.