fix counter when threshold is undefined, default to count-mode none
backup: bug when using backupcmd fixed


git-svn-id: https://svn.code.sf.net/p/fhem/code/trunk@3391 2b470e98-0d58-463d-a4d8-8e2adae1ed80
add attribute 'reset-on-threshold-reached'
update count and alarm when modifying count-related attributes
Merge branch 'dev'

git-svn-id: https://svn.code.sf.net/p/fhem/code/trunk@3392 2b470e98-0d58-463d-a4d8-8e2adae1ed80