do countWakeup only when value is set
Merge branch 'patch2' of https://github.com/wurststulle/smarthomatic into patch2