will get you started. I knew nothing about mqtt, but with the help there I got it working on my P1s exactly as I wanted it.