The ESP module can read voltage and current from a DC supplied circuit, using the INA219 I2C voltage and current sensor.
The INA219 sensor needs to be connected to a the I2C pins on the ESP module. These pins can be configured on the hardware tab.
The INA219 sensor can be connected directly to an ESP module by using the two pins SDA and SCL.
The circuit that needs to be measure connects to the screw terminal header. Maximum values are 32 volts and 3.2 Ampere.
Wiring example with a Wemos D1 mini.
The INA219 communicates with the ESP8266 through the I2C interface, so first use the Hardware tab in the web interface of ESP Easy to find out what pins are being used for SDA and SDC. They can be altered if required.
Next use the device tab on the ESP Easy webinterface and create a new task by editing one of the available tasks. Select "Voltage & Current - INA219" from the dropdown box.
Enter the IDX found in the Domoticz device page. That should be all.