added check if relay already set to requested state
added check if relay already set to requested state

tschaban/SONOFF-firmware,tschaban/SONOFF-BASIC-firmware,tschaban/SONOFF-BASIC-firmware,tschaban/SONOFF-firmware