Can anyone point me in the right direction for using 3x kWh meters, with s0 output, to monitor power output of my solar panels?
They pulse at 1000 pulses / kWh
Wiring is pretty easy, one the ground, one to GPIO27 (if I remember correctly, only one polarity works - either you try or you read the manual of the power meter )
I changed the update interval to 1 s, because I want real-time…
I created a helper with the actual value of the physical counter (I have 3 counters), which I use in an new sensor :
- sensor:
- name: Energy Solar Panel 1
state: "{{ ((states('sensor.solar_panel_energy_counter_1') | float(0)) + (states('input_number.number_solar_panel_1') | float(0))) | round(1) }}"
unit_of_measurement: "kWh"
state_class: total_increasing
device_class: energy
And made a total sensor:
- name: Energy Solar Panels
state: "{{ (states('sensor.energy_solar_panel_1') | float(0) + states('sensor.energy_solar_panel_2') | float(0) + states('sensor.energy_solar_panel_3') | float(0)) | round(1) }}"
unit_of_measurement: "kWh"
state_class: total_increasing
device_class: energy
And in order not to fill up the statistics, I created this sensor (which I then use in the energy dashboard):
- trigger:
- platform: time_pattern
minutes: "/5"
sensor:
- name: Energy Solar Panels Recorder
state: "{{ states('sensor.energy_solar_panels') }}"
unit_of_measurement: "kWh"
state_class: total_increasing
device_class: energy
I’m not sure that will work. Ony for 3600 W you will get a pulse every second. So I’d expect e.g. when you are at 1000 W, you will get 0 W for some seconds and 3600 W for some seconds.
With an update interval of 10s, you get a resolution of 360 W. So, it depends on the values you want to measure.
Hi Christian, all works well? Could I ask you the code used for manage 3x EM10-DIN ?
I was doing the same with Arduino, connected like this:
S1 (called also 21): 5 V
S0 (called also 20): Pin8, with additional pull down resistence 10kOhm
Is it required pull down resistence with EPS32?