Using MQTT with Home Assistant

Home assistant is an Open-source home automation platform operates based on Python 3. It is possible to control and monitor all of home appliances with simple settings. Home assistant recently supports MQTT and this posting provides source code and how to monitor changes of the brightness of photo resistor using Arduino and Ehternet Shield.