Saving entity activation states in map.
Monitoring activation state only if device wasn't already active/inactive went request was sent.
Merge branch 'issue/bug-2189'

This commit fixes #2189