refactored tuple to event
import onenergy