Endpoint Protocol (EP) for use in Home Automation systems