How does automation work in general?
You have devices and controls. Devices are what turn on/off or check status of automated items like lights, wall receptacles, security systems, heating, etc. Controls tell the devices what to do and when. They included wall switches wireless remotes, voice control, motion sensors, etc. The old protocol is called X10. There are also newer protocols such as UPB and Insteon, but there are fewer products available right now, and they cost a little more. They are extremely robust and reliable, so we use them, depending on the application.