Refactoring notifications and conditions checking, see https://github.com/Cbsoftware/pressureNET/issues/81