A ceasefire between Israel and Hezbollah took effect Wednesday after both sides accepted an agreement brokered by the US and France, potentially bringing an end to a year of cross-border strikes and months of a full-scale war that has killed thousands.