Create a circuit to act as the secondary controller which will interface with a home automation system

May be you need some protocol gateway. Check this answer.