Appdaemon loses connection to HA

Ok, so it has nothing to do with the websocket connection to HA. Looks like a namespace issue. Check out this thread. Unknown domain (default/remote) in call_service