Service composition in an important facet in service oriented architecture, it's about the idea of assembling atomic services to satisfy a demand rather than building new applications from 'scratch', From the user's perspective it's a complex task due to the increasing number of services in the web and their heterogeneity. This complexity is increasing in the internet of Things era wehere computing devices are everywhere. In this work we propose an approach for composition of context aware services in a semantic manner, Artificial Intelligence planning is used to automate the composition starting from a defined objectif containing user request and context parameters. Service are described by extending OWL-S with contextual conditions. The proposed architecture was evaluated through an e-health scenario where chronic patients can benefit from a remote and automated medical supervision and emergency handling.