Bản ghi email: Integrating Device-Level Flexibility in Home Energy Management Systems for Prosumers