Etymology of Smart
Something smart is something that causes pain or suffering. It's related to the German word for pain, Schmerz. Old English smeortan "be painful"; Middle English smerten "to cause pain, to hurt, to sting".
A smarthome is literally a house of pain.