Long time HA user here and been using emonCMS for a few years now. Great bit of open source softwares, thank you!
HA just released 2021.8 which has focus on Energy Management.
But unfortunately the official Emoncms integration isn’t included in their energy filtering. It also doesn’t appear to expose to HA the necessary statistics to use in the energy dashboard
By the way: how dig you get to the dashboard… I cannot even get to that.
If I am looking for energy integration all I can find is the currently compatible energy integrations
Finally, simply copy and paste the above config into configuration.yaml. Restart HA and now you will see selectable entries in the HA Energy configuration page.
I think my template and the customize bodge works well enough thanks to HA’s incredible flexibility. All it needs is end user to configure all-time total kWh feeds in emonCMS and then bring it into HA, finally use my configuration above to make it selectable.
This integration needs to be overhauled and updated for config UI etc. and this. I will try to get it added to development at Carbon Co-op as we are using HA a lot now.
In EmonCMS, go to Setup → Inputs and click the little spanner to add the circled part to your solar production (assuming your solar generation reads power in W or kW, not energy Wh or kWh) to get that Feed.
In EmonCMS, I have 3 power inputs: solar production, grid power (this one goes negative for export) and a house fuse-box (or consumer unit) consumption. Not directly measured is outdoor EV charging, but it can be easily calculated.
When you add a process, the blue description text box below tells you the output from that process, the output is then fed into the next process, this way you can do maths or logic. Very elegant solution to provide huge amount of flexibility, well done whoever designed it.
I have used the standard feeds set up when I installed my emonPi for solar/consumption monitoring.
Took a while for info to start showing up, and I haven’t yet seen everything populate including solar production and widgets. Not sure if this is because I am not using the correct feeds…
- sensor:
- name: Consumption
state: "{{ states('sensor.emoncms_import_kwh') | float | round(2) }}"
unit_of_measurement: "kWh"
state_class: measurement
device_class: energy
- name: Return to Grid
state: "{{ states('sensor.emoncms_use_kwh') | float | round(2) }}"
unit_of_measurement: "kWh"
state_class: measurement
device_class: energy
- name: Solar Production
state: "{{ states('sensor.emoncms_solar_kwh') | float | round(2) }}"
unit_of_measurement: "kWh"
state_class: measurement
device_class: energy
One thing I like about this new ENERGY integration in HomeAssistant is that it is very easy to see electricity tariff info and COSTS. I split grid imports into Peak/OffPeak Feeds in EmonCMS. This allows me to enter TWO consumption entities in the Grid Consumption section of the Energy Integration.
Thank you, having used openenergymonitor since 2013 its great to see others focusing on energy as well and it would be superb to have this functionality in my HA