Configuring Shelly EM Energy Meter

Which integration are you using, the core Shelly integration, Restful, mqtt, or other 3rd party?

The core I guess, I’m kinda noob here. But I’ve installed HACS and then ShellyForHass, is this it?

That is a third party integration. I suggest you uninstall it then go to Configuration / Devices & Services / Integrations and add the core Shelly integration (button bottom right).

There are some settings you have to make in the device for best performance:

https://www.home-assistant.io/integrations/shelly/

1 Like

@tom_l thanks for the help! it’s working now :nerd_face:

HI,

can you help me if I properly understand?
here i should place HOMEASSISTANTIPADDRESS:5683, that’s correct?

regards

Correct.

Roger. Thank you so much

I have been using a shelly em for about a year now, one of the CTs is on my main incomer, and the other is on my oven supply. Everything is working well, except that when the oven is off, rather than reporting 0W, I seem to get no data. This causes my Grafana graph of the power consumption to look weird as it never goes to zero (see attached screenshot).

I dont know if this is caused by Shelly, HA, or InfluxDB, or perhaps there’s an easy fix I can do in Grafana, but hopefully someone here can help.

Just installed EM today… When my induction hob is off it reports -5w, so I thought I’d installed the CT the wrong way around, however when I use the hob it reports positive numbers!

There doesn’t seem to be a calibration option. Does anyone know why this might be and how to fix it?

Same here, did you find a solution? I’d rather fix the hardware than write an offset with a template, if that’s even possible?

Make sure there are no other conductors near the CT. Make sure you are using the same circuit to power your EM.

It’s wired at MCU so probably is a bit cramped in there, and I’ve powered it from a random breaker that only had the one cable so that won’t be helping either then.

Can I offset the value when it reaches HA?

Sure you can use a template sensor, but it would be better to fix the hardware.

1 Like

How’s this look to you?

Hi all,

Just installed my Shelly EM and successfully linked it to HA using core integration.

As there are times where my HA installation is not powered on, will HA be able to backfill data from the device’s stored data?

No. Why won’t it be powered on?

Thanks in advance to the experts here advising on HA + Shelly EM stuff.
I live in the U.S. so my home has incoming split-phase (+110 | - 110v ) service. From what I have read, the way to get whole-house energy monitoring is to use the Shelly EM and add a 120a clamp on each of the 2 incoming wires (each phase; one of them turned around, to work with the 180degree phase difference). I will connect the ShellyEM power to one of the 110v circuits to power the device (understanding that any imbalance on the phases voltage might lead to incorrect readings…but I’ll have to live with that).

QUESTION
I have used the built-in Shelly integration to add the device to HA. Since I have two separate entities (each of the clamps on each incoming grid wire), how do I add these to the Energy configuration…since it only allows choosing one entity for Grid (just like Grid Return).

Do I need to create a Template sensor to combine these?

sensor.shelly_em_channel_1_energy
sensor.shelly_em_channel_2_energy

I checked this thread and don’t see any mention of needing to do this, so maybe I’m going down the wrong path. Thanks for the guidance!

So it turns out the Config section of Energy does allow multiple entities to be added to the “Grid consumption” and “Return to grid” sections.

I added my 2 “Energy” to the Grid consumption section and my 2 “Energy Returned” entities to the Return to grid section and it seems to be working as expected. Hopefully this helps some other folks trying to figure out how to set up Shelly EM with a U.S. home electrical panel (which has the split 2-phase setup).

1 Like

Is there a way to combine the 2 phase sensors of the Shelly EM into a single “total”? I see mentions in older posts from before Energy was added to Core, but my Shelly EM does not show a total of all sensors, just total per sensor. I am using it in a North American style 2 phase install.

Try creating a template sensor like this…
Replace my sensor entities (sensor.daily_energy_peak and sensor.daily_energy_offpeak ) with yours.

  - platform: template
    sensors:
      total_energy:
        unique_id: total_energy
        friendly_name: Total Energy
        unit_of_measurement: kWh
        device_class: energy
        value_template: "{{ states('sensor.daily_energy_peak')|float + (states('sensor.daily_energy_offpeak')|float) }}"