Home assistant and plex server

Hi
I run hime assistant on my pi3
Can I install the plex server on same pi3 and work together?

Yes, though you might have performance problems if you do so. You should be fine as long as you completely disable transcoding (video and audio) in Plex, but if you don’t there’s a risk that when you’re watching media automations may be delayed or unreliable.