- DTS238 hiking power meter
- ESP8266 (like Wemos)
- MAX485
- tasmota plugs (like Gosound SP1)
- influx
- grafana
- set up grafana and influx (for example in the google cloud with the free E1 instance)
- activate an external IP and open the needed port 8086, secure your cloud interfaces
- use the arduino IDE and add ESP support
- adapt the first lines in the program code for Wifi, cloud ip, cloud authorization
- flash your ESP
This program reads the power values for all three phases via RS485 modbus from the hiking DTS238 power meter. Then it reads the plug data like work, power and status values via REST. After that it switches the plugs on or off via REST too.
At least every minute the program read the work values from the meter and send all the information to the influx database.