One of the selling points of things like smart thermostats is the you can remotely control them; you can set them to your preferred temperature as you are traveling home so it will be nice when you arrive.
My IoT devices are on my network but you would need to get yourself inside my network to talk to them. I'm not exposing ports for my lights...