Manufacter
https://gplug.ch/produkte/gplugm/
Flash to ESPHome
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv esphome --python 3.12
uv venv esphome
source esphome/bin/activate
uv pip install tornado esptool esphome
# backup
esptool.py --chip esp32c3 --port /dev/ttyACM0 --baud 460800 read_flash 0 ALL gplugm_full_backup.bin
# flash over tty
esphome run --device /dev/ttyACM0 gPlugM.yml
# flash over ota
esphome run gPlugM.yml --device 192.168.178.x
<code>
<strong>Installation</strong>
https://gplug.ch/installationsanleitung/gplugmt/
<strong>configuration.yaml</strong>
https://gplug.ch/blog/integration-gplugm-in-home-assistant/
https://gplug.ch/blog/integration-gplug-in-home-assistent/
<code>
homeassistant:
customize_glob:
sensor.gplugm_z_ei:
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
last_reset: 1970-01-01T00:00:00+00:00
sensor.gplugm_z_ei1:
unit_of_measurement: "kWh"
sensor.gplugm_z_ei2:
unit_of_measurement: "kWh"
sensor.gplugm_z_eo:
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
last_reset: 1970-01-01T00:00:00+00:00
sensor.gplugm_z_eo1:
unit_of_measurement: "kWh"
sensor.gplugm_z_eo2:
unit_of_measurement: "kWh"
sensor.gplugm_z_i1:
unit_of_measurement: "A"
sensor.gplugm_z_i2:
unit_of_measurement: "A"
sensor.gplugm_z_i3:
unit_of_measurement: "A"
sensor.gplugm_z_v1:
unit_of_measurement: "V"
sensor.gplugm_z_v2:
unit_of_measurement: "V"
sensor.gplugm_z_v3:
unit_of_measurement: "V"
sensor.gplugm_z_pi:
unit_of_measurement: "kW"
sensor.gplugm_z_po:
unit_of_measurement: "kW"
utility_meter:
energy_in_daily:
source: sensor.gplugm_z_ei
cycle: daily
energy_in_weekly:
source: sensor.gplugm_z_ei
cycle: weekly
energy_in_monthly:
source: sensor.gplugm_z_ei
cycle: monthly
energy_in_yearly:
source: sensor.gplugm_z_ei
cycle: yearly