My home has got two smart meters for heating and power, a heating regulator and an analog water meter. All devices talking different protocols, baudrates, etc. It'd be nice to collect all information in a unified and central place. In case of the heating regulator a remote configuration is also welcomed.
- ESP-12F for the first three devices
- ESP32-Cam for the water meter
- self-compiled Tasmota binary with SMI (& ModBus Bridge for Trovis 5573 configuration)
- D0 read/write head for Kamstrup Multical 403 heating meter
- simple D0 read head for EasyMeter Q3D power meter
- create Tasmota build and flash onto ESP-12F
- create new gitpod workspace, add these (and these) defines to
/tasmota/user_config_override.h
- execute
pio run -e tasmota-DE
in gitpod terminal (adjust language if needed) - download
/build_output/tasmota-DE.bin
- connect ESP-12F to PC
- execute
python -m esptool -b 921600 --erase-all -fm qio -fs 4MB -ff 80m 0x00000 tasmota-DE.bin
- create new gitpod workspace, add these (and these) defines to
- connect things
- attach RJ45<->serial cable to Trovis 5573
- attach D0 read/write head to Kamstrup MC 403
- attach D0 read head to EasyMeter Q3D
- connect all devices to ESP-12F
- connect ESP-12F to Wifi, go to consoles, go to configure script and insert following script
>D
>B
=>sensor53 r
>M 3
+1,12,o,0,9600,Strom
1,1-0:1.7.0*255(@1,P_in,W,P_in,2
1,1-0:21.7.0*255(@1,L1,W,L1,2
1,1-0:41.7.0*255(@1,L2,W,L2,2
1,1-0:61.7.0*255(@1,L3,W,L3,2
1,1-0:1.8.0*255(@1,E_in,kWh,E_in,3
1,1-0:2.8.0*255(@1,E_out,kWh,E_out,3
1,=h<hr/>
+2,4,m,0,19200,SekHK,2,5,rF7030009000E,F703001D,F703006A
2,F7031CSSss@i0:10,Außentemp.,°C,Temp_Outside,1
2,F7031Cx06SSss@i0:10,Vorlauftemp.,°C,Temp_Flow,1
2,F7031Cx14SSss@i0:10,Rücklauftemp.,°C,Temp_Return,1
2,F7031Cx26SSss@i0:10,Speichertemp.,°C,Temp_Vessel,1
2,F70304UUuu@i1:0.1,Messwertm3-h,l/h,Metric_M3H,0
2,F70304UUuu@i2:1,StellsignalRk1,%,CtrlSig_RK1,0
2,=h<hr/>
+3,14,kN2,0,1200,PriHK,13,10,3F1005003C00560057004A0044
3,3F10003Ckstr@i0:1000,Wärmemenge,MWh,HeatEnergyE1,3
3,3F10x29xx0044kstr@i0:100,Volumenstrom,m³,Volume,2
3,3F10x08xx0056kstr@i0:100,Vorlauftemp.,°C,PreTemp,2
3,3F10x15xx0057kstr@i0:100,Rücklauftemp.,°C,AftTemp,2
3,3F10x22xx004Akstr@i0:1,Fließgeschw.,l/h,Flow,0
#
- You can visit the web interface of your ESP and view current values of your energy managment which look like this:
- When you hook up your ESP to a chain of MQTT -> InfluxDB -> Grafana, e.g. within a Home Assistant installation, you can log your data continuously and have beautiful charts created from it:
- How is your heating system doing?
- When does your power consumption happen?
- Configure your heating regulator via Wifi.
- Configure GPIO2/4 as
ModBr TX/RX
- Execute
ModbusTCPStart 5021
- Run TrovisView and connect via TCP at ESP-IP:5021
- After usage of TrovisView configure GPIO2/4 back to
None
- Configure GPIO2/4 as