Improved state detection.
Improved state detection.
Made recheck interval for zones configuranle.
Added new config variables ot example config.