Optimal usage of multiple energy carriers in residential systems door