I have just has a PR approved for an update to the HA Emoncms component.
Once live there will be a new variable use_emoncms_unit. This will enable the unit specified in Emoncms to be used by Home Assistant when creating the individual sensors.
All of the emoncms sensors can now be enabled with one configuration entry rather than needing a definition for each ‘type’ (in terms of temp/power/humidity etc) assuming the unit has been set in Emoncms.
107 isn’t released yet. Due to drop next week, the release candidate (RC) is on their rc.home-assistant.io website. On the RC website, they have the updated documentations, see my link above.
Actually, if you use the same configuration (that you had before), if the Unit is set in emonCMS, that value will now be used in preference to the one set in the configuration.
It’s a bit of a breaking change not a full blown this won’t work change .
The reason I prefer to put everything into one is because I really dislike having emoncms2_ in addition to emoncms. I had to do the old way is because of the units. So I’m hoping this (very sensible and excellent) change can tidy up everything.