Optimal Home Energy Management Under Dynamic Electrical and Thermal Constraints | Synapse