Skip to content

Shelly EM Power Meter

This power meter is designed get power consumption directly from Shelly EM sensor.

To use this package, add the following lines to your configuration file:

1
2
3
4
packages:
  power_meter:
    url: http://github.com/XavierBerger/ESPHome-Solar-Router/
    file: solar_router/power_meter_shelly_em.yaml

This package needs to know Shelly EM IP address and emeter index to use to get the power consumption. This Shelly EM IP address and emeter index have to be defined by power_meter_ip_address and emeter_index into substitutions section of your configuration as in example ballow:

1
2
3
4
5
substitutions:
  # Power meter source -----------------------------------------------------------
  # Define ip address of Shelly EM probe
  power_meter_ip_address: "192.168.1.26:8000"
  emeter_index: "0"

HTTP Authentication Header

This power meter allow to define HTTP Authentication Header with the variable power_meter_auth_header. This variable can be set in substitution section.

This package is activated/deactivated with a global variable power_meter_activated. This globals is provided by the solar router engine package.

If this power meter is use inside a proxy, it is required to add this globals into you configuration yaml as follow:

1
2
3
4
globals:
  - id: power_meter_activated
    type: int
    initial_value: "1"

Network dependency

This power meter require the network to gather information about energy exchanged with the grid.