How can I autoconnect to miracast/chromecast (screen cast) device?
What I've done that has worked is use tasker to launch the wireless display settings app, then use AutoInput to click on the adapter once it shows up. I was using this in my car, so I had the app trigger as soon as the phone connected to the car's bluetooth.