Macbook pro disable charging when connected to external monitor via thunderbolt 3 port I can connect external monitor to macbook via type C port. But the battery starts charging when I do so. 

This causes the laptop to always be charged at 100% (which is not good for battery life)

How do I avoid this charging when the monitor is connected to laptop?
I spoke with Apple chat support. They did not have a solution for this issue.

My tested and working solution is as follows:

I bought 2 things


HDMI Cable (one end connected to external monitor)
USBC to HDMI converter (one end connected to macbook)


Now, the macbook does not charge because of external monitor connection.