Can Xbee s2 be coupled with smart socket to control home appliances

Hey guys. I am working with Xbee s2 and I have some ideas for future project. Could someone give me some advice if it would be possible to control a smartsocket with xbee?
The idea is:

A coordinator is measuring the sensor value for example temperature sensor and takes the samples of current temperature. Once the temperature drops below certain level, A signal will be sent to router/end device Xbee that would probably be connected with smartsocket. Then I would like to get a notification message to my smart phone that the temperature dropped below certain level and I would be able to turn it ON or OFF through my mobile phone. Any ideas or suggestions please!