I’m new to HA, and I’m currently migrating my Domoticz install to HA.
Most of the things are already migrated, chatgpt is a great help
One of the things I cannot figure out due to the learning curve is to get my DDS5188 power meters into HA.
They are connected on a ESP8266 board, which I already migrated to ESPHome, but I don’t get any readings in HA.
I’m pretty sure this is because the config is wrong, but I don’t have any clue how to make a correct config.
The DDS delivers 0,5Wh/imp. So 1kWh is 2000pulses.
This is what I currently have in my esp config file:
#Boiler
sensor:
- platform: pulse_counter
pin: GPIO12 #♦D6
name: " Boiler Energy Pulse Counter"
id: energy_pulse_counter # Define the ID here
unit_of_measurement: 'pulses/min'
icon: mdi:pulse
update_interval: 60s
filters:
- multiply: 0.03 # 0.5 Wh per pulse, converted to kWh over the update interval
- platform: total_daily_energy
name: "Boiler Total Daily Energy"
power_id: energy_power
unit_of_measurement: kWh
accuracy_decimals: 3
filters:
- multiply: 0.0005 # 0.5 Wh per pulse, converted to kWh
- platform: template
name: "Boiler Current Energy Usage"
id: energy_power
unit_of_measurement: W
lambda: |-
return id(energy_pulse_counter).state * 30.0;
time:
- platform: homeassistant
id: homeassistant_time
It would be nice to have a realtime usage in Watt and a total usage per day in kWh.
Can someone give me a bump into the right direction ?
I’ve tried numerous combinations which I obtained though ChatGPT, but nothing seems to do what I want. Also worth mentioning is that I had the same ESP board working with my Domotics install:
Debounce time 200
counter type Delta/total
internal pullup enabled.