I had the sane problem, risolved here Plex Android App don't find cast devices
Enabling config.claspws.tv on my pihole