Foscam C1 - Sensors/Switches

If you use mqtt , there is a python/mqtt script for foscam posted in the forums here somewhere.
I use it with a c1 and made a binary motion sensor out of it.
Edit: