read your teslas state every 5 minutes and log it to a file