Energy import/export from same feed

I’m using EmonCMS and have a single feed for grid consumption, which goes negative when I’m putting electricity to the grid. Can I setup the new energy features this way, or do I need to do some magic on the EmonCMS side to make it work? I’ve tried adding the import sensor under both Grid Consumption and Return to Grid, but it just shows the same value for both consumption and return.

Thanks!