This document presents an electric vehicle charging method for smart homes/buildings with a photovoltaic system. It introduces an algorithm to determine optimal charging schedules for EVs based on predicted PV output and electricity consumption. It also discusses a prototype home energy management system application that provides EV charging schedules according to user preferences. The paper consists of describing the EV charging scheduling algorithm and implementation of the home EMS prototype application.