A Domoticz plugin to collect data from SDM120c power meter ModbusTCP.
You need the SDM120C to be connected over modbus over TCP. Wired or wireless. Setup that use this on this plugin is using PW21
You need also to find the address of the SDM120C. You can find it using the push button. Per default the address is 1.
This guide is based on Ubuntu 20.04 LTS:
Install pip3:
sudo apt install python3-pipInstall domoticz:
curl -sSL install.domoticz.com | sudo bashMake sure that the plugins folder exists in the domoticz folder.
Install the plugin:
cd domoticz/plugins
git clone https://github.com/xbeaudouin/domoticz-sdm120c-modbus-tcp.gitGo to the plugin folder and install all required addons:
cd domoticz/plugins/domoticz-sdm120c-modbus-tcp
sudo pip3 install -r requirements.txtOnce that is done, restart domoticz:
sudo service domoticz.sh restartOnce the plugin is installed, a new hardware type will be available: SDM120c ModbusTCP.
To add the inverter, go to Setup -> Hardware and add the counter:
- Enter a
namefor the counter. - Select
SDM120c ModbusTCPfrom thetypedropdown list. - Enter the IP address of the PW21 in the
IP Addressfield. - Enter the port number (default: 502) of the PW21 in the
Port Numberfield. - Optionally turn on
Debug; be aware: this will generate a lot of entries in the Domoticz log! Addthe counter.
This should result in a lot of new devices in the Setup -> Devices menu.
Go to the plugin folder and get the new verion:
cd domoticz/plugins/domoticz-sdm120c-modbus-tcp
git pullOnce that is done, restart domoticz:
sudo service domoticz.sh restartTODO
TODO