* add diagnostics for the active subcription * fix mapping between api and ha states for subscription * multiline lambda